aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2022-05-24 21:16:04 +0200
committerGitHub <noreply@github.com>2022-05-24 21:16:04 +0200
commitd87371b65ea23a46263bfd3f038a01a81d0fe9c5 (patch)
tree9d660b47954557a2a8ab54a965d900c2c5b6a370 /src
parent868c26f52e4fbb4430ecb782b0551de90a1fae96 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/lobby.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lobby.cpp b/src/lobby.cpp
index 52e228f3..c0d0e4de 100644
--- a/src/lobby.cpp
+++ b/src/lobby.cpp
@@ -112,6 +112,12 @@ void Lobby::set_widgets()
if (f_lobby.width < 0 || f_lobby.height < 0) {
qWarning() << "did not find lobby width or height in " << filename;
+ #ifdef ANDROID
+ if(QtAndroid::checkPermission("android.permission.READ_EXTERNAL_STORAGE")==QtAndroid::PermissionResult::Denied) {
+ QtAndroid::requestPermissionsSync({"android.permission.READ_EXTERNAL_STORAGE","android.permission.WRITE_EXTERNAL_STORAGE"});
+ }
+ #endif
+
// Most common symptom of bad config files and missing assets.
call_notice(
tr("It doesn't look like your client is set up correctly.\n"