Skip to content

Commit 094baf0

Browse files
committed
fix: AGP 8.x compatibility + Flutter 3.24
@mvarendorff2 @JohnGalt1717 #183 #172
1 parent 4ba46dc commit 094baf0

File tree

5 files changed

+248
-155
lines changed

5 files changed

+248
-155
lines changed

cryptography_flutter/android/build.gradle

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ group 'dev.dint.cryptography_flutter'
22
version '1.0-SNAPSHOT'
33

44
buildscript {
5-
ext.kotlin_version = '1.7.10'
5+
ext.kotlin_version = "1.7.10"
66
repositories {
77
google()
88
mavenCentral()
99
}
1010

1111
dependencies {
12-
classpath 'com.android.tools.build:gradle:7.2.0'
13-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
12+
classpath("com.android.tools.build:gradle:8.5.0")
13+
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
1414
}
1515
}
1616

@@ -25,8 +25,10 @@ apply plugin: 'com.android.library'
2525
apply plugin: 'kotlin-android'
2626

2727
android {
28-
compileSdkVersion 31
29-
28+
if (project.android.hasProperty("namespace")) {
29+
namespace = "dev.dint.cryptography_flutter"
30+
}
31+
compileSdk 34
3032
compileOptions {
3133
sourceCompatibility JavaVersion.VERSION_1_8
3234
targetCompatibility JavaVersion.VERSION_1_8
@@ -43,9 +45,9 @@ android {
4345
defaultConfig {
4446
minSdkVersion 21
4547
}
46-
}
4748

48-
dependencies {
49-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
50-
implementation "androidx.security:security-crypto:1.1.0-alpha05"
51-
}
49+
dependencies {
50+
testImplementation("org.jetbrains.kotlin:kotlin-test")
51+
testImplementation("org.mockito:mockito-core:5.0.0")
52+
}
53+
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
org.gradle.jvmargs=-Xmx1536M
2-
android.enableR8=true
1+
org.gradle.jvmargs=-Xmx4G
32
android.useAndroidX=true
43
android.enableJetifier=true

0 commit comments

Comments
 (0)