Skip to content

Commit

Permalink
Fix write dex file error
Browse files Browse the repository at this point in the history
**What**
- Fixing the write dex file crash

**Why**
- tiann/FreeReflection#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 <[email protected]>
  • Loading branch information
Mohsen Mirhoseini committed Feb 16, 2024
1 parent 28e4fba commit 8732e28
Show file tree
Hide file tree
Showing 11 changed files with 65 additions and 28 deletions.
4 changes: 2 additions & 2 deletions compose/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
10 changes: 7 additions & 3 deletions feed_integration/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -53,6 +53,10 @@ android {
abortOnError = true
ignoreWarnings = false
warningsAsErrors = true

disable.apply {
add("OldTargetApi")
}
}

buildFeatures {
Expand All @@ -71,7 +75,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")
Expand Down
10 changes: 7 additions & 3 deletions feed_resources/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -54,6 +54,10 @@ android {
abortOnError = true
ignoreWarnings = false
warningsAsErrors = true

disable.apply {
add("OldTargetApi")
}
}

buildFeatures {
Expand All @@ -72,7 +76,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")
Expand Down
5 changes: 3 additions & 2 deletions language/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -49,6 +49,7 @@ android {

disable.apply {
add("AppBundleLocaleChanges")
add("OldTargetApi")
}
}

Expand Down
8 changes: 6 additions & 2 deletions multi_host_livestream/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -46,6 +46,10 @@ android {
abortOnError = true
ignoreWarnings = false
warningsAsErrors = true

disable.apply {
add("OldTargetApi")
}
}

buildFeatures {
Expand Down
10 changes: 7 additions & 3 deletions picture_in_picture/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -51,6 +51,10 @@ android {
abortOnError = true
ignoreWarnings = false
warningsAsErrors = true

disable.apply {
add("OldTargetApi")
}
}

buildFeatures {
Expand All @@ -69,7 +73,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")
Expand Down
10 changes: 7 additions & 3 deletions share_link/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -53,6 +53,10 @@ android {
abortOnError = true
ignoreWarnings = false
warningsAsErrors = true

disable.apply {
add("OldTargetApi")
}
}

buildFeatures {
Expand All @@ -71,7 +75,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")
Expand Down
10 changes: 7 additions & 3 deletions shopping/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -46,6 +46,10 @@ android {
abortOnError = true
ignoreWarnings = false
warningsAsErrors = true

disable.apply {
add("OldTargetApi")
}
}

buildFeatures {
Expand All @@ -64,7 +68,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")
Expand Down
8 changes: 6 additions & 2 deletions single_host_livestream/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -46,6 +46,10 @@ android {
abortOnError = true
ignoreWarnings = false
warningsAsErrors = true

disable.apply {
add("OldTargetApi")
}
}

buildFeatures {
Expand Down
10 changes: 7 additions & 3 deletions story_block/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -53,6 +53,10 @@ android {
abortOnError = true
ignoreWarnings = false
warningsAsErrors = true

disable.apply {
add("OldTargetApi")
}
}

buildFeatures {
Expand All @@ -71,7 +75,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")
Expand Down
8 changes: 6 additions & 2 deletions view_options/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -44,6 +44,10 @@ android {
abortOnError = true
ignoreWarnings = false
warningsAsErrors = true

disable.apply {
add("OldTargetApi")
}
}

buildFeatures {
Expand Down

0 comments on commit 8732e28

Please sign in to comment.