Skip to content

Commit

Permalink
Upgrade Gradle version to 8.11 and AGP version to 8.7.3 (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
ko1in1u authored Dec 17, 2024
1 parent bb800d7 commit c137bcf
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.1'
classpath 'com.android.tools.build:gradle:8.7.3'

// NOTE: Do not place your application dependencies here.
}
Expand Down Expand Up @@ -50,12 +50,13 @@ android {
warningsAsErrors true
disable 'HardwareIds','MissingApplicationIcon','GoogleAppIndexingWarning','InvalidPackage','OldTargetApi'
}
namespace 'com.google.android.mobly.snippet.bundled'
}

// Produces a jar of source files. Needed for compliance reasons.
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'src'
archiveClassifier.set('src')
}

task javadoc(type: Javadoc) {
Expand Down
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ org.gradle.jvmargs=-Xmx1536M
android.enableD8.desugaring=true
android.useAndroidX=true
android.enableJetifier=true
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sun Feb 14 02:01:02 CST 2021
#Mon Dec 16 18:55:43 PST 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
3 changes: 1 addition & 2 deletions src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.android.mobly.snippet.bundled">
xmlns:android="http://schemas.android.com/apk/res/android">

<uses-feature android:name="android.hardware.telephony" android:required="false" />

Expand Down
6 changes: 3 additions & 3 deletions src/test/java/UtilsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public void testInvokeByReflection_Obj() throws Throwable {
List<?> sampleList = Collections.singletonList("sampleList");
ReflectionTest_HostClass hostClass = new ReflectionTest_HostClass();
Object ret = invokeByReflection(hostClass, "returnSame", sampleList);
Truth.assertThat(ret).isSameAs(sampleList);
Truth.assertThat(ret).isEqualTo(sampleList);
}

@Test
Expand Down Expand Up @@ -87,11 +87,11 @@ public void testInvokeByReflection_MultiArg() throws Throwable {
Object arg2 = new Object();
Object ret =
invokeByReflection(hostClass, "multiArgCall", arg1, arg2, true /* returnArg1 */);
Truth.assertThat(ret).isSameAs(arg1);
Truth.assertThat(ret).isEqualTo(arg1);
ret =
Utils.invokeByReflection(
hostClass, "multiArgCall", arg1, arg2, false /* returnArg1 */);
Truth.assertThat(ret).isSameAs(arg2);
Truth.assertThat(ret).isEqualTo(arg2);
}

@Test
Expand Down

0 comments on commit c137bcf

Please sign in to comment.