From d87371b65ea23a46263bfd3f038a01a81d0fe9c5 Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Tue, 24 May 2022 21:16:04 +0200 Subject: GitHub android ci (#767) * try this matrix thing * syntax error * use my own qt installer so it actually works * allow changing path * whoops cant have it twice * get the right version of discord rpc * get correct bass * try to fix windows * overwrite bass files * forgot to delete these * here's your version bro * what did we even use catch2 for?? * linux doesnt have a c folder * android bass * switch from cmake to qmake * opus dylib * we don't install * put bass in a subfolder so we don't build the stupid examples * was using wrong arch for android * fix up gitignore * get correct artifact folder * lets hope qmake will ignore the ABI for all the other platforms * use platform name for artifact * copy dlls into bin folder * lmao i yeeted the folder * create folder * use more recent mingw * windows uses dlls * 2017 doesn't work * our libs are 64 bit * install msvc * shitty ms documentation * ok ms * wrong directory for deploy * copy apng * use correct image for msvc2019 * deploy android * 32bit windows it is * adroideploy * try this * Update build.yml * move libs * armeabi-v7a * fix android build files * only get linux bass for linux * don't try to install discord on android * deploy mac * get rid of double permission warning * define filename for APK * add mac dependencies * put android bass in the correct folder * mac apng * android apng * remove old CI * ask for storage permissions * qt bug .......... * update clang-tidy-review * update everything * fuck you lukka * fuck you jurplel for merging that shitty PR that broke everything * give it what it wants * Update clang-tidy-review.yml * github is failing it because it's too big * wait for the user and request a proper permission string * underscore moment * use write external storage instead * try this instead * 082 fails with docker again --- android/AndroidManifest.xml | 57 ++++++++++++++++++------------------ android/build.gradle | 17 ++++++++++- android/res/drawable-hdpi/icon.png | Bin 0 -> 10866 bytes android/res/drawable-ldpi/icon.png | Bin 29302 -> 2828 bytes android/res/drawable-mdpi/icon.png | Bin 0 -> 5560 bytes android/res/drawable-xhdpi/icon.png | Bin 0 -> 17788 bytes 6 files changed, 44 insertions(+), 30 deletions(-) create mode 100644 android/res/drawable-hdpi/icon.png create mode 100644 android/res/drawable-mdpi/icon.png create mode 100644 android/res/drawable-xhdpi/icon.png (limited to 'android') diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml index 0792ce86..33810959 100644 --- a/android/AndroidManifest.xml +++ b/android/AndroidManifest.xml @@ -1,16 +1,23 @@ - - - + + + + + + + + + + - - @@ -18,25 +25,31 @@ - - + + + + - + + + - - - - + - - - - + + - - - - - - - - - - - + + diff --git a/android/build.gradle b/android/build.gradle index 3087d08c..443a8002 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -5,7 +5,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:3.5.0' + classpath 'com.android.tools.build:gradle:3.6.0' } } @@ -51,6 +51,15 @@ android { } } + tasks.withType(JavaCompile) { + options.incremental = true + } + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + lintOptions { abortOnError false } @@ -59,4 +68,10 @@ android { aaptOptions { noCompress 'rcc' } + + defaultConfig { + resConfig "en" + minSdkVersion = qtMinSdkVersion + targetSdkVersion = qtTargetSdkVersion + } } diff --git a/android/res/drawable-hdpi/icon.png b/android/res/drawable-hdpi/icon.png new file mode 100644 index 00000000..18558219 Binary files /dev/null and b/android/res/drawable-hdpi/icon.png differ diff --git a/android/res/drawable-ldpi/icon.png b/android/res/drawable-ldpi/icon.png index f53fe30c..054666e7 100644 Binary files a/android/res/drawable-ldpi/icon.png and b/android/res/drawable-ldpi/icon.png differ diff --git a/android/res/drawable-mdpi/icon.png b/android/res/drawable-mdpi/icon.png new file mode 100644 index 00000000..e25a4fcc Binary files /dev/null and b/android/res/drawable-mdpi/icon.png differ diff --git a/android/res/drawable-xhdpi/icon.png b/android/res/drawable-xhdpi/icon.png new file mode 100644 index 00000000..cb0e4981 Binary files /dev/null and b/android/res/drawable-xhdpi/icon.png differ -- cgit