Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion braille/brltty/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply from: "../../shared.gradle"

android {
namespace "com.google.android.accessibility.braille.brltty"
ndkVersion "21.4.7075529"
ndkVersion "27.2.12479018"
externalNativeBuild {
ndkBuild {
path file('src/phone/jni/Android.mk')
Expand Down
2 changes: 1 addition & 1 deletion braille/translate/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply from: "../../shared.gradle"

android {
namespace "com.google.android.accessibility.braille.translate"
ndkVersion "21.4.7075529"
ndkVersion "27.2.12479018"
externalNativeBuild {
ndkBuild {
path file('src/phone/jni/Android.mk')
Expand Down
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
9 changes: 9 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
248 changes: 248 additions & 0 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

82 changes: 82 additions & 0 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions shared.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ android {
}
}

// Kotlin interface defaults become real Java default methods, so Java
// implementers keep inheriting them (e.g. GestureConfigProvider), matching the
// original Java. (Dynamic access because script plugins cannot reference the
// Kotlin plugin classes by name.)
tasks.configureEach { task ->
if (task.name.startsWith("compile") && task.name.contains("Kotlin")) {
task.kotlinOptions.freeCompilerArgs += "-Xjvm-default=all"
}
}

dependencies {

// Google common
Expand Down
9 changes: 9 additions & 0 deletions utils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ apply from: "../shared.gradle"

dependencies {
implementation project(':proguard')
// Characterization tests: written against the original Java, then run
// unchanged against the converted Kotlin.
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.robolectric:robolectric:4.14.1'
}

android {
Expand All @@ -14,4 +18,9 @@ android {
buildConfigField("String", "TALKBACK_APPLICATION_ID", '"' + talkbackApplicationId + '"')
buildConfigField("String", "IS_SYSTEM_PRELOAD", "\"False\"")
}
testOptions {
unitTests {
includeAndroidResources = true
}
}
}
Loading