-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Android Gradle plugin 8.2 (#1003)
- Loading branch information
Showing
45 changed files
with
149 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
// Top-level build file where you can add configuration options common to all | ||
// sub-projects/modules. | ||
buildscript { | ||
// The version file can't be read within the plugins block, because there's no way | ||
// to determine the project directory there. | ||
System.setProperty("chaquopyVersion", file("../VERSION.txt").readText().trim()) | ||
} | ||
|
||
plugins { | ||
id("com.android.application") version "8.1.3" apply false | ||
id("org.jetbrains.kotlin.android") version "1.8.10" apply false | ||
id("com.chaquo.python") version System.getProperty("chaquopyVersion") apply false | ||
|
||
// com.chaquo.python is declared in settings.gradle.kts, because dynamic versions | ||
// are not possible here. See | ||
// https://docs.gradle.org/current/userguide/plugins.html#sec:plugin_version_management | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 15 additions & 0 deletions
15
product/gradle-plugin/src/test/integration/data/base/8.2/build.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
plugins { | ||
// Plugin versions are configured in settings.gradle.kts, because dynamic versions | ||
// are not possible here. See | ||
// https://docs.gradle.org/current/userguide/plugins.html#sec:plugin_version_management | ||
// | ||
// Listing the plugins in settings.gradle.kts is enough to enable the `plugins` | ||
// syntax in subprojects, but the `apply` syntax requires them to be listed here as | ||
// well. | ||
id("com.android.application") apply false | ||
id("com.android.library") apply false | ||
id("com.android.dynamic-feature") apply false | ||
id("org.jetbrains.kotlin.android") apply false | ||
id("com.chaquo.python") apply false | ||
} |
33 changes: 33 additions & 0 deletions
33
product/gradle-plugin/src/test/integration/data/base/8.2/gradle.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# The test script uses this to set JAVA_HOME. | ||
chaquopy.java.version=17 | ||
|
||
agpVersion=8.2.0-rc03 | ||
|
||
# These variables will be filled in by the test script. | ||
chaquopyRepository= | ||
chaquopyVersion= | ||
|
||
# Gradle Daemon will terminate itself after specified number of idle milliseconds. Default is | ||
# 10800000 (3 hours), but that can overload the machine when running integration tests on many | ||
# versions. Reduce to 30 minutes. | ||
org.gradle.daemon.idletimeout=1800000 | ||
|
||
# Default settings generated by the new project wizard: | ||
|
||
# Specifies the JVM arguments used for the daemon process. | ||
# The setting is particularly useful for tweaking memory settings. | ||
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 | ||
# When configured, Gradle will run in incubating parallel mode. | ||
# This option should only be used with decoupled projects. More details, visit | ||
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects | ||
# org.gradle.parallel=true | ||
# AndroidX package structure to make it clearer which packages are bundled with the | ||
# Android operating system, and which are packaged with your app's APK | ||
# https://developer.android.com/topic/libraries/support-library/androidx-rn | ||
android.useAndroidX=true | ||
# Kotlin code style for this project: "official" or "obsolete": | ||
kotlin.code.style=official | ||
# Enables namespacing of each library's R class so that its R class includes only the | ||
# resources declared in the library itself and none from the library's dependencies, | ||
# thereby reducing the size of the R class for that library | ||
android.nonTransitiveRClass=true |
5 changes: 5 additions & 0 deletions
5
...gradle-plugin/src/test/integration/data/base/8.2/gradle/wrapper/gradle-wrapper.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
40 changes: 40 additions & 0 deletions
40
product/gradle-plugin/src/test/integration/data/base/8.2/settings.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
pluginManagement { | ||
// These are defined in gradle.properties. | ||
val chaquopyRepository: String by settings | ||
val chaquopyVersion: String by settings | ||
val agpVersion: String by settings | ||
|
||
repositories { | ||
google() | ||
mavenCentral() | ||
gradlePluginPortal() | ||
maven { url = uri(chaquopyRepository) } | ||
} | ||
plugins { | ||
id("com.android.application") version agpVersion | ||
id("com.android.library") version agpVersion | ||
id("com.android.dynamic-feature") version agpVersion | ||
id("org.jetbrains.kotlin.android") version "1.9.0" | ||
id("com.chaquo.python") version chaquopyVersion | ||
} | ||
} | ||
|
||
dependencyResolutionManagement { | ||
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) | ||
repositories { | ||
google() | ||
mavenCentral() | ||
} | ||
} | ||
|
||
rootProject.name = "My Application" | ||
|
||
for (f in rootDir.listFiles()!!) { | ||
if (f.isDirectory) { | ||
for (buildGradle in listOf("build.gradle", "build.gradle.kts")) { | ||
if (File(f, buildGradle).exists()) { | ||
include(f.name) | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters