File tree Expand file tree Collapse file tree 3 files changed +23
-6
lines changed
sdk/tests/android/testapp Expand file tree Collapse file tree 3 files changed +23
-6
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ buildscript {
6
6
mavenCentral()
7
7
}
8
8
dependencies {
9
- classpath " com.android.tools.build:gradle:7.1.2"
9
+ // AGP 8.5.1+ aligns uncompressed .so at 16KB automatically
10
+ // Requires JDK 17+
11
+ classpath " com.android.tools.build:gradle:8.5.1"
10
12
11
13
// NOTE: Do not place your application dependencies here; they belong
12
14
// in the individual module build.gradle files
Original file line number Diff line number Diff line change @@ -43,18 +43,30 @@ ext {
43
43
}
44
44
45
45
android {
46
- compileSdkVersion 30
47
- buildToolsVersion " 30.0.3"
46
+ namespace " software.amazon.awssdk.iotdevicesdk" // REQUIRED on AGP 8+
47
+
48
+ compileSdkVersion 35
48
49
49
50
defaultConfig {
50
51
minSdkVersion 24
51
- targetSdkVersion 30
52
+ targetSdkVersion 33
52
53
versionCode = gitVersionCode()
53
54
versionName = gitVersionName()
54
55
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
55
56
consumerProguardFiles ' consumer-rules.pro'
56
57
}
57
58
59
+ buildFeatures {
60
+ // AGP 8 disables buildConfig generation by default. We set this to true
61
+ // to resstore BuildConfig.VERSION_NAME for both debug and release build types.
62
+ buildConfig true
63
+ }
64
+
65
+ // Make the 'release' SoftwareComponent available for publishing on AGP 8
66
+ publishing {
67
+ singleVariant(" release" ) { withSourcesJar() }
68
+ }
69
+
58
70
sourceSets {
59
71
main. java {
60
72
srcDirs = [' src/main/java' ,
@@ -145,7 +157,10 @@ afterEvaluate {
145
157
146
158
publications {
147
159
release(MavenPublication ) {
148
- from components. release
160
+ def comp = components. findByName(" release" )
161
+ if (comp != null ) {
162
+ from comp
163
+ }
149
164
150
165
groupId = ' software.amazon.awssdk.iotdevicesdk'
151
166
artifactId = ' aws-iot-device-sdk-android'
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ buildscript {
5
5
mavenCentral()
6
6
}
7
7
dependencies {
8
- classpath " com.android.tools.build:gradle:7.1.2 "
8
+ classpath " com.android.tools.build:gradle:8.5.1 "
9
9
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
10
10
}
11
11
}
You can’t perform that action at this time.
0 commit comments