Skip to content

Commit

Permalink
[ECO-5020] fix: update AGP plugin
Browse files Browse the repository at this point in the history
- updated AGP plugin to 8.0
- added build config feature
- added support for older AGP versions
  • Loading branch information
ttypic committed Oct 7, 2024
1 parent c6a780f commit 48eaa12
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:7.2.0'
classpath 'com.android.tools.build:gradle:8.0.0'
}
}

Expand All @@ -35,6 +35,11 @@ dependencies {
android {
compileSdkVersion 32

// Conditional for compatibility with AGP <4.2.
if (project.android.hasProperty("namespace")) {
namespace 'io.ably.flutter.plugin'
}

// Require Java language level 8 so we can use Method References (used with Lambdas)
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
Expand All @@ -56,6 +61,9 @@ android {
lintOptions {
disable 'InvalidPackage'
}
buildFeatures {
buildConfig true
}
}

apply from: file("./ably-agent.gradle")

0 comments on commit 48eaa12

Please sign in to comment.