Skip to content

Commit

Permalink
Fix write dex file error (#84)
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 compile & targetSdk to 33

Signed-off-by: Mohsen Mirhoseini <[email protected]>
  • Loading branch information
Mohsen Mirhoseini authored Feb 16, 2024
1 parent 28e4fba commit 96fe7b2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 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,11 @@ android {
abortOnError = true
ignoreWarnings = false
warningsAsErrors = true

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

buildFeatures {
Expand All @@ -69,7 +74,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

0 comments on commit 96fe7b2

Please sign in to comment.