mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-07-13 18:35:11 +02:00
Compare commits
24 Commits
master
...
android-la
Author | SHA1 | Date | |
---|---|---|---|
602690ddc4 | |||
ced9eb20b0 | |||
2f5c87af53 | |||
a204fc2bc0 | |||
2628e7824e | |||
a9fa3a4bcf | |||
a4141f52d6 | |||
5898cd0878 | |||
f5f71ab46e | |||
e450e298a2 | |||
977fea9330 | |||
636aff6f31 | |||
ed0ab7f0aa | |||
bded204816 | |||
1ce8072b62 | |||
a06dbf7676 | |||
afae851d56 | |||
b9999a5c4f | |||
03ee575aac | |||
fc196543a1 | |||
9d60d1c9fc | |||
8d4236c898 | |||
4ee39fe707 | |||
347212f012 |
17
.github/workflows/osx.yml
vendored
17
.github/workflows/osx.yml
vendored
@ -36,22 +36,9 @@ jobs:
|
||||
repository: tumic0/QtPBFImagePlugin
|
||||
path: GPXSee.app/Contents/Plugins/imageformats
|
||||
merge-multiple: true
|
||||
run-id: ${{ steps.runid.outputs.runid }}
|
||||
- name: Install codesigning certificate
|
||||
env:
|
||||
MACOS_CERTIFICATE: ${{ secrets.CODESIGN_CERT }}
|
||||
MACOS_CERTIFICATE_PWD: ${{ secrets.CODESIGN_PWD }}
|
||||
KEYCHAIN_NAME: gpxsee
|
||||
KEYCHAIN_PWD: password
|
||||
run: |
|
||||
echo $MACOS_CERTIFICATE | base64 --decode > certificate.p12
|
||||
security create-keychain -p $KEYCHAIN_PWD $KEYCHAIN_NAME
|
||||
security default-keychain -s $KEYCHAIN_NAME
|
||||
security unlock-keychain -p $KEYCHAIN_PWD $KEYCHAIN_NAME
|
||||
security import certificate.p12 -k $KEYCHAIN_NAME -P $MACOS_CERTIFICATE_PWD -T /usr/bin/codesign
|
||||
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k $KEYCHAIN_PWD $KEYCHAIN_NAME
|
||||
run-id: ${{steps.runid.outputs.runid}}
|
||||
- name: Create DMG
|
||||
run: macdeployqt GPXSee.app -dmg -appstore-compliant -codesign=GPXSee
|
||||
run: macdeployqt GPXSee.app -dmg -appstore-compliant
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
@ -1,10 +1,30 @@
|
||||
<?xml version="1.0"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.gpxsee.gpxsee" android:installLocation="auto" android:versionCode="-- %%INSERT_VERSION_CODE%% --" android:versionName="-- %%INSERT_VERSION_NAME%% --">
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="org.gpxsee.gpxsee"
|
||||
android:installLocation="auto"
|
||||
android:versionCode="-- %%INSERT_VERSION_CODE%% --"
|
||||
android:versionName="-- %%INSERT_VERSION_NAME%% --">
|
||||
<!-- %%INSERT_PERMISSIONS -->
|
||||
<!-- %%INSERT_FEATURES -->
|
||||
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:smallScreens="true"/>
|
||||
<application android:name="org.qtproject.qt.android.bindings.QtApplication" android:extractNativeLibs="true" android:hardwareAccelerated="true" android:label="-- %%INSERT_APP_NAME%% --" android:requestLegacyExternalStorage="true" android:allowNativeHeapPointerTagging="false" android:icon="@drawable/icon">
|
||||
<activity android:name="org.gpxsee.gpxsee.Activity" android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density" android:label="-- %%INSERT_APP_NAME%% --" android:launchMode="singleTop" android:screenOrientation="unspecified" android:exported="true">
|
||||
<supports-screens
|
||||
android:anyDensity="true"
|
||||
android:largeScreens="true"
|
||||
android:normalScreens="true"
|
||||
android:smallScreens="true"/>
|
||||
<application
|
||||
android:name="org.qtproject.qt.android.bindings.QtApplication"
|
||||
android:hardwareAccelerated="true"
|
||||
android:label="-- %%INSERT_APP_NAME%% --"
|
||||
android:requestLegacyExternalStorage="true"
|
||||
android:allowBackup="true"
|
||||
android:fullBackupOnly="false"
|
||||
android:icon="@drawable/icon">
|
||||
<activity
|
||||
android:name="org.gpxsee.gpxsee.Activity"
|
||||
android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density"
|
||||
android:launchMode="singleTop"
|
||||
android:screenOrientation="unspecified"
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
@ -28,10 +48,22 @@
|
||||
<data android:scheme="geo"/>
|
||||
</intent-filter>
|
||||
|
||||
<meta-data android:name="android.app.lib_name" android:value="-- %%INSERT_APP_LIB_NAME%% --"/>
|
||||
<meta-data android:name="android.app.arguments" android:value="-- %%INSERT_APP_ARGUMENTS%% --"/>
|
||||
<meta-data android:name="android.app.extract_android_style" android:value="minimal"/>
|
||||
<meta-data
|
||||
android:name="android.app.lib_name"
|
||||
android:value="-- %%INSERT_APP_LIB_NAME%% --"/>
|
||||
<meta-data
|
||||
android:name="android.app.arguments"
|
||||
android:value="-- %%INSERT_APP_ARGUMENTS%% --"/>
|
||||
</activity>
|
||||
</application>
|
||||
|
||||
<provider
|
||||
android:name="androidx.core.content.FileProvider"
|
||||
android:authorities="${applicationId}.qtprovider"
|
||||
android:exported="false"
|
||||
android:grantUriPermissions="true">
|
||||
<meta-data
|
||||
android:name="android.support.FILE_PROVIDER_PATHS"
|
||||
android:resource="@xml/qtprovider_paths"/>
|
||||
</provider>
|
||||
</application>
|
||||
</manifest>
|
||||
|
@ -5,7 +5,8 @@ buildscript {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:7.2.1'
|
||||
//noinspection AndroidGradlePluginVersion
|
||||
classpath 'com.android.tools.build:gradle:8.8.0'
|
||||
}
|
||||
}
|
||||
|
||||
@ -14,10 +15,12 @@ repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
apply plugin: 'com.android.application'
|
||||
apply plugin: qtGradlePluginType
|
||||
|
||||
dependencies {
|
||||
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
|
||||
//noinspection GradleDependency
|
||||
implementation 'androidx.core:core:1.13.1'
|
||||
}
|
||||
|
||||
android {
|
||||
@ -28,20 +31,18 @@ android {
|
||||
* - qtAndroidDir - holds the path to qt android files
|
||||
* needed to build any Qt application
|
||||
* on Android.
|
||||
* - qtGradlePluginType - whether to build an app or a library
|
||||
*
|
||||
* are defined in gradle.properties file. This file is
|
||||
* updated by QtCreator and androiddeployqt tools.
|
||||
* Changing them manually might break the compilation!
|
||||
*******************************************************/
|
||||
|
||||
//compileSdkVersion androidCompileSdkVersion
|
||||
compileSdkVersion "android-33"
|
||||
namespace androidPackageName
|
||||
compileSdkVersion androidCompileSdkVersion
|
||||
buildToolsVersion androidBuildToolsVersion
|
||||
ndkVersion androidNdkVersion
|
||||
|
||||
// Extract native libraries from the APK
|
||||
packagingOptions.jniLibs.useLegacyPackaging true
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
manifest.srcFile 'AndroidManifest.xml'
|
||||
|
@ -17,4 +17,5 @@
|
||||
<string name="static_init_classes"><!-- %%INSERT_INIT_CLASSES%% --></string>
|
||||
<string name="use_local_qt_libs"><!-- %%USE_LOCAL_QT_LIBS%% --></string>
|
||||
<string name="bundle_local_qt_libs"><!-- %%BUNDLE_LOCAL_QT_LIBS%% --></string>
|
||||
<string name="system_libs_prefix"><!-- %%SYSTEM_LIBS_PREFIX%% --></string>
|
||||
</resources>
|
||||
|
11
pkg/android/res/xml/qtprovider_paths.xml
Normal file
11
pkg/android/res/xml/qtprovider_paths.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<paths xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- For getFilesDirectory() -->
|
||||
<files-path name="files_path" path="/"/>
|
||||
<!-- For getExternalStorageDirectory() -->
|
||||
<external-path name="external_path" path="/"/>
|
||||
<!-- For getExternalFilesDir() -->
|
||||
<external-files-path name="external_files_path" path="/"/>
|
||||
<!-- For getExternalCacheDir() -->
|
||||
<external-cache-path name="external_cache_path" path="/"/>
|
||||
</paths>
|
Reference in New Issue
Block a user