From fc4c2e5673fea9115830541a6572e29bfa50559f Mon Sep 17 00:00:00 2001 From: Mohsen Mirhoseini Date: Fri, 16 Feb 2024 14:21:32 +0100 Subject: [PATCH] Fix write dex file error **What** - Fixing the write dex file crash **Why** - https://github.com/tiann/FreeReflection/issues/56 - https://developer.android.com/about/versions/14/behavior-changes-14#safer-dynamic-code-loading **How** - Downgrading the targetSdk to 33 Signed-off-by: Mohsen Mirhoseini --- compose/app/build.gradle.kts | 4 ++-- feed_integration/app/build.gradle.kts | 6 +++--- feed_resources/app/build.gradle.kts | 6 +++--- language/app/build.gradle.kts | 4 ++-- multi_host_livestream/app/build.gradle.kts | 4 ++-- picture_in_picture/app/build.gradle.kts | 6 +++--- share_link/app/build.gradle.kts | 6 +++--- shopping/app/build.gradle.kts | 6 +++--- single_host_livestream/app/build.gradle.kts | 4 ++-- story_block/app/build.gradle.kts | 6 +++--- view_options/app/build.gradle.kts | 4 ++-- 11 files changed, 28 insertions(+), 28 deletions(-) diff --git a/compose/app/build.gradle.kts b/compose/app/build.gradle.kts index 427ed73..6229f6a 100644 --- a/compose/app/build.gradle.kts +++ b/compose/app/build.gradle.kts @@ -8,13 +8,13 @@ plugins { android { namespace = "com.firework.example.compose" - compileSdk = 34 + compileSdk = 33 defaultConfig { applicationId = "com.firework.example.compose" minSdk = 21 - targetSdk = 34 + targetSdk = 33 versionCode = 1 versionName = "1.0.0" diff --git a/feed_integration/app/build.gradle.kts b/feed_integration/app/build.gradle.kts index 7678eeb..4cc900b 100644 --- a/feed_integration/app/build.gradle.kts +++ b/feed_integration/app/build.gradle.kts @@ -8,13 +8,13 @@ plugins { android { namespace = "com.firework.example.feedintegration" - compileSdk = 34 + compileSdk = 33 defaultConfig { applicationId = "com.firework.example.feedintegration" minSdk = 21 - targetSdk = 34 + targetSdk = 33 versionCode = 1 versionName = "1.0.0" @@ -71,7 +71,7 @@ dependencies { implementation("androidx.appcompat:appcompat:1.6.1") implementation("androidx.constraintlayout:constraintlayout:2.1.4") - implementation("com.google.android.material:material:1.11.0") + implementation("com.google.android.material:material:1.9.0") implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.6.10")) implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8") diff --git a/feed_resources/app/build.gradle.kts b/feed_resources/app/build.gradle.kts index d4d683b..5c4bbc0 100644 --- a/feed_resources/app/build.gradle.kts +++ b/feed_resources/app/build.gradle.kts @@ -8,13 +8,13 @@ plugins { android { namespace = "com.firework.example.feedresources" - compileSdk = 34 + compileSdk = 33 defaultConfig { applicationId = "com.firework.example.feedresources" minSdk = 21 - targetSdk = 34 + targetSdk = 33 versionCode = 1 versionName = "1.0.0" @@ -72,7 +72,7 @@ dependencies { implementation("androidx.appcompat:appcompat:1.6.1") implementation("androidx.constraintlayout:constraintlayout:2.1.4") - implementation("com.google.android.material:material:1.11.0") + implementation("com.google.android.material:material:1.9.0") implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.6.10")) implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8") diff --git a/language/app/build.gradle.kts b/language/app/build.gradle.kts index 785457d..aa80f59 100644 --- a/language/app/build.gradle.kts +++ b/language/app/build.gradle.kts @@ -8,13 +8,13 @@ plugins { android { namespace = "com.firework.example.language" - compileSdk = 34 + compileSdk = 33 defaultConfig { applicationId = "com.firework.example.language" minSdk = 21 - targetSdk = 34 + targetSdk = 33 versionCode = 1 versionName = "1.0.0" diff --git a/multi_host_livestream/app/build.gradle.kts b/multi_host_livestream/app/build.gradle.kts index a814f09..ff93c4c 100644 --- a/multi_host_livestream/app/build.gradle.kts +++ b/multi_host_livestream/app/build.gradle.kts @@ -8,13 +8,13 @@ plugins { android { namespace = "com.firework.example.multihostlivestream" - compileSdk = 34 + compileSdk = 33 defaultConfig { applicationId = "com.firework.example.multihostlivestream" minSdk = 21 - targetSdk = 34 + targetSdk = 33 versionCode = 1 versionName = "1.0.0" diff --git a/picture_in_picture/app/build.gradle.kts b/picture_in_picture/app/build.gradle.kts index 42f7bb1..b93be11 100644 --- a/picture_in_picture/app/build.gradle.kts +++ b/picture_in_picture/app/build.gradle.kts @@ -8,13 +8,13 @@ plugins { android { namespace = "com.firework.example.pictureinpicture" - compileSdk = 34 + compileSdk = 33 defaultConfig { applicationId = "com.firework.example.pictureinpicture" minSdk = 21 - targetSdk = 34 + targetSdk = 33 versionCode = 1 versionName = "1.0.0" @@ -69,7 +69,7 @@ dependencies { implementation("androidx.appcompat:appcompat:1.6.1") implementation("androidx.constraintlayout:constraintlayout:2.1.4") - implementation("com.google.android.material:material:1.11.0") + implementation("com.google.android.material:material:1.9.0") implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.6.10")) implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8") diff --git a/share_link/app/build.gradle.kts b/share_link/app/build.gradle.kts index 71866a1..e11c5b7 100644 --- a/share_link/app/build.gradle.kts +++ b/share_link/app/build.gradle.kts @@ -8,13 +8,13 @@ plugins { android { namespace = "com.firework.example.sharelink" - compileSdk = 34 + compileSdk = 33 defaultConfig { applicationId = "com.firework.example.sharelink" minSdk = 21 - targetSdk = 34 + targetSdk = 33 versionCode = 1 versionName = "1.0.0" @@ -71,7 +71,7 @@ dependencies { implementation("androidx.appcompat:appcompat:1.6.1") implementation("androidx.constraintlayout:constraintlayout:2.1.4") - implementation("com.google.android.material:material:1.11.0") + implementation("com.google.android.material:material:1.9.0") implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.6.10")) implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8") diff --git a/shopping/app/build.gradle.kts b/shopping/app/build.gradle.kts index f8d2766..ee3b023 100644 --- a/shopping/app/build.gradle.kts +++ b/shopping/app/build.gradle.kts @@ -8,13 +8,13 @@ plugins { android { namespace = "com.firework.example.shopping" - compileSdk = 34 + compileSdk = 33 defaultConfig { applicationId = "com.firework.example.shopping" minSdk = 21 - targetSdk = 34 + targetSdk = 33 versionCode = 1 versionName = "1.0.0" @@ -64,7 +64,7 @@ dependencies { implementation("androidx.appcompat:appcompat:1.6.1") implementation("androidx.constraintlayout:constraintlayout:2.1.4") - implementation("com.google.android.material:material:1.11.0") + implementation("com.google.android.material:material:1.9.0") implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.6.10")) implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8") diff --git a/single_host_livestream/app/build.gradle.kts b/single_host_livestream/app/build.gradle.kts index daf8a7a..bb3ca65 100644 --- a/single_host_livestream/app/build.gradle.kts +++ b/single_host_livestream/app/build.gradle.kts @@ -8,13 +8,13 @@ plugins { android { namespace = "com.firework.example.singlehostlivestream" - compileSdk = 34 + compileSdk = 33 defaultConfig { applicationId = "com.firework.example.singlehostlivestream" minSdk = 21 - targetSdk = 34 + targetSdk = 33 versionCode = 1 versionName = "1.0.0" diff --git a/story_block/app/build.gradle.kts b/story_block/app/build.gradle.kts index 9f36636..53352eb 100644 --- a/story_block/app/build.gradle.kts +++ b/story_block/app/build.gradle.kts @@ -8,13 +8,13 @@ plugins { android { namespace = "com.firework.example.storyblock" - compileSdk = 34 + compileSdk = 33 defaultConfig { applicationId = "com.firework.example.storyblock" minSdk = 21 - targetSdk = 34 + targetSdk = 33 versionCode = 1 versionName = "1.0.0" @@ -71,7 +71,7 @@ dependencies { implementation("androidx.appcompat:appcompat:1.6.1") implementation("androidx.constraintlayout:constraintlayout:2.1.4") - implementation("com.google.android.material:material:1.11.0") + implementation("com.google.android.material:material:1.9.0") implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.6.10")) implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8") diff --git a/view_options/app/build.gradle.kts b/view_options/app/build.gradle.kts index 911c24a..aa1cc22 100644 --- a/view_options/app/build.gradle.kts +++ b/view_options/app/build.gradle.kts @@ -8,13 +8,13 @@ plugins { android { namespace = "com.firework.example.viewoptions" - compileSdk = 34 + compileSdk = 33 defaultConfig { applicationId = "com.firework.example.viewoptions" minSdk = 21 - targetSdk = 34 + targetSdk = 33 versionCode = 1 versionName = "1.0.0"