1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-14 19:04:23 +02:00

Compare commits

..

24 Commits

Author SHA1 Message Date
602690ddc4 Updated gradle file 2025-07-10 10:22:45 +02:00
ced9eb20b0 Added missing Android build stuff 2025-07-10 10:22:26 +02:00
2f5c87af53 Merge branch 'master' into android-latest 2025-07-10 08:45:18 +02:00
a204fc2bc0 Merge branch 'master' into android-latest 2025-06-07 20:35:11 +02:00
2628e7824e Merge branch 'master' into android-latest 2025-05-20 22:58:43 +02:00
a9fa3a4bcf Merge branch 'master' into android-latest 2025-05-20 08:43:44 +02:00
a4141f52d6 Merge branch 'master' into android-latest 2025-05-07 23:35:49 +02:00
5898cd0878 Merge branch 'master' into android-latest 2025-04-22 19:22:36 +02:00
f5f71ab46e Merge branch 'master' into android-latest 2025-04-16 09:27:33 +02:00
e450e298a2 Merge branch 'master' into android-latest 2025-03-21 22:30:11 +01:00
977fea9330 Merge branch 'master' into android-latest 2025-03-08 15:32:39 +01:00
636aff6f31 Merge branch 'master' into android-latest 2025-02-21 00:56:25 +01:00
ed0ab7f0aa Merge branch 'master' into android-latest 2025-02-19 07:56:37 +01:00
bded204816 Merge branch 'master' into android-latest 2025-02-13 23:48:32 +01:00
1ce8072b62 Merge branch 'master' into android-latest 2025-02-11 08:26:02 +01:00
a06dbf7676 Merge branch 'master' into android-latest 2025-02-11 08:20:29 +01:00
afae851d56 Merge branch 'master' into android-latest 2025-01-25 16:19:30 +01:00
b9999a5c4f Added geo URI support info 2025-01-25 16:15:02 +01:00
03ee575aac Merge branch 'master' into android-latest 2025-01-25 11:56:15 +01:00
fc196543a1 Merge branch 'master' into android-latest 2025-01-25 11:31:08 +01:00
9d60d1c9fc Merge branch 'master' into android-latest 2025-01-21 21:48:01 +01:00
8d4236c898 Merge branch 'master' into android-latest 2025-01-05 09:44:20 +01:00
4ee39fe707 Merge branch 'master' into android-latest 2025-01-03 19:50:00 +01:00
347212f012 Make the build work with Qt 6.8.1 (and newer)
As for now, this is just for Qt debuging as multiple stuff is broken in Qt 6.8.1
- The new style has serious render issues
- Reading files in a directory is by multiple order of magnitude slower
- The zoom gestures do not work reliably

Qt versions prior to 6.8.1 are completely unusable due to the broken main menu.
2024-12-17 14:39:42 +01:00
5 changed files with 62 additions and 30 deletions

View File

@ -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:

View File

@ -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>

View File

@ -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'

View File

@ -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>

View 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>