Sets android:export and FLAG_IMMUTABLE to make the main intent and widget intents not crash on Android 12, and removes the deprecated jcenter repo from Gradle.
FLAG_IMMUTABLE's minimum Android version is 6, so I've duplicated the getBroadcast calls for versions >=6 and <6
Sets
android:export
andFLAG_IMMUTABLE
to make the main intent and widget intents not crash on Android 12, and removes the deprecated jcenter repo from Gradle.FLAG_IMMUTABLE
's minimum Android version is 6, so I've duplicated the getBroadcast calls for versions >=6 and <6