compileSdk / targetSdk upgrade from API level 30 (Android 11/R) to 31 (Android 12/R) requires additional fixes in order to avoid CI failures on build & LoadKeysWorker crash while running the app on Android 12+ devices.
This PR fixes CI Build & Runtime issues with PR #236 = it should be merged into refactor/update-dependencies branch in order to update PR 236 & remove the issues before merging it into develop branch.
Fix Details :
JDK CI java-version upgrade from 1.8 to 11 in order to avoid java.lang.AssertionError when building with compileSdk/targetSdk 31 (details here)
androidx.work:work-runtime-ktx dependency version upgrade from 2.5.0 to 2.7.1 + top-level project dependency override (in order to keep alignment between app & other projects). It avoids LoadKeysWorker crash when starting the app on devices with Android 12/S (details here)
Using androidx.startup to initialize WorkManager (required since work-runtime-ktx:2.6.0)
Added android:exported for .ui.SplashScreenActivity in AndroidManifest (android:exported declaration is required by targetSdk 31 for all activities with intent-filters)
@rawmain thanks as always for your contribution :) @astagi if you want you can merge this pr into @Kaizen-7 branch to solve build problems and other runtime issues on Android 12 as stated by rawmain
compileSdk / targetSdk upgrade from API level 30 (Android 11/R) to 31 (Android 12/R) requires additional fixes in order to avoid CI failures on build & LoadKeysWorker crash while running the app on Android 12+ devices.
This PR fixes CI Build & Runtime issues with PR #236 = it should be merged into refactor/update-dependencies branch in order to update PR 236 & remove the issues before merging it into develop branch.
Fix Details :
JDK CI java-version upgrade from 1.8 to 11 in order to avoid java.lang.AssertionError when building with compileSdk/targetSdk 31 (details here)
androidx.work:work-runtime-ktx dependency version upgrade from 2.5.0 to 2.7.1 + top-level project dependency override (in order to keep alignment between app & other projects). It avoids LoadKeysWorker crash when starting the app on devices with Android 12/S (details here)
Using androidx.startup to initialize WorkManager (required since work-runtime-ktx:2.6.0)
Added android:exported for .ui.SplashScreenActivity in AndroidManifest (android:exported declaration is required by targetSdk 31 for all activities with intent-filters)