",
- "Call chains/androidComponents.selector().withBuildType()",
- "APIs/AndroidComponentsExtension.selector()",
- "APIs/VariantSelector.withBuildType()",
- "All projects",
- "APIs/SingleArtifact.APK",
- "Call chains/variant.artifacts.get()",
- "APIs/Artifacts.get()"
-]
diff --git a/recipes/appendToMultipleArtifact/build-logic/gradle/libs.versions.toml b/recipes/appendToMultipleArtifact/build-logic/gradle/libs.versions.toml
deleted file mode 100644
index d362ae08..00000000
--- a/recipes/appendToMultipleArtifact/build-logic/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[libraries]
-android-gradlePlugin-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
-
-[plugins]
-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
diff --git a/recipes/appendToMultipleArtifact/gradle/libs.versions.toml b/recipes/appendToMultipleArtifact/gradle/libs.versions.toml
deleted file mode 100644
index 8c672bba..00000000
--- a/recipes/appendToMultipleArtifact/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[plugins]
-android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
-
-
diff --git a/recipes/appendToMultipleArtifact/recipe_metadata.toml b/recipes/appendToMultipleArtifact/recipe_metadata.toml
deleted file mode 100644
index 236b6b35..00000000
--- a/recipes/appendToMultipleArtifact/recipe_metadata.toml
+++ /dev/null
@@ -1,34 +0,0 @@
-# optional (if present and non-blank) name to use in the index
-indexName = ""
-# optional (if present and non-blank) folder name to use when converting recipe in RELEASE mode
-destinationFolder = ""
-
-description ="""
- Recipe that appends a generated directory to an instance of MultipleArtifact.
- """
-
-[agpVersion]
-min = "8.1.0"
-
-# Relevant Gradle tasks to run per recipe
-[gradleTasks]
-tasks = [
- "checkDebugBundle"
-]
-
-# All the relevant metadata fields to create an index based on language/API/etc'
-[indexMetadata]
-index = [
- "Themes/Artifact API",
- "Call chains/variant.artifacts.get()",
- "Call chains/variant.artifacts.use().wiredWith().toAppendTo()",
- "Call chains/androidComponents.onVariants {}",
- "APIs/MultipleArtifact.NATIVE_DEBUG_METADATA",
- "APIs/OutOperationRequest.toAppendTo()",
- "APIs/SingleArtifact.BUNDLE",
- "APIs/Artifacts.use()",
- "APIs/Artifacts.get()",
- "APIs/Component.artifacts",
- "APIs/AndroidComponentsExtension.onVariants()"
-]
-
diff --git a/recipes/appendToScopedArtifacts/build-logic/gradle/libs.versions.toml b/recipes/appendToScopedArtifacts/build-logic/gradle/libs.versions.toml
deleted file mode 100644
index d362ae08..00000000
--- a/recipes/appendToScopedArtifacts/build-logic/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[libraries]
-android-gradlePlugin-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
-
-[plugins]
-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
diff --git a/recipes/appendToScopedArtifacts/gradle/libs.versions.toml b/recipes/appendToScopedArtifacts/gradle/libs.versions.toml
deleted file mode 100644
index 8c672bba..00000000
--- a/recipes/appendToScopedArtifacts/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[plugins]
-android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
-
-
diff --git a/recipes/appendToScopedArtifacts/recipe_metadata.toml b/recipes/appendToScopedArtifacts/recipe_metadata.toml
deleted file mode 100644
index b2ffd32b..00000000
--- a/recipes/appendToScopedArtifacts/recipe_metadata.toml
+++ /dev/null
@@ -1,34 +0,0 @@
-# optional (if present and non-blank) name to use in the index
-indexName = ""
-# optional (if present and non-blank) folder name to use when converting recipe in RELEASE mode
-destinationFolder = ""
-
-description ="""
- Recipe that appends to a scoped artifact and verifies in a task.
- """
-
-[agpVersion]
-min = "8.1.0"
-
-# Relevant Gradle tasks to run per recipe
-[gradleTasks]
-tasks = [
- "checkDebugClasses"
-]
-
-# All the relevant metadata fields to create an index based on language/API/etc'
-[indexMetadata]
-index = [
- "Themes/Artifact API",
- "APIs/AndroidComponentsExtension.onVariants()",
- "Call chains/androidComponents.onVariants {}",
- "Call chains/variant.artifacts.forScope().use().toAppend()",
- "APIs/Component.artifacts",
- "APIs/Artifacts.forScope()",
- "APIs/ScopedArtifacts.Scope.ALL",
- "APIs/ScopedArtifacts.Scope.PROJECT",
- "APIs/ScopedArtifacts.use()",
- "APIs/ScopedArtifact.CLASSES",
- "APIs/ScopedArtifactsOperation.toGet()",
- "APIs/ScopedArtifactsOperation.toAppend()"
-]
diff --git a/recipes/applyFusedLibraryPlugin/README.md b/recipes/applyFusedLibraryPlugin/README.md
deleted file mode 100644
index e01fe26d..00000000
--- a/recipes/applyFusedLibraryPlugin/README.md
+++ /dev/null
@@ -1,181 +0,0 @@
-# Fused Library Plugin
-
-## What is Fused Library Plugin?
-
-An Android Gradle Plugin that helps Android library developers publish multiple Android libraries in a
-single Android library artifact i.e. the '.aar' file.
-
-### *IMPORTANT* - State of the Fused Library Plugin
-Fused Library Plugin is currently in an early testing phase. Therefore, artifacts published by the
-plugin and plugin behaviour may not be stable at this time. Take caution before distributing
-published artifacts created by the plugin; there is no guarantee of correctness.
-
-As an early adopter, please be aware that there may be frequent breaking changes that may require
-you to make changes to your project.
-
-The recipe may not be updated as frequently as the plugin, so please ensure you are using the most
-recent version of Android Studio Canary and the Android Gradle Plugin alpha releases.
-
-### This recipe
-
-This project aims to provide a non-exhaustive, but common examples of plugin usage for consumption
-by other libraries.
-
-┌─────────────────────────────────────────┐
-│ :app │
-│ ▲ │
-│ │ │
-│ :fusedLibrary │
-│ ▲ ▲ │
-│ │ │ │
-│ :androidLib2* :androidLib1* │
-│ ▲ ▲ │
-│ │ │ │
-│ :androidLib3 com.google.code.gson:gson* │
-└─────────────────────────────────────────┘
-
-This diagram shows an overview of the relevant project dependency structure.
-
-`*` indicates an `include` dependency of the `:fusedLibrary` module
-
-Example usages of classes, resources and other artifacts are demonstrated in the :app module unit
-and instrumentation tests.
-
-## Usage Guide
-
-### Setting up the Fused Library
-
-*This recipe project was set up with the following key steps*
-
-1. Apply the plugin
- gradle/libs.versions.toml append
-```toml
-[plugins]
-android-fusedlibrary = { id = "com.android.fusedlibrary", version.ref = "agp" }
-```
-2. Create a new module. `File` > `New Module...` . Then, click `Android Library` and fill out the
- required module metadata. Click `Finish`.
-3. In the new module (let's call it `:fusedLibrary`) open the `build.gradle.kts` file,
- then replace the `plugins` block with
-```kts
-plugins {
- alias(libs.plugins.android.fusedlibrary)
-}
-```
-to apply the Fused Library Plugin
-4. Fused library modules cannot not contain sources such as code or resources, nor does it use
- the typical `implementation` or `api` configurations you may expect to declare as dependencies.
-
-Done.
-
-Fused library introduces a new configuration `include`, that declares what dependencies will be
-fused in the built/published .aar file.
-
-For example, the `:fusedLibrary` could define the following in the `dependencies` block:
-
-```kts
-dependencies {
- include(project(":androidLib1"))
- include(project(":androidLib2"))
- include("com.google.code.gson:gson:2.11.0")
- include(files("libs/simple-jar-with-A_DoIExist-class.jar"))
-}
-```
-
-### Building the fused library
-
-1. Check what dependencies will be included in the .aar based on the dependencies configuration
- by running `./gradlew :fusedLibrary:report`
- Take a look at the report output in the :fusedLibrary build directory
- `fusedLibrary/build/reports/fused_library_report/single/report.json`. Check the dependencies that
- will be included in the library match your expectations.
-2. Once you are satisfied, you can proceed to build the library using
- `./gradlew :fusedLibrary:assemble`. Assuming dependencies are valid,
- this task produces the .aar fused library at `fusedLibrary/build/bundle/bundle.aar`.
-3. Resync project `ctrl+shift+O`
-
-Done.
-
-At this point, you can add the fused library as a dependency from other modules.
-
-### Running the consumption tests
-
-In the :app module there are tests that make use of the classes and resource distributed via
-`:fusedLibrary`.
-
-Run unit tests: `./gradlew :app:testDebugUnitTest --tests "com.example.fusedlibrarysample.FusedLibraryConsumptionUnitTest"`
-
-Run instrumentation tests: `./gradlew :app:connectedDebugAndroidTest`
-
-### Publishing the fused library
-
-Fused Library Plugin artifacts can be easily configured for publication with Maven publishing
-plugins. The plugin generates it's own POM for distribution that preserves the artifact dependencies.
-We'll provide some typical configurations for publishing that may be useful for most use cases
-however, if your needs are more complex, consult the Maven documentation.
-
-Generating the fused lib POM
-1. Follow the steps of `Building a fused library`
-2. `./gradlew :fusedLibrary:generatePomFileForMavenPublication`
-3. The POM should be created at `fusedLibrary/build/publications/maven/pom-default.xml`
-Done.
-
-Generating a maven repository with the fused library
-1. Add configuration to the fused library build file
-```
- publishing {
- publications {
- register("release") {
- // Customize with your own publication metadata
- groupId = "com.my-company"
- artifactId = "my-fused-library"
- version = "1.0"
-
- afterEvaluate {
- // fusedLibraryComponent is required for obtaining fused library artifacts
- from(components["fusedLibraryComponent"])
- }
- }
- }
- repositories {
- maven {
- name = "myrepo"
- url = uri(layout.buildDirectory.dir("repo"))
- }
- }
- }
-
-```
-2. Execute the task for creating the repository `./gradlew :fusedLibrary:publishReleasePublicationToMyrepoRepository`
-3. As androidLib3 is a project dependency of the fused library, that also needs to be published to
-the repository`./gradlew :androidLib3:publishMavenPublicationToMyrepoRepository`
-4. Note: `:app` has already configured dependency substitution that prefers the published local repo
-artifacts over the `:fusedLibrary` project itself, so `:app` now automatically depends on the correct
-artifacts.
-
-Done.
-
-### Configurations
-
-| Name | Description |
-|---------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| include | Specifies components to be fused into the final artifact. Included components are resolvable at runtime. This configuration is not transitive, therefore dependencies will not be included in the fused artifact. There is no support for file dependencies excluding libs/jars. Databinding dependencies are prohibited. |
-
-### Report Issues
-
-This plugin remains in early stages, and there may be corner cases that have not been fully tested
-or developed.
-
-See open public issues at this link [open issues](https://issuetracker.google.com/components/1692458)
-
-Follow the below steps and use this [link to **file new bugs**](https://issuetracker.google.com/issues/new?title=%5Bfused+lib+-+public%5D+%3CIssue+Name+Here%3E&cc=lukeedgar%40google.com%2C+android-gradle%40google.com&description=1.+Steps+to+reproduce%0A2.+A+paste+of+the+exception%0A3.+run+%60.%2Fgradlew+%3A%3Cfused+library+module%3E%3Areport%60+and+paste+the+contents+of+%0A%60%3Cmy+library+module%3Ebuild%2Freports%2Ffused_library_report%2Fsingle%2Freport.json%60%0A4.+Also+consider+running+%60.%2Fgradlew+%3A%3Cfused+library+module%3E%3Adependencies%60+if+dependency+information+is+relevant%0A5.+%5C%5Boptional%5C%5D+if+the+build+was+successful%2C+provide+a+copy+of+the+.aar&format=MARKDOWN&component=192708&type=BUG&priority=P2&severity=S2&hotlistIds=4053459&assignee=lukeedgar%40google.com)
-**or provide suggestions** for the Fused Library Plugin.
-
-When filing an issue, please include the following information:
-1. Steps to reproduce
-2. A paste of the exception
-3. run `./gradlew ::report` and paste the contents of
-`build/reports/fused_library_report/single/report.json`
-4. Also consider running `./gradlew ::dependencies` if dependency information is relevant
-5. \[optional\] if the build was successful, provide a copy of the .aar
-Done.
diff --git a/recipes/applyFusedLibraryPlugin/androidLib1/.gitignore b/recipes/applyFusedLibraryPlugin/androidLib1/.gitignore
deleted file mode 100644
index 42afabfd..00000000
--- a/recipes/applyFusedLibraryPlugin/androidLib1/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/build
\ No newline at end of file
diff --git a/recipes/applyFusedLibraryPlugin/androidLib1/build.gradle.kts b/recipes/applyFusedLibraryPlugin/androidLib1/build.gradle.kts
deleted file mode 100644
index 8e92d8e4..00000000
--- a/recipes/applyFusedLibraryPlugin/androidLib1/build.gradle.kts
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-plugins {
- alias(libs.plugins.android.library)
- alias(libs.plugins.jetbrains.kotlin.android)
-}
-
-android {
- namespace = "com.example.androidlib1"
- compileSdk = $COMPILE_SDK
-
- defaultConfig {
- minSdk = $MINIMUM_SDK
-
- testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
- consumerProguardFiles("consumer-rules.pro")
- }
-
- buildTypes {
- release {
- isMinifyEnabled = false
- proguardFiles(
- getDefaultProguardFile("proguard-android-optimize.txt"),
- "proguard-rules.pro"
- )
- }
- }
- sourceSets {
- named("main") {
- resources.srcDirs("src/main/resources")
- }
- }
- compileOptions {
- sourceCompatibility = JavaVersion.VERSION_1_8
- targetCompatibility = JavaVersion.VERSION_1_8
- }
- kotlinOptions {
- jvmTarget = "1.8"
- }
-}
-
-dependencies {
- implementation("com.google.code.gson:gson:2.10.1")
-}
diff --git a/recipes/applyFusedLibraryPlugin/androidLib1/consumer-rules.pro b/recipes/applyFusedLibraryPlugin/androidLib1/consumer-rules.pro
deleted file mode 100644
index e69de29b..00000000
diff --git a/recipes/applyFusedLibraryPlugin/androidLib1/proguard-rules.pro b/recipes/applyFusedLibraryPlugin/androidLib1/proguard-rules.pro
deleted file mode 100644
index 481bb434..00000000
--- a/recipes/applyFusedLibraryPlugin/androidLib1/proguard-rules.pro
+++ /dev/null
@@ -1,21 +0,0 @@
-# Add project specific ProGuard rules here.
-# You can control the set of applied configuration files using the
-# proguardFiles setting in build.gradle.
-#
-# For more details, see
-# http://developer.android.com/guide/developing/tools/proguard.html
-
-# If your project uses WebView with JS, uncomment the following
-# and specify the fully qualified class name to the JavaScript interface
-# class:
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
-# public *;
-#}
-
-# Uncomment this to preserve the line number information for
-# debugging stack traces.
-#-keepattributes SourceFile,LineNumberTable
-
-# If you keep the line number information, uncomment this to
-# hide the original source file name.
-#-renamesourcefileattribute SourceFile
\ No newline at end of file
diff --git a/recipes/applyFusedLibraryPlugin/androidLib1/src/main/AndroidManifest.xml b/recipes/applyFusedLibraryPlugin/androidLib1/src/main/AndroidManifest.xml
deleted file mode 100644
index c1baa121..00000000
--- a/recipes/applyFusedLibraryPlugin/androidLib1/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/recipes/applyFusedLibraryPlugin/androidLib1/src/main/assets/androidLib1-asset.json b/recipes/applyFusedLibraryPlugin/androidLib1/src/main/assets/androidLib1-asset.json
deleted file mode 100644
index 94694989..00000000
--- a/recipes/applyFusedLibraryPlugin/androidLib1/src/main/assets/androidLib1-asset.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "info" : "This is an asset from androidLib1"
-}
\ No newline at end of file
diff --git a/recipes/applyFusedLibraryPlugin/androidLib1/src/main/java/com/example/androidlib1/ClassFromAndroidLib1.kt b/recipes/applyFusedLibraryPlugin/androidLib1/src/main/java/com/example/androidlib1/ClassFromAndroidLib1.kt
deleted file mode 100644
index 3100dee0..00000000
--- a/recipes/applyFusedLibraryPlugin/androidLib1/src/main/java/com/example/androidlib1/ClassFromAndroidLib1.kt
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Copyright (C) 2024 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.example.androidlib1
-
-
-class ClassFromAndroidLib1 {
-
- fun foo(): String {
- return "foo"
- }
-}
\ No newline at end of file
diff --git a/recipes/applyFusedLibraryPlugin/androidLib1/src/main/res/values/strings.xml b/recipes/applyFusedLibraryPlugin/androidLib1/src/main/res/values/strings.xml
deleted file mode 100644
index f28b8ef3..00000000
--- a/recipes/applyFusedLibraryPlugin/androidLib1/src/main/res/values/strings.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
- androidLib1
-
\ No newline at end of file
diff --git a/recipes/applyFusedLibraryPlugin/androidLib2/.gitignore b/recipes/applyFusedLibraryPlugin/androidLib2/.gitignore
deleted file mode 100644
index 42afabfd..00000000
--- a/recipes/applyFusedLibraryPlugin/androidLib2/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/build
\ No newline at end of file
diff --git a/recipes/applyFusedLibraryPlugin/androidLib2/build.gradle.kts b/recipes/applyFusedLibraryPlugin/androidLib2/build.gradle.kts
deleted file mode 100644
index ab770dfb..00000000
--- a/recipes/applyFusedLibraryPlugin/androidLib2/build.gradle.kts
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright (C) 2024 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-plugins {
- alias(libs.plugins.android.library)
- alias(libs.plugins.jetbrains.kotlin.android)
- `maven-publish`
-}
-
-android {
- namespace = "com.example.androidlib2"
- compileSdk = $COMPILE_SDK
-
- defaultConfig {
- minSdk = $MINIMUM_SDK
-
- testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
- }
-
- compileOptions {
- sourceCompatibility = JavaVersion.VERSION_1_8
- targetCompatibility = JavaVersion.VERSION_1_8
- }
- kotlinOptions {
- jvmTarget = "1.8"
- }
-}
-
-dependencies {
- implementation(project(":androidLib3"))
-}
diff --git a/recipes/applyFusedLibraryPlugin/androidLib2/proguard-rules.pro b/recipes/applyFusedLibraryPlugin/androidLib2/proguard-rules.pro
deleted file mode 100644
index 481bb434..00000000
--- a/recipes/applyFusedLibraryPlugin/androidLib2/proguard-rules.pro
+++ /dev/null
@@ -1,21 +0,0 @@
-# Add project specific ProGuard rules here.
-# You can control the set of applied configuration files using the
-# proguardFiles setting in build.gradle.
-#
-# For more details, see
-# http://developer.android.com/guide/developing/tools/proguard.html
-
-# If your project uses WebView with JS, uncomment the following
-# and specify the fully qualified class name to the JavaScript interface
-# class:
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
-# public *;
-#}
-
-# Uncomment this to preserve the line number information for
-# debugging stack traces.
-#-keepattributes SourceFile,LineNumberTable
-
-# If you keep the line number information, uncomment this to
-# hide the original source file name.
-#-renamesourcefileattribute SourceFile
\ No newline at end of file
diff --git a/recipes/applyFusedLibraryPlugin/androidLib2/src/main/AndroidManifest.xml b/recipes/applyFusedLibraryPlugin/androidLib2/src/main/AndroidManifest.xml
deleted file mode 100644
index c1baa121..00000000
--- a/recipes/applyFusedLibraryPlugin/androidLib2/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/recipes/applyFusedLibraryPlugin/androidLib2/src/main/java/com/example/androidlib2/ClassFromAndroidLib2.kt b/recipes/applyFusedLibraryPlugin/androidLib2/src/main/java/com/example/androidlib2/ClassFromAndroidLib2.kt
deleted file mode 100644
index a3b3fbf3..00000000
--- a/recipes/applyFusedLibraryPlugin/androidLib2/src/main/java/com/example/androidlib2/ClassFromAndroidLib2.kt
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Copyright (C) 2024 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.example.androidlib2
-
-class ClassFromAndroidLib2 {
-
- fun foo(): String {
- return "bar"
- }
-}
\ No newline at end of file
diff --git a/recipes/applyFusedLibraryPlugin/androidLib2/src/main/res/values/colors.xml b/recipes/applyFusedLibraryPlugin/androidLib2/src/main/res/values/colors.xml
deleted file mode 100644
index 11cb8ab7..00000000
--- a/recipes/applyFusedLibraryPlugin/androidLib2/src/main/res/values/colors.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
- #FFBB86FC
- #FF6200EE
- #FF3700B3
- #FF03DAC5
- #FF018786
- #FF000000
- #FFFFFFFF
-
\ No newline at end of file
diff --git a/recipes/applyFusedLibraryPlugin/androidLib2/src/main/res/values/strings.xml b/recipes/applyFusedLibraryPlugin/androidLib2/src/main/res/values/strings.xml
deleted file mode 100644
index 8c84c78a..00000000
--- a/recipes/applyFusedLibraryPlugin/androidLib2/src/main/res/values/strings.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
- androidLib2
- androidLib2
-
\ No newline at end of file
diff --git a/recipes/applyFusedLibraryPlugin/androidLib3/.gitignore b/recipes/applyFusedLibraryPlugin/androidLib3/.gitignore
deleted file mode 100644
index 42afabfd..00000000
--- a/recipes/applyFusedLibraryPlugin/androidLib3/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/build
\ No newline at end of file
diff --git a/recipes/applyFusedLibraryPlugin/androidLib3/build.gradle.kts b/recipes/applyFusedLibraryPlugin/androidLib3/build.gradle.kts
deleted file mode 100644
index 127e21f3..00000000
--- a/recipes/applyFusedLibraryPlugin/androidLib3/build.gradle.kts
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-plugins {
- alias(libs.plugins.android.library)
- alias(libs.plugins.jetbrains.kotlin.android)
- `maven-publish`
-}
-
-android {
- namespace = "com.example.androidlib3"
- compileSdk = $COMPILE_SDK
-
- defaultConfig {
- minSdk = $MINIMUM_SDK
-
- testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
- consumerProguardFiles("consumer-rules.pro")
- }
-
- buildTypes {
- release {
- isMinifyEnabled = false
- proguardFiles(
- getDefaultProguardFile("proguard-android-optimize.txt"),
- "proguard-rules.pro"
- )
- }
- }
- compileOptions {
- sourceCompatibility = JavaVersion.VERSION_1_8
- targetCompatibility = JavaVersion.VERSION_1_8
- }
- kotlinOptions {
- jvmTarget = "1.8"
- }
-}
-
-publishing {
- publications {
- register("maven") {
- afterEvaluate {
- from(components["release"])
- }
- }
- }
- repositories {
- maven {
- name = "myrepo"
- url = uri(project(":fusedLibrary").layout.buildDirectory.dir("repo"))
- }
- }
-}
-
-dependencies {
-}
diff --git a/recipes/applyFusedLibraryPlugin/androidLib3/consumer-rules.pro b/recipes/applyFusedLibraryPlugin/androidLib3/consumer-rules.pro
deleted file mode 100644
index e69de29b..00000000
diff --git a/recipes/applyFusedLibraryPlugin/androidLib3/proguard-rules.pro b/recipes/applyFusedLibraryPlugin/androidLib3/proguard-rules.pro
deleted file mode 100644
index 481bb434..00000000
--- a/recipes/applyFusedLibraryPlugin/androidLib3/proguard-rules.pro
+++ /dev/null
@@ -1,21 +0,0 @@
-# Add project specific ProGuard rules here.
-# You can control the set of applied configuration files using the
-# proguardFiles setting in build.gradle.
-#
-# For more details, see
-# http://developer.android.com/guide/developing/tools/proguard.html
-
-# If your project uses WebView with JS, uncomment the following
-# and specify the fully qualified class name to the JavaScript interface
-# class:
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
-# public *;
-#}
-
-# Uncomment this to preserve the line number information for
-# debugging stack traces.
-#-keepattributes SourceFile,LineNumberTable
-
-# If you keep the line number information, uncomment this to
-# hide the original source file name.
-#-renamesourcefileattribute SourceFile
\ No newline at end of file
diff --git a/recipes/applyFusedLibraryPlugin/androidLib3/src/main/AndroidManifest.xml b/recipes/applyFusedLibraryPlugin/androidLib3/src/main/AndroidManifest.xml
deleted file mode 100644
index afe630bd..00000000
--- a/recipes/applyFusedLibraryPlugin/androidLib3/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/recipes/applyFusedLibraryPlugin/androidLib3/src/main/java/com/example/androidlib3/AndroidLib3Class.kt b/recipes/applyFusedLibraryPlugin/androidLib3/src/main/java/com/example/androidlib3/AndroidLib3Class.kt
deleted file mode 100644
index 61975fd7..00000000
--- a/recipes/applyFusedLibraryPlugin/androidLib3/src/main/java/com/example/androidlib3/AndroidLib3Class.kt
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * Copyright (C) 2024 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.example.androidlib3
-
-class AndroidLib3Class {
-
- fun bar(): String {
- return "foo"
- }
-}
\ No newline at end of file
diff --git a/recipes/applyFusedLibraryPlugin/androidLib3/src/main/res/values/strings.xml b/recipes/applyFusedLibraryPlugin/androidLib3/src/main/res/values/strings.xml
deleted file mode 100644
index 07129f89..00000000
--- a/recipes/applyFusedLibraryPlugin/androidLib3/src/main/res/values/strings.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
- androidLib3
- androidLib3
-
diff --git a/recipes/applyFusedLibraryPlugin/app/.gitignore b/recipes/applyFusedLibraryPlugin/app/.gitignore
deleted file mode 100644
index 42afabfd..00000000
--- a/recipes/applyFusedLibraryPlugin/app/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/build
\ No newline at end of file
diff --git a/recipes/applyFusedLibraryPlugin/app/build.gradle.kts b/recipes/applyFusedLibraryPlugin/app/build.gradle.kts
deleted file mode 100644
index d272d18e..00000000
--- a/recipes/applyFusedLibraryPlugin/app/build.gradle.kts
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * Copyright (C) 2024 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-plugins {
- alias(libs.plugins.android.application)
- alias(libs.plugins.jetbrains.kotlin.android)
-}
-
-android {
- namespace = "com.example.fusedlibrarysample"
- compileSdk = $COMPILE_SDK
-
- defaultConfig {
- applicationId = "com.example.fusedlibrarysample"
- minSdk = $MINIMUM_SDK
- targetSdk = $COMPILE_SDK
- versionCode = 1
- versionName = "1.0"
-
- testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
- }
-
- buildTypes {
- release {
- isMinifyEnabled = false
- proguardFiles(
- getDefaultProguardFile("proguard-android-optimize.txt"),
- "proguard-rules.pro"
- )
- }
- }
- compileOptions {
- sourceCompatibility = JavaVersion.VERSION_17
- targetCompatibility = JavaVersion.VERSION_17
- }
- kotlinOptions {
- jvmTarget = "17"
- }
-}
-
-dependencies {
- implementation(project(":fusedLibrary"))
- testImplementation(libs.junit)
- androidTestImplementation(libs.androidx.junit)
- androidTestImplementation(libs.androidx.espresso.core)
-}
-
-configurations.all {
- resolutionStrategy.dependencySubstitution {
- if (file("${rootProject.projectDir}/fusedLibrary/build/repo").exists()) {
- substitute(project(":fusedLibrary"))
- .using(module("my-company:my-fused-library:1.0"))
- }
- }
-}
diff --git a/recipes/applyFusedLibraryPlugin/app/proguard-rules.pro b/recipes/applyFusedLibraryPlugin/app/proguard-rules.pro
deleted file mode 100644
index 481bb434..00000000
--- a/recipes/applyFusedLibraryPlugin/app/proguard-rules.pro
+++ /dev/null
@@ -1,21 +0,0 @@
-# Add project specific ProGuard rules here.
-# You can control the set of applied configuration files using the
-# proguardFiles setting in build.gradle.
-#
-# For more details, see
-# http://developer.android.com/guide/developing/tools/proguard.html
-
-# If your project uses WebView with JS, uncomment the following
-# and specify the fully qualified class name to the JavaScript interface
-# class:
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
-# public *;
-#}
-
-# Uncomment this to preserve the line number information for
-# debugging stack traces.
-#-keepattributes SourceFile,LineNumberTable
-
-# If you keep the line number information, uncomment this to
-# hide the original source file name.
-#-renamesourcefileattribute SourceFile
\ No newline at end of file
diff --git a/recipes/applyFusedLibraryPlugin/app/src/androidTest/java/com/example/fusedlibrarysample/FusedLibraryInstrumentationTest.kt b/recipes/applyFusedLibraryPlugin/app/src/androidTest/java/com/example/fusedlibrarysample/FusedLibraryInstrumentationTest.kt
deleted file mode 100644
index 26adb917..00000000
--- a/recipes/applyFusedLibraryPlugin/app/src/androidTest/java/com/example/fusedlibrarysample/FusedLibraryInstrumentationTest.kt
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Copyright (C) 2024 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.example.fusedlibrarysample
-
-import androidx.test.platform.app.InstrumentationRegistry
-import androidx.test.ext.junit.runners.AndroidJUnit4
-import com.google.gson.Gson // from :fusedLibrary
-
-import org.junit.Test
-import org.junit.runner.RunWith
-
-import org.junit.Assert.*
-
-/**
- * Instrumentation tests demonstrating example use cases of the fused library plugin.
- */
-@RunWith(AndroidJUnit4::class)
-class FusedLibraryInstrumentationTest {
-
- @Test
- fun accessResourcesFromFusedLibrary() {
- val appContext = InstrumentationRegistry.getInstrumentation().targetContext
- val stringOverridden =
- appContext.getString(com.example.fusedlibrary.R.string.string_overridden)
- val appStringReferencingFusedLibraryString =
- appContext.getString(R.string.fused_lib_reference)
- assertEquals(stringOverridden, "androidLib2")
- assertEquals(appStringReferencingFusedLibraryString, "androidLib1")
- }
-
- @Test
- fun accessExternalLibrariesFromIncludeDependencies() {
- val appContext = InstrumentationRegistry.getInstrumentation().targetContext
- val androidLib1AssetInputStream = appContext.assets.open("androidLib1-asset.json")
- val jsonString = androidLib1AssetInputStream.bufferedReader().use {it.readText() }
- val json = Gson().fromJson(jsonString, JsonAsset::class.java)
- assertEquals(json.info, "This is an asset from androidLib1")
- }
-
- private class JsonAsset(val info: String)
-}
\ No newline at end of file
diff --git a/recipes/applyFusedLibraryPlugin/app/src/main/AndroidManifest.xml b/recipes/applyFusedLibraryPlugin/app/src/main/AndroidManifest.xml
deleted file mode 100644
index 4976b9a9..00000000
--- a/recipes/applyFusedLibraryPlugin/app/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/recipes/applyFusedLibraryPlugin/app/src/main/res/values/strings.xml b/recipes/applyFusedLibraryPlugin/app/src/main/res/values/strings.xml
deleted file mode 100644
index 80a9daf3..00000000
--- a/recipes/applyFusedLibraryPlugin/app/src/main/res/values/strings.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
- Fused Library Sample
- @string/string_from_androidLib_1
-
\ No newline at end of file
diff --git a/recipes/applyFusedLibraryPlugin/app/src/test/java/com/example/fusedlibrarysample/FusedLibraryConsumptionUnitTest.kt b/recipes/applyFusedLibraryPlugin/app/src/test/java/com/example/fusedlibrarysample/FusedLibraryConsumptionUnitTest.kt
deleted file mode 100644
index 4d1f7de9..00000000
--- a/recipes/applyFusedLibraryPlugin/app/src/test/java/com/example/fusedlibrarysample/FusedLibraryConsumptionUnitTest.kt
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Copyright (C) 2024 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.example.fusedlibrarysample
-
-import A_DoIExist
-import com.example.androidlib1.ClassFromAndroidLib1 // From :fusedLibrary
-import com.example.androidlib2.ClassFromAndroidLib2 // From :fusedLibrary
-import org.junit.Test
-
-import org.junit.Assert.*
-
-/**
- * Demonstrates usage of classes that can be accessed from the fused library.
- */
-class FusedLibraryConsumptionUnitTest {
-
- @Test
- fun testClassesFromIncludedDependencies() {
- // Access symbols from local library dependencies
- val androidLib1Class = ClassFromAndroidLib1()
- val androidLib2Class = ClassFromAndroidLib2()
-
- assertEquals(androidLib1Class.foo(), "foo")
- assertEquals(androidLib2Class.foo(), "bar")
-
- // Do not uncomment.
- // Classes from androidLib3 are not accessible as it has not been explicitly included in
- // :fusedLibrary. To access classes, add include(project(":androidLib3") to fusedLibrary
- // dependencies
- // val androidLib3Class = ClassFromAndroidLIb3
- }
-
- @Test
- fun testLocalLibJarDependenciesAreAccessible() {
- // Access class in local jar from fused library file dependencies
- // A_DoIExist is class from a libs jar file dependency
- // (fusedLibrary/libs/simple-jar-with-A_DoIExist-class.jar)
- A_DoIExist()
- }
-
-}
\ No newline at end of file
diff --git a/recipes/applyFusedLibraryPlugin/build.gradle.kts b/recipes/applyFusedLibraryPlugin/build.gradle.kts
deleted file mode 100644
index 965844cc..00000000
--- a/recipes/applyFusedLibraryPlugin/build.gradle.kts
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * Copyright (C) 2024 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-// Top-level build file where you can add configuration options common to all sub-projects/modules.
-plugins {
- alias(libs.plugins.android.application) apply false
- alias(libs.plugins.jetbrains.kotlin.android) apply false
- alias(libs.plugins.android.library) apply false
- alias(libs.plugins.android.fusedlibrary) apply false
-}
diff --git a/recipes/applyFusedLibraryPlugin/docs/CONTRIBUTING.md b/recipes/applyFusedLibraryPlugin/docs/CONTRIBUTING.md
deleted file mode 100644
index bc23aaed..00000000
--- a/recipes/applyFusedLibraryPlugin/docs/CONTRIBUTING.md
+++ /dev/null
@@ -1,33 +0,0 @@
-# How to contribute
-
-We'd love to accept your patches and contributions to this project.
-
-## Before you begin
-
-### Sign our Contributor License Agreement
-
-Contributions to this project must be accompanied by a
-[Contributor License Agreement](https://cla.developers.google.com/about) (CLA).
-You (or your employer) retain the copyright to your contribution; this simply
-gives us permission to use and redistribute your contributions as part of the
-project.
-
-If you or your current employer have already signed the Google CLA (even if it
-was for a different project), you probably don't need to do it again.
-
-Visit to see your current agreements or to
-sign a new one.
-
-### Review our community guidelines
-
-This project follows
-[Google's Open Source Community Guidelines](https://opensource.google/conduct/).
-
-## Contribution process
-
-### Code reviews
-
-All submissions, including submissions by project members, require review. We
-use GitHub pull requests for this purpose. Consult
-[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
-information on using pull requests.
\ No newline at end of file
diff --git a/recipes/applyFusedLibraryPlugin/fusedLibrary/.gitignore b/recipes/applyFusedLibraryPlugin/fusedLibrary/.gitignore
deleted file mode 100644
index 42afabfd..00000000
--- a/recipes/applyFusedLibraryPlugin/fusedLibrary/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/build
\ No newline at end of file
diff --git a/recipes/applyFusedLibraryPlugin/fusedLibrary/build.gradle.kts b/recipes/applyFusedLibraryPlugin/fusedLibrary/build.gradle.kts
deleted file mode 100644
index 9947d07a..00000000
--- a/recipes/applyFusedLibraryPlugin/fusedLibrary/build.gradle.kts
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Copyright (C) 2024 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-plugins {
- alias(libs.plugins.android.fusedlibrary)
- `maven-publish`
-}
-
-androidFusedLibrary {
- namespace = "com.example.fusedlibrary"
- minSdk = $MINIMUM_SDK
-
- // If aarMetadata is not explicitly specified,
- // aar metadata will be generated based on dependencies.
- aarMetadata {
- minCompileSdk = $MINIMUM_SDK
- minCompileSdkExtension = 1
- }
-}
-
-publishing {
- publications {
- register("release") {
- groupId = "my-company"
- artifactId = "my-fused-library"
- version = "1.0"
- from(components["fusedLibraryComponent"])
- }
- }
- repositories {
- maven {
- name = "myrepo"
- url = uri(layout.buildDirectory.dir("repo"))
- }
- }
-}
-
-dependencies {
- include(project(":androidLib1"))
- include(project(":androidLib2"))
- include("com.google.code.gson:gson:2.10.1")
- include(files("libs/simple-jar-with-A_DoIExist-class.jar"))
-}
diff --git a/recipes/applyFusedLibraryPlugin/fusedLibrary/consumer-rules.pro b/recipes/applyFusedLibraryPlugin/fusedLibrary/consumer-rules.pro
deleted file mode 100644
index e69de29b..00000000
diff --git a/recipes/applyFusedLibraryPlugin/fusedLibrary/libs/simple-jar-with-A_DoIExist-class.jar b/recipes/applyFusedLibraryPlugin/fusedLibrary/libs/simple-jar-with-A_DoIExist-class.jar
deleted file mode 100644
index 59dc60e5..00000000
Binary files a/recipes/applyFusedLibraryPlugin/fusedLibrary/libs/simple-jar-with-A_DoIExist-class.jar and /dev/null differ
diff --git a/recipes/applyFusedLibraryPlugin/fusedLibrary/proguard-rules.pro b/recipes/applyFusedLibraryPlugin/fusedLibrary/proguard-rules.pro
deleted file mode 100644
index 481bb434..00000000
--- a/recipes/applyFusedLibraryPlugin/fusedLibrary/proguard-rules.pro
+++ /dev/null
@@ -1,21 +0,0 @@
-# Add project specific ProGuard rules here.
-# You can control the set of applied configuration files using the
-# proguardFiles setting in build.gradle.
-#
-# For more details, see
-# http://developer.android.com/guide/developing/tools/proguard.html
-
-# If your project uses WebView with JS, uncomment the following
-# and specify the fully qualified class name to the JavaScript interface
-# class:
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
-# public *;
-#}
-
-# Uncomment this to preserve the line number information for
-# debugging stack traces.
-#-keepattributes SourceFile,LineNumberTable
-
-# If you keep the line number information, uncomment this to
-# hide the original source file name.
-#-renamesourcefileattribute SourceFile
\ No newline at end of file
diff --git a/recipes/applyFusedLibraryPlugin/gradle.properties b/recipes/applyFusedLibraryPlugin/gradle.properties
deleted file mode 100644
index 66462255..00000000
--- a/recipes/applyFusedLibraryPlugin/gradle.properties
+++ /dev/null
@@ -1,27 +0,0 @@
-# Project-wide Gradle settings.
-# IDE (e.g. Android Studio) users:
-# Gradle settings configured through the IDE *will override*
-# any settings specified in this file.
-# For more details on how to configure your build environment visit
-# http://www.gradle.org/docs/current/userguide/build_environment.html
-# 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. For more details, visit
-# https://developer.android.com/r/tools/gradle-multi-project-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
-
-# Required for builds with at least one module applying
-# the experimental "com.android.fused-library" plugin.
-android.experimental.fusedLibrarySupport=true
\ No newline at end of file
diff --git a/recipes/applyFusedLibraryPlugin/gradle/libs.versions.toml b/recipes/applyFusedLibraryPlugin/gradle/libs.versions.toml
deleted file mode 100644
index d26c3da4..00000000
--- a/recipes/applyFusedLibraryPlugin/gradle/libs.versions.toml
+++ /dev/null
@@ -1,30 +0,0 @@
-[versions]
-agp = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-coreKtx = "1.15.0"
-junit = "4.13.2"
-junitVersion = "1.1.5"
-espressoCore = "3.5.1"
-appcompat = "1.7.0"
-material = "1.12.0"
-activity = "1.8.0"
-constraintlayout = "2.1.4"
-mycompany = "1.0"
-
-[libraries]
-androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
-junit = { group = "junit", name = "junit", version.ref = "junit" }
-androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" }
-androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" }
-androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
-material = { group = "com.google.android.material", name = "material", version.ref = "material" }
-androidx-activity = { group = "androidx.activity", name = "activity", version.ref = "activity" }
-androidx-constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraintlayout" }
-mycompany-fusedlibrary = { group = "my-company", name = "my-fused-library", version.ref = "mycompany" }
-
-[plugins]
-android-application = { id = "com.android.application", version.ref = "agp" }
-jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
-android-library = { id = "com.android.library", version.ref = "agp" }
-android-fusedlibrary = { id = "com.android.fused-library", version.ref = "agp" }
-
diff --git a/recipes/applyFusedLibraryPlugin/recipe_metadata.toml b/recipes/applyFusedLibraryPlugin/recipe_metadata.toml
deleted file mode 100644
index d31e385f..00000000
--- a/recipes/applyFusedLibraryPlugin/recipe_metadata.toml
+++ /dev/null
@@ -1,29 +0,0 @@
-# optional (if present and non-blank) name to use in the index
-indexName = ""
-# optional (if present and non-blank) folder name to use when converting recipe in RELEASE mode
-destinationFolder = ""
-
-description ="""
- Recipe to demonstrate FusedLibraryPlugin usage.
- """
-
-[agpVersion]
-min = "8.9.0-alpha08"
-
-# Relevant Gradle tasks to run per recipe
-[gradleTasks]
-tasks = [
- ":fusedLibrary:assemble",
- ":fusedLibrary:report",
- ":fusedLibrary:generatePomFileForMavenPublication",
- ":fusedLibrary:publishReleasePublicationToMyrepoRepository",
- ":fusedLibrary:publishReleasePublicationToMyrepoRepository",
- ":app:testDebugUnitTest",
-]
-
-# All the relevant metadata fields to create an index based on language/API/etc'
-[indexMetadata]
-index = [
- "Plugin Features/Fused Library Plugin"
-]
-
diff --git a/recipes/applyFusedLibraryPlugin/settings.gradle.kts b/recipes/applyFusedLibraryPlugin/settings.gradle.kts
deleted file mode 100644
index aafedea2..00000000
--- a/recipes/applyFusedLibraryPlugin/settings.gradle.kts
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright (C) 2024 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-rootProject.name = "fused-library-samples"
-
-pluginManagement {
- repositories {
- $AGP_REPOSITORY
- $PLUGIN_REPOSITORIES
- maven(url = uri("${rootProject.projectDir}/fusedLibrary/build/repo"))
- }
-}
-
-dependencyResolutionManagement {
- repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
- repositories {
- $AGP_REPOSITORY
- $DEPENDENCY_REPOSITORIES
- maven(url = uri("${rootProject.projectDir}/fusedLibrary/build/repo"))
- }
-}
-
-include(":app")
-include(":fusedLibrary")
-include(":androidLib1")
-include(":androidLib2")
-include(":androidLib3")
diff --git a/recipes/asmTransformClasses/build-logic/gradle/libs.versions.toml b/recipes/asmTransformClasses/build-logic/gradle/libs.versions.toml
deleted file mode 100644
index d009d769..00000000
--- a/recipes/asmTransformClasses/build-logic/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[libraries]
-android-gradlePlugin-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
-
-[plugins]
-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
\ No newline at end of file
diff --git a/recipes/asmTransformClasses/recipe_metadata.toml b/recipes/asmTransformClasses/recipe_metadata.toml
deleted file mode 100644
index 6d83f8ab..00000000
--- a/recipes/asmTransformClasses/recipe_metadata.toml
+++ /dev/null
@@ -1,32 +0,0 @@
-# optional (if present and non-blank) name to use in the index
-indexName = ""
-# optional (if present and non-blank) folder name to use when converting recipe in RELEASE mode
-destinationFolder = ""
-
-description ="""
- This sample shows how to use the Instrumentation.transformClassesWith() API on a project
- """
-
-[agpVersion]
-min = "8.1.0"
-
-# Relevant Gradle tasks to run per recipe
-[gradleTasks]
-tasks = [
- ":app:checkDebugAsmTransformation"
-]
-
-# All the relevant metadata fields to create an index based on language/API/etc
-[indexMetadata]
-index = [
- "Call chains/variant.artifacts.get()",
- "Call chains/androidComponents.onVariants {}",
- "Call chains/variant.instrumentation.transformClassesWith()",
- "APIs/Instrumentation.transformClassesWith()",
- "APIs/AndroidComponentsExtension.onVariants()",
- "APIs/ScopedArtifact.CLASSES",
- "APIs/ScopedArtifacts.Scope.PROJECT",
- "APIs/ScopedArtifacts.use()",
- "APIs/ScopedArtifactsOperation.toGet()",
- "Call chains/variant.artifacts.forScope().use().toGet()"
-]
diff --git a/recipes/createSingleArtifact/build-logic/gradle/libs.versions.toml b/recipes/createSingleArtifact/build-logic/gradle/libs.versions.toml
deleted file mode 100644
index d362ae08..00000000
--- a/recipes/createSingleArtifact/build-logic/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[libraries]
-android-gradlePlugin-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
-
-[plugins]
-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
diff --git a/recipes/createSingleArtifact/build-logic/settings.gradle.kts b/recipes/createSingleArtifact/build-logic/settings.gradle.kts
deleted file mode 100644
index f6aafa37..00000000
--- a/recipes/createSingleArtifact/build-logic/settings.gradle.kts
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright 2022 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-rootProject.name = "build-logic"
-
-pluginManagement {
- repositories {
- $AGP_REPOSITORY
- $PLUGIN_REPOSITORIES
- }
-}
-
-dependencyResolutionManagement {
- repositories {
-$AGP_REPOSITORY
-$DEPENDENCY_REPOSITORIES
- }
-}
-
-include(":plugins")
diff --git a/recipes/createSingleArtifact/gradle/libs.versions.toml b/recipes/createSingleArtifact/gradle/libs.versions.toml
deleted file mode 100644
index 8c672bba..00000000
--- a/recipes/createSingleArtifact/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[plugins]
-android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
-
-
diff --git a/recipes/createSingleArtifact/recipe_metadata.toml b/recipes/createSingleArtifact/recipe_metadata.toml
deleted file mode 100644
index 8163b700..00000000
--- a/recipes/createSingleArtifact/recipe_metadata.toml
+++ /dev/null
@@ -1,33 +0,0 @@
-# optional (if present and non-blank) name to use in the index
-indexName = ""
-# optional (if present and non-blank) folder name to use when converting recipe in RELEASE mode
-destinationFolder = ""
-
-description ="""
- Recipe that creates a single artifact (android manifest file).
- """
-
-[agpVersion]
-min = "8.1.0"
-
-# Relevant Gradle tasks to run per recipe
-[gradleTasks]
-tasks = [
- ":app:verifyDebugManifest",
-]
-
-# All the relevant metadata fields to create an index based on language/API/etc'
-[indexMetadata]
-index = [
- "Themes/Artifact API",
- "Themes/Android Manifest",
- "Call chains/androidComponents.onVariants {}",
- "APIs/AndroidComponentsExtension.onVariants()",
- "APIs/SingleArtifact.MERGED_MANIFEST",
- "APIs/Artifacts.use()",
- "APIs/OutOperationRequest.toCreate()",
- "APIs/TaskBasedOperation.wiredWith()",
- "Call chains/variant.artifacts.use().wiredWith().toCreate()",
- "APIs/Component.artifacts",
- "APIs/TaskProvider.flatMap()"
-]
diff --git a/recipes/disableTests/build-logic/gradle/libs.versions.toml b/recipes/disableTests/build-logic/gradle/libs.versions.toml
deleted file mode 100644
index d009d769..00000000
--- a/recipes/disableTests/build-logic/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[libraries]
-android-gradlePlugin-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
-
-[plugins]
-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
\ No newline at end of file
diff --git a/recipes/disableTests/recipe_metadata.toml b/recipes/disableTests/recipe_metadata.toml
deleted file mode 100644
index 3849ef4e..00000000
--- a/recipes/disableTests/recipe_metadata.toml
+++ /dev/null
@@ -1,37 +0,0 @@
-# optional (if present and non-blank) name to use in the index
-indexName = ""
-# optional (if present and non-blank) folder name to use when converting recipe in RELEASE mode
-destinationFolder = ""
-
-description ="""
- This sample shows how to use VariantBuilder properties to disable tests in a project
- """
-
-[agpVersion]
-min = "8.7.0-alpha08"
-
-# Relevant Gradle tasks to run per recipe
-[gradleTasks]
-tasks = [
- ":app:checkDebugTestStatus",
- ":app:checkReleaseTestStatus"
-]
-
-# All the relevant metadata fields to create an index based on language/API/etc
-[indexMetadata]
-index = [
- "Call chains/androidComponents.beforeVariants {}",
- "Call chains/androidComponents.onVariants {}",
- "APIs/AndroidComponentsExtension.beforeVariants()",
- "APIs/AndroidComponentsExtension.onVariants()",
- "Call chains/HasHostTestsBuilder.hostTests.get().enable",
- "Call chains/HasDeviceTestsBuilder.deviceTests.get().enable",
- "Call chains/HasHostTests.hostTests.get()",
- "Call chains/HasDeviceTests.deviceTests.get()",
- "APIs/HasDeviceTestsBuilder.deviceTests",
- "APIs/HasDeviceTests.deviceTests",
- "APIs/HasHostTestsBuilder.hostTests",
- "APIs/HasHostTests.hostTests",
- "HostTestBuilder.UNIT_TEST_TYPE",
- "DeviceTestBuilder.ANDROID_TEST_TYPE"
-]
diff --git a/recipes/extendingAgp/build-logic/gradle/libs.versions.toml b/recipes/extendingAgp/build-logic/gradle/libs.versions.toml
deleted file mode 100644
index d009d769..00000000
--- a/recipes/extendingAgp/build-logic/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[libraries]
-android-gradlePlugin-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
-
-[plugins]
-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
\ No newline at end of file
diff --git a/recipes/extendingAgp/build-logic/settings.gradle.kts b/recipes/extendingAgp/build-logic/settings.gradle.kts
deleted file mode 100644
index 73d2626f..00000000
--- a/recipes/extendingAgp/build-logic/settings.gradle.kts
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright 2022 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-rootProject.name = "build-logic"
-
-pluginManagement {
- repositories {
- $AGP_REPOSITORY
- $PLUGIN_REPOSITORIES
- }
-}
-
-dependencyResolutionManagement {
- repositories {
- $AGP_REPOSITORY
- $DEPENDENCY_REPOSITORIES
- }
-}
-
-include(":plugins")
diff --git a/recipes/extendingAgp/gradle/libs.versions.toml b/recipes/extendingAgp/gradle/libs.versions.toml
deleted file mode 100644
index 28fab8d3..00000000
--- a/recipes/extendingAgp/gradle/libs.versions.toml
+++ /dev/null
@@ -1,7 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[plugins]
-android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
\ No newline at end of file
diff --git a/recipes/extendingAgp/recipe_metadata.toml b/recipes/extendingAgp/recipe_metadata.toml
deleted file mode 100644
index 9400a2b5..00000000
--- a/recipes/extendingAgp/recipe_metadata.toml
+++ /dev/null
@@ -1,35 +0,0 @@
-# optional (if present and non-blank) name to use in the index
-indexName = ""
-# optional (if present and non-blank) folder name to use when converting recipe in RELEASE mode
-destinationFolder = ""
-
-description ="""
- Demonstrates how to extend and use third party DSL extensions to the android block.
- """
-
-[agpVersion]
-min = "8.1.0"
-
-# Relevant Gradle tasks to run per recipe
-[gradleTasks]
-tasks = [
- ":app_groovy:demoDebugDumpAllExtensions",
- ":app_kts:demoDebugDumpAllExtensions",
-]
-
-# All the relevant metadata fields to create an index based on language/API/etc'
-[indexMetadata]
-index = [
- "Themes/DSL",
- "Call chains/androidComponents.onVariants {}",
- "APIs/AndroidComponentsExtension.onVariants()",
- "Call chains/androidComponents.registerExtension()",
- "APIs/AndroidComponentsExtension.registerExtension()",
- "Call chains/DslExtension.Builder().extendProjectWith().extendBuildTypeWith().extendProductFlavorWith().build()",
- "APIs/DslExtension.Builder.extendProjectWith()",
- "APIs/DslExtension.Builder.extendBuildTypeWith()",
- "APIs/DslExtension.Builder.extendProductFlavorWith()",
- "APIs/DslExtension.Builder.build()",
- "APIs/VariantExtensionConfig",
- "Extending AGP DSL",
-]
diff --git a/recipes/getMultipleArtifact/build-logic/gradle/libs.versions.toml b/recipes/getMultipleArtifact/build-logic/gradle/libs.versions.toml
deleted file mode 100644
index d362ae08..00000000
--- a/recipes/getMultipleArtifact/build-logic/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[libraries]
-android-gradlePlugin-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
-
-[plugins]
-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
diff --git a/recipes/getMultipleArtifact/gradle/libs.versions.toml b/recipes/getMultipleArtifact/gradle/libs.versions.toml
deleted file mode 100644
index 8c672bba..00000000
--- a/recipes/getMultipleArtifact/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[plugins]
-android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
-
-
diff --git a/recipes/getMultipleArtifact/recipe_metadata.toml b/recipes/getMultipleArtifact/recipe_metadata.toml
deleted file mode 100644
index 174b98ca..00000000
--- a/recipes/getMultipleArtifact/recipe_metadata.toml
+++ /dev/null
@@ -1,29 +0,0 @@
-# optional (if present and non-blank) name to use in the index
-indexName = ""
-# optional (if present and non-blank) folder name to use when converting recipe in RELEASE mode
-destinationFolder = ""
-
-description ="""
- Recipe that adds a task per variant to consume an instance of MultipleArtifact.
- """
-
-[agpVersion]
-min = "8.1.0"
-
-# Relevant Gradle tasks to run per recipe
-[gradleTasks]
-tasks = [
- "checkDebugMultiDexKeepProguardFiles"
-]
-
-# All the relevant metadata fields to create an index based on language/API/etc'
-[indexMetadata]
-index = [
- "Themes/Artifact API",
- "Call chains/androidComponents.onVariants {}",
- "APIs/AndroidComponentsExtension.onVariants()",
- "Call chains/variant.artifacts.getAll()",
- "APIs/Component.artifacts",
- "APIs/Artifacts.getAll()",
- "APIs/MultipleArtifact.MULTIDEX_KEEP_PROGUARD",
-]
diff --git a/recipes/getScopedArtifacts/build-logic/gradle/libs.versions.toml b/recipes/getScopedArtifacts/build-logic/gradle/libs.versions.toml
deleted file mode 100644
index d362ae08..00000000
--- a/recipes/getScopedArtifacts/build-logic/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[libraries]
-android-gradlePlugin-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
-
-[plugins]
-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
diff --git a/recipes/getScopedArtifacts/gradle/libs.versions.toml b/recipes/getScopedArtifacts/gradle/libs.versions.toml
deleted file mode 100644
index 8c672bba..00000000
--- a/recipes/getScopedArtifacts/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[plugins]
-android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
-
-
diff --git a/recipes/getScopedArtifacts/recipe_metadata.toml b/recipes/getScopedArtifacts/recipe_metadata.toml
deleted file mode 100644
index 403d2a89..00000000
--- a/recipes/getScopedArtifacts/recipe_metadata.toml
+++ /dev/null
@@ -1,33 +0,0 @@
-# optional (if present and non-blank) name to use in the index
-indexName = ""
-# optional (if present and non-blank) folder name to use when converting recipe in RELEASE mode
-destinationFolder = ""
-
-description ="""
- Recipe that gets scoped artifacts (classes) and verifies them in a task.
- """
-
-[agpVersion]
-min = "8.1.0"
-
-# Relevant Gradle tasks to run per recipe
-[gradleTasks]
-tasks = [
- "checkDebugClasses"
-]
-
-# All the relevant metadata fields to create an index based on language/API/etc'
-[indexMetadata]
-index = [
- "Themes/Artifact API",
- "APIs/AndroidComponentsExtension.onVariants()",
- "Call chains/androidComponents.onVariants {}",
- "Call chains/variant.artifacts.forScope().use().toGet()",
- "APIs/Component.artifacts",
- "APIs/Artifacts.forScope()",
- "APIs/ScopedArtifacts.Scope.ALL",
- "APIs/ScopedArtifacts.Scope.PROJECT",
- "APIs/ScopedArtifacts.use()",
- "APIs/ScopedArtifact.CLASSES",
- "APIs/ScopedArtifactsOperation.toGet()"
-]
diff --git a/recipes/getSingleArtifact/build-logic/gradle/libs.versions.toml b/recipes/getSingleArtifact/build-logic/gradle/libs.versions.toml
deleted file mode 100644
index d362ae08..00000000
--- a/recipes/getSingleArtifact/build-logic/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[libraries]
-android-gradlePlugin-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
-
-[plugins]
-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
diff --git a/recipes/getSingleArtifact/build-logic/settings.gradle.kts b/recipes/getSingleArtifact/build-logic/settings.gradle.kts
deleted file mode 100644
index 5d700b9c..00000000
--- a/recipes/getSingleArtifact/build-logic/settings.gradle.kts
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright 2023 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-rootProject.name = "build-logic"
-
-pluginManagement {
- repositories {
- $AGP_REPOSITORY
- $PLUGIN_REPOSITORIES
- }
-}
-
-dependencyResolutionManagement {
- repositories {
- $AGP_REPOSITORY
- $DEPENDENCY_REPOSITORIES
- }
-}
-
-include(":plugins")
diff --git a/recipes/getSingleArtifact/gradle/libs.versions.toml b/recipes/getSingleArtifact/gradle/libs.versions.toml
deleted file mode 100644
index 8c672bba..00000000
--- a/recipes/getSingleArtifact/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[plugins]
-android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
-
-
diff --git a/recipes/getSingleArtifact/recipe_metadata.toml b/recipes/getSingleArtifact/recipe_metadata.toml
deleted file mode 100644
index 4d8b1c6a..00000000
--- a/recipes/getSingleArtifact/recipe_metadata.toml
+++ /dev/null
@@ -1,28 +0,0 @@
-# optional (if present and non-blank) name to use in the index
-indexName = ""
-# optional (if present and non-blank) folder name to use when converting recipe in RELEASE mode
-destinationFolder = ""
-
-description ="""
- Recipe that gets a single artifact (the app bundle) and verifies it in a task.
- """
-
-[agpVersion]
-min = "8.1.0"
-
-# Relevant Gradle tasks to run per recipe
-[gradleTasks]
-tasks = [
- "checkDebugBundle"
-]
-
-# All the relevant metadata fields to create an index based on language/API/etc'
-[indexMetadata]
-index = [
- "Themes/Artifact API",
- "APIs/AndroidComponentsExtension.onVariants()",
- "Call chains/androidComponents.onVariants {}",
- "APIs/Artifacts.get()",
- "Call chains/variant.artifacts.get()",
- "APIs/SingleArtifact.BUNDLE",
-]
diff --git a/recipes/legacyTaskBridging/build-logic/gradle/libs.versions.toml b/recipes/legacyTaskBridging/build-logic/gradle/libs.versions.toml
deleted file mode 100644
index d362ae08..00000000
--- a/recipes/legacyTaskBridging/build-logic/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[libraries]
-android-gradlePlugin-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
-
-[plugins]
-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
diff --git a/recipes/legacyTaskBridging/build-logic/settings.gradle.kts b/recipes/legacyTaskBridging/build-logic/settings.gradle.kts
deleted file mode 100644
index fb2f5583..00000000
--- a/recipes/legacyTaskBridging/build-logic/settings.gradle.kts
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright 2022 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-rootProject.name = "build-logic"
-
-pluginManagement {
- repositories {
- $AGP_REPOSITORY
- $PLUGIN_REPOSITORIES
- }
-}
-
-dependencyResolutionManagement {
- repositories {
- $AGP_REPOSITORY
- $DEPENDENCY_REPOSITORIES
- }
-}
-
-include(":plugins")
diff --git a/recipes/legacyTaskBridging/gradle/libs.versions.toml b/recipes/legacyTaskBridging/gradle/libs.versions.toml
deleted file mode 100644
index 8c672bba..00000000
--- a/recipes/legacyTaskBridging/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[plugins]
-android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
-
-
diff --git a/recipes/legacyTaskBridging/recipe_metadata.toml b/recipes/legacyTaskBridging/recipe_metadata.toml
deleted file mode 100644
index 0e41b69c..00000000
--- a/recipes/legacyTaskBridging/recipe_metadata.toml
+++ /dev/null
@@ -1,34 +0,0 @@
-# optional (if present and non-blank) name to use in the index
-indexName = ""
-# optional (if present and non-blank) folder name to use when converting recipe in RELEASE mode
-destinationFolder = ""
-
-description ="""
- Recipe to add some custom asset from a legacy Task using File types.
- """
-
-[agpVersion]
-min = "8.1.0"
-
-# Relevant Gradle tasks to run per recipe
-[gradleTasks]
-tasks = [
- "debugVerifyAsset"
-]
-
-# All the relevant metadata fields to create an index based on language/API/etc'
-[indexMetadata]
-index = [
- "Themes/Android Assets",
- "Themes/Sources",
- "APIs/SourceDirectories.addGeneratedSourceDirectory()",
- "APIs/SingleArtifact.ASSETS",
- "APIs/Artifacts.get()",
- "APIs/AndroidComponentsExtension.onVariants()",
- "APIs/Component.artifacts",
- "APIs/Component.sources",
- "Call chains/variant.sources.*.addGeneratedSourceDirectory()",
- "Call chains/variant.artifacts.get()",
- "Call chains/androidComponents.onVariants {}",
- "Legacy API bridging"
-]
diff --git a/recipes/listenToArtifacts/build-logic/gradle/libs.versions.toml b/recipes/listenToArtifacts/build-logic/gradle/libs.versions.toml
deleted file mode 100644
index d362ae08..00000000
--- a/recipes/listenToArtifacts/build-logic/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[libraries]
-android-gradlePlugin-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
-
-[plugins]
-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
diff --git a/recipes/listenToArtifacts/build-logic/settings.gradle.kts b/recipes/listenToArtifacts/build-logic/settings.gradle.kts
deleted file mode 100644
index fb2f5583..00000000
--- a/recipes/listenToArtifacts/build-logic/settings.gradle.kts
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright 2022 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-rootProject.name = "build-logic"
-
-pluginManagement {
- repositories {
- $AGP_REPOSITORY
- $PLUGIN_REPOSITORIES
- }
-}
-
-dependencyResolutionManagement {
- repositories {
- $AGP_REPOSITORY
- $DEPENDENCY_REPOSITORIES
- }
-}
-
-include(":plugins")
diff --git a/recipes/listenToArtifacts/gradle/libs.versions.toml b/recipes/listenToArtifacts/gradle/libs.versions.toml
deleted file mode 100644
index 8c672bba..00000000
--- a/recipes/listenToArtifacts/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[plugins]
-android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
-
-
diff --git a/recipes/listenToArtifacts/recipe_metadata.toml b/recipes/listenToArtifacts/recipe_metadata.toml
deleted file mode 100644
index 2775f06b..00000000
--- a/recipes/listenToArtifacts/recipe_metadata.toml
+++ /dev/null
@@ -1,40 +0,0 @@
-# optional (if present and non-blank) name to use in the index
-indexName = ""
-# optional (if present and non-blank) folder name to use when converting recipe in RELEASE mode
-destinationFolder = ""
-
-description ="""
- Recipe that listens to the creation of the APK to copy it somewhere else
- """
-
-[agpVersion]
-min = "8.3.0-beta01"
-
-# Relevant Gradle tasks to run per recipe
-[gradleTasks]
-tasks = [
- "assembleDebug",
-]
-validationTasks = [
- "validateDebug"
-]
-
-# All the relevant metadata fields to create an index based on language/API/etc'
-[indexMetadata]
-index = [
- "Themes/Artifact API",
- "APIs/AndroidComponentsExtension.onVariants()",
- "Call chains/androidComponents.onVariants {}",
- "Call chains/variant.artifacts.use().wiredWith().toListenTo()",
- "APIs/Artifacts.use()",
- "APIs/TaskBasedOperation.wiredWith()",
- "APIs/OutOperationRequest.toListenTo()",
- "APIs/SingleArtifact.APK",
- "APIs/BuiltArtifact.versionCode",
- "APIs/BuiltArtifact.versionName",
- "APIs/BuiltArtifacts.elements",
- "APIs/BuiltArtifacts.variantName",
- "APIs/BuiltArtifactsLoader.load()",
- "APIs/Artifact.ContainsMany",
- "Renaming APKs"
-]
diff --git a/recipes/listenToMultipleArtifact/build-logic/gradle/libs.versions.toml b/recipes/listenToMultipleArtifact/build-logic/gradle/libs.versions.toml
deleted file mode 100644
index d362ae08..00000000
--- a/recipes/listenToMultipleArtifact/build-logic/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[libraries]
-android-gradlePlugin-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
-
-[plugins]
-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
diff --git a/recipes/listenToMultipleArtifact/gradle/libs.versions.toml b/recipes/listenToMultipleArtifact/gradle/libs.versions.toml
deleted file mode 100644
index 8c672bba..00000000
--- a/recipes/listenToMultipleArtifact/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[plugins]
-android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
-
-
diff --git a/recipes/listenToMultipleArtifact/recipe_metadata.toml b/recipes/listenToMultipleArtifact/recipe_metadata.toml
deleted file mode 100644
index cbbf3a8d..00000000
--- a/recipes/listenToMultipleArtifact/recipe_metadata.toml
+++ /dev/null
@@ -1,33 +0,0 @@
-# optional (if present and non-blank) name to use in the index
-indexName = ""
-# optional (if present and non-blank) folder name to use when converting recipe in RELEASE mode
-destinationFolder = ""
-
-description ="""
- Recipe that listens to the creation of native debug metadata to copy it somewhere else
- """
-
-[agpVersion]
-min = "8.4.0-alpha10"
-
-# Relevant Gradle tasks to run per recipe
-[gradleTasks]
-tasks = [
- "assembleDebug",
-]
-validationTasks = [
- "validateDebug"
-]
-
-# All the relevant metadata fields to create an index based on language/API/etc'
-[indexMetadata]
-index = [
- "Themes/Artifact API",
- "APIs/AndroidComponentsExtension.onVariants()",
- "Call chains/androidComponents.onVariants {}",
- "Call chains/variant.artifacts.use().wiredWith().toListenTo()",
- "APIs/Artifacts.use()",
- "APIs/TaskBasedOperation.wiredWithMultiple()",
- "APIs/MultipleArtifactTypeOutOperationRequest.toListenTo()",
- "APIs/MultipleArtifact.NATIVE_DEBUG_METADATA",
-]
diff --git a/recipes/onVariants/build-logic/gradle/libs.versions.toml b/recipes/onVariants/build-logic/gradle/libs.versions.toml
deleted file mode 100644
index d362ae08..00000000
--- a/recipes/onVariants/build-logic/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[libraries]
-android-gradlePlugin-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
-
-[plugins]
-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
diff --git a/recipes/onVariants/build-logic/settings.gradle.kts b/recipes/onVariants/build-logic/settings.gradle.kts
deleted file mode 100644
index f6aafa37..00000000
--- a/recipes/onVariants/build-logic/settings.gradle.kts
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright 2022 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-rootProject.name = "build-logic"
-
-pluginManagement {
- repositories {
- $AGP_REPOSITORY
- $PLUGIN_REPOSITORIES
- }
-}
-
-dependencyResolutionManagement {
- repositories {
-$AGP_REPOSITORY
-$DEPENDENCY_REPOSITORIES
- }
-}
-
-include(":plugins")
diff --git a/recipes/onVariants/gradle/libs.versions.toml b/recipes/onVariants/gradle/libs.versions.toml
deleted file mode 100644
index 8c672bba..00000000
--- a/recipes/onVariants/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[plugins]
-android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
-
-
diff --git a/recipes/onVariants/recipe_metadata.toml b/recipes/onVariants/recipe_metadata.toml
deleted file mode 100644
index ddedadea..00000000
--- a/recipes/onVariants/recipe_metadata.toml
+++ /dev/null
@@ -1,28 +0,0 @@
-# optional (if present and non-blank) name to use in the index
-indexName = ""
-# optional (if present and non-blank) folder name to use when converting recipe in RELEASE mode
-destinationFolder = ""
-
-description ="""
- This sample shows how to use onVariants in Variant API.
- """
-
-[agpVersion]
-min = "8.1.0"
-
-# Relevant Gradle tasks to run per recipe
-[gradleTasks]
-tasks = [
- ":app:checkDebugApplicationId",
- ":app:checkReleaseApplicationId"
-]
-
-# All the relevant metadata fields to create an index based on language/API/etc'
-[indexMetadata]
-index = [
- "APIs/AndroidComponentsExtension.onVariants()",
- "Call chains/androidComponents.onVariants {}",
- "Call chains/variant.applicationId",
- "APIs/ApplicationVariant.applicationId",
- "APIs/GeneratesApk.applicationId"
-]
diff --git a/recipes/perVariantManifestPlaceholder/build-logic/gradle/libs.versions.toml b/recipes/perVariantManifestPlaceholder/build-logic/gradle/libs.versions.toml
deleted file mode 100644
index d362ae08..00000000
--- a/recipes/perVariantManifestPlaceholder/build-logic/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[libraries]
-android-gradlePlugin-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
-
-[plugins]
-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
diff --git a/recipes/perVariantManifestPlaceholder/build-logic/settings.gradle.kts b/recipes/perVariantManifestPlaceholder/build-logic/settings.gradle.kts
deleted file mode 100644
index fb2f5583..00000000
--- a/recipes/perVariantManifestPlaceholder/build-logic/settings.gradle.kts
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright 2022 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-rootProject.name = "build-logic"
-
-pluginManagement {
- repositories {
- $AGP_REPOSITORY
- $PLUGIN_REPOSITORIES
- }
-}
-
-dependencyResolutionManagement {
- repositories {
- $AGP_REPOSITORY
- $DEPENDENCY_REPOSITORIES
- }
-}
-
-include(":plugins")
diff --git a/recipes/perVariantManifestPlaceholder/gradle/libs.versions.toml b/recipes/perVariantManifestPlaceholder/gradle/libs.versions.toml
deleted file mode 100644
index 8c672bba..00000000
--- a/recipes/perVariantManifestPlaceholder/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[plugins]
-android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
-
-
diff --git a/recipes/perVariantManifestPlaceholder/recipe_metadata.toml b/recipes/perVariantManifestPlaceholder/recipe_metadata.toml
deleted file mode 100644
index 137d1281..00000000
--- a/recipes/perVariantManifestPlaceholder/recipe_metadata.toml
+++ /dev/null
@@ -1,33 +0,0 @@
-# optional (if present and non-blank) name to use in the index
-indexName = ""
-# optional (if present and non-blank) folder name to use when converting recipe in RELEASE mode
-destinationFolder = ""
-
-description ="""
- perVariantManifestPlaceholder recipe
- """
-
-[agpVersion]
-min = "8.1.0"
-
-# Relevant Gradle tasks to run per recipe
-[gradleTasks]
-tasks = [
- "debugManifestVerifier",
- "releaseManifestVerifier"
-]
-
-# All the relevant metadata fields to create an index based on language/API/etc'
-[indexMetadata]
-index = [
- "Themes/Android Manifest",
- "APIs/AndroidComponentsExtension.onVariants()",
- "Call chains/androidComponents.onVariants {}",
- "Call chains/variant.manifestPlaceholders.put()",
- "APIs/Variant.manifestPlaceholders",
- "APIs/MapProperty.put()",
- "Placeholders",
- "APIs/SingleArtifact.MERGED_MANIFEST",
- "APIs/Artifacts.get()",
- "Call chains/variant.artifacts.get()"
-]
diff --git a/recipes/registerPreBuild/build-logic/gradle/libs.versions.toml b/recipes/registerPreBuild/build-logic/gradle/libs.versions.toml
deleted file mode 100644
index d362ae08..00000000
--- a/recipes/registerPreBuild/build-logic/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[libraries]
-android-gradlePlugin-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
-
-[plugins]
-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
diff --git a/recipes/registerPreBuild/build-logic/settings.gradle.kts b/recipes/registerPreBuild/build-logic/settings.gradle.kts
deleted file mode 100644
index e2e5e9e5..00000000
--- a/recipes/registerPreBuild/build-logic/settings.gradle.kts
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright 2024 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-rootProject.name = "build-logic"
-
-pluginManagement {
- repositories {
- $AGP_REPOSITORY
- $PLUGIN_REPOSITORIES
- }
-}
-
-dependencyResolutionManagement {
- repositories {
- $AGP_REPOSITORY
- $DEPENDENCY_REPOSITORIES
- }
-}
-
-include(":plugins")
diff --git a/recipes/registerPreBuild/gradle/libs.versions.toml b/recipes/registerPreBuild/gradle/libs.versions.toml
deleted file mode 100644
index 8c672bba..00000000
--- a/recipes/registerPreBuild/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[plugins]
-android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
-
-
diff --git a/recipes/registerPreBuild/recipe_metadata.toml b/recipes/registerPreBuild/recipe_metadata.toml
deleted file mode 100644
index e9e1e805..00000000
--- a/recipes/registerPreBuild/recipe_metadata.toml
+++ /dev/null
@@ -1,29 +0,0 @@
-# optional (if present and non-blank) name to use in the index
-indexName = ""
-# optional (if present and non-blank) folder name to use when converting recipe in RELEASE mode
-destinationFolder = ""
-
-description ="""
- This sample shows how to register a task dependency on the PreBuild lifecycle task.
- """
-
-[agpVersion]
-min = "8.4.0-alpha13"
-
-# Relevant Gradle tasks to run per recipe
-[gradleTasks]
-tasks = [
- "assembleDebug"
-]
-validationTasks = [
- "validateDebug"
-]
-
-# All the relevant metadata fields to create an index based on language/API/etc'
-[indexMetadata]
-index = [
- "APIs/AndroidComponentsExtension.onVariants()",
- "Call chains/androidComponents.onVariants {}",
- "Call chains/variant.registerPreBuild()",
- "APIs/LifeCycleTasks.registerPreBuild()"
-]
diff --git a/recipes/selectVariants/build-logic/gradle/libs.versions.toml b/recipes/selectVariants/build-logic/gradle/libs.versions.toml
deleted file mode 100644
index d362ae08..00000000
--- a/recipes/selectVariants/build-logic/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[libraries]
-android-gradlePlugin-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
-
-[plugins]
-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
diff --git a/recipes/selectVariants/build-logic/settings.gradle.kts b/recipes/selectVariants/build-logic/settings.gradle.kts
deleted file mode 100644
index f6aafa37..00000000
--- a/recipes/selectVariants/build-logic/settings.gradle.kts
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright 2022 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-rootProject.name = "build-logic"
-
-pluginManagement {
- repositories {
- $AGP_REPOSITORY
- $PLUGIN_REPOSITORIES
- }
-}
-
-dependencyResolutionManagement {
- repositories {
-$AGP_REPOSITORY
-$DEPENDENCY_REPOSITORIES
- }
-}
-
-include(":plugins")
diff --git a/recipes/selectVariants/gradle/libs.versions.toml b/recipes/selectVariants/gradle/libs.versions.toml
deleted file mode 100644
index 8c672bba..00000000
--- a/recipes/selectVariants/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[plugins]
-android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
-
-
diff --git a/recipes/selectVariants/recipe_metadata.toml b/recipes/selectVariants/recipe_metadata.toml
deleted file mode 100644
index e79cd160..00000000
--- a/recipes/selectVariants/recipe_metadata.toml
+++ /dev/null
@@ -1,39 +0,0 @@
-# optional (if present and non-blank) name to use in the index
-indexName = ""
-# optional (if present and non-blank) folder name to use when converting recipe in RELEASE mode
-destinationFolder = ""
-
-description ="""
- This sample shows how to select multiple variants by using selector() in Variant API.
- """
-
-[agpVersion]
-min = "8.1.0"
-
-# Relevant Gradle tasks to run per recipe
-[gradleTasks]
-tasks = [
- ":app:checkFullMinApi24ReleaseConfiguration",
- ":app:checkDemoMinApi21DebugConfiguration",
- ":app:checkDemoMinApi24DebugConfiguration",
-]
-
-# All the relevant metadata fields to create an index based on language/API/etc'
-[indexMetadata]
-index = [
- "APIs/AndroidComponentsExtension.beforeVariants()",
- "Call chains/androidComponents.beforeVariants {}",
- "APIs/AndroidComponentsExtension.selector()",
- "APIs/VariantSelector.withFlavor()",
- "Call chains/androidComponents.selector().withFlavor()",
- "APIs/VariantSelector.withBuildType()",
- "Call chains/androidComponents.selector().withBuildType()",
- "APIs/VariantSelector.withName()",
- "Call chains/androidComponents.selector().withName()",
- "APIs/VariantSelector.all()",
- "Call chains/androidComponents.selector().all()",
- "APIs/VariantBuilder.minSdk",
- "APIs/CanMinifyAndroidResourcesBuilder.shrinkResources",
- "APIs/CanMinifyCodeBuilder.isMinifyEnabled",
- "APIs/HasUnitTestBuilder.enableUnitTest",
-]
diff --git a/recipes/testFixtures/recipe_metadata.toml b/recipes/testFixtures/recipe_metadata.toml
deleted file mode 100644
index bb5c4c78..00000000
--- a/recipes/testFixtures/recipe_metadata.toml
+++ /dev/null
@@ -1,23 +0,0 @@
-# optional (if present and non-blank) name to use in the index
-indexName = ""
-# optional (if present and non-blank) folder name to use when converting recipe in RELEASE mode
-destinationFolder = ""
-
-description ="""
- This recipe shows how to use test fixtures with Android projects.
- """
-
-[agpVersion]
-min = "8.1.0"
-
-# Relevant Gradle tasks to run per recipe
-[gradleTasks]
-tasks = [
- "app:testDebug"
-]
-
-# All the relevant metadata fields to create an index based on language/API/etc'
-[indexMetadata]
-index = [
- "Plugin Features/TestFixtures"
-]
diff --git a/recipes/transformAllClasses/build-logic/gradle/libs.versions.toml b/recipes/transformAllClasses/build-logic/gradle/libs.versions.toml
deleted file mode 100644
index d009d769..00000000
--- a/recipes/transformAllClasses/build-logic/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[libraries]
-android-gradlePlugin-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
-
-[plugins]
-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
\ No newline at end of file
diff --git a/recipes/transformAllClasses/build-logic/settings.gradle.kts b/recipes/transformAllClasses/build-logic/settings.gradle.kts
deleted file mode 100644
index fb2f5583..00000000
--- a/recipes/transformAllClasses/build-logic/settings.gradle.kts
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright 2022 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-rootProject.name = "build-logic"
-
-pluginManagement {
- repositories {
- $AGP_REPOSITORY
- $PLUGIN_REPOSITORIES
- }
-}
-
-dependencyResolutionManagement {
- repositories {
- $AGP_REPOSITORY
- $DEPENDENCY_REPOSITORIES
- }
-}
-
-include(":plugins")
diff --git a/recipes/transformAllClasses/recipe_metadata.toml b/recipes/transformAllClasses/recipe_metadata.toml
deleted file mode 100644
index 7a219196..00000000
--- a/recipes/transformAllClasses/recipe_metadata.toml
+++ /dev/null
@@ -1,31 +0,0 @@
-# optional (if present and non-blank) name to use in the index
-indexName = ""
-# optional (if present and non-blank) folder name to use when converting recipe in RELEASE mode
-destinationFolder = ""
-
-description ="""
- This sample shows how to transform classes that will be used to create the dex files.
- """
-
-[agpVersion]
-min = "8.1.0"
-
-# Relevant Gradle tasks to run per recipe
-[gradleTasks]
-tasks = [
- ":app:assembleDebug"
-]
-
-# All the relevant metadata fields to create an index based on language/API/etc'
-[indexMetadata]
-index = [
- "Themes/Artifact API",
- "APIs/AndroidComponentsExtension.onVariants()",
- "Call chains/androidComponents.onVariants {}",
- "Call chains/variant.artifacts.forScope().use().toTransform()",
- "APIs/Artifacts.forScope()",
- "APIs/ScopedArtifacts.use()",
- "APIs/ScopedArtifactsOperation.toTransform()",
- "APIs/ScopedArtifact.CLASSES",
- "APIs/ScopedArtifacts.Scope.PROJECT",
-]
diff --git a/recipes/transformDirectory/build-logic/gradle/libs.versions.toml b/recipes/transformDirectory/build-logic/gradle/libs.versions.toml
deleted file mode 100644
index d009d769..00000000
--- a/recipes/transformDirectory/build-logic/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[libraries]
-android-gradlePlugin-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
-
-[plugins]
-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
\ No newline at end of file
diff --git a/recipes/transformDirectory/build-logic/settings.gradle.kts b/recipes/transformDirectory/build-logic/settings.gradle.kts
deleted file mode 100644
index e2e5e9e5..00000000
--- a/recipes/transformDirectory/build-logic/settings.gradle.kts
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright 2024 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-rootProject.name = "build-logic"
-
-pluginManagement {
- repositories {
- $AGP_REPOSITORY
- $PLUGIN_REPOSITORIES
- }
-}
-
-dependencyResolutionManagement {
- repositories {
- $AGP_REPOSITORY
- $DEPENDENCY_REPOSITORIES
- }
-}
-
-include(":plugins")
diff --git a/recipes/transformDirectory/recipe_metadata.toml b/recipes/transformDirectory/recipe_metadata.toml
deleted file mode 100644
index 73f5122f..00000000
--- a/recipes/transformDirectory/recipe_metadata.toml
+++ /dev/null
@@ -1,34 +0,0 @@
-# optional (if present and non-blank) name to use in the index
-indexName = ""
-# optional (if present and non-blank) folder name to use when converting recipe in RELEASE mode
-destinationFolder = ""
-
-description ="""
- This sample shows how to use the InAndOutDirectoryOperationRequest.toTransform() API on an object of type
- Artifact.Single and Artifact.Transformable
- """
-
-[agpVersion]
-min = "8.1.0"
-
-# Relevant Gradle tasks to run per recipe
-[gradleTasks]
-tasks = [
- ":app:checkDebugAssets"
-]
-
-# All the relevant metadata fields to create an index based on language/API/etc
-[indexMetadata]
-index = [
- "Themes/Artifact API",
- "Call chains/variant.artifacts.get()",
- "Call chains/variant.artifacts.use().wiredWithDirectories().toTransform()",
- "Call chains/androidComponents.onVariants {}",
- "APIs/InAndOutDirectoryOperationRequest.toTransform()",
- "APIs/Artifacts.use()",
- "APIs/Artifacts.get()",
- "APIs/SingleArtifact.ASSETS",
- "APIs/Component.artifacts",
- "APIs/TaskBasedOperation.wiredWithDirectories()",
- "APIs/AndroidComponentsExtension.onVariants()"
-]
diff --git a/recipes/transformManifest/build-logic/gradle/libs.versions.toml b/recipes/transformManifest/build-logic/gradle/libs.versions.toml
deleted file mode 100644
index d362ae08..00000000
--- a/recipes/transformManifest/build-logic/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[libraries]
-android-gradlePlugin-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
-
-[plugins]
-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
diff --git a/recipes/transformManifest/build-logic/settings.gradle.kts b/recipes/transformManifest/build-logic/settings.gradle.kts
deleted file mode 100644
index fb2f5583..00000000
--- a/recipes/transformManifest/build-logic/settings.gradle.kts
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright 2022 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-rootProject.name = "build-logic"
-
-pluginManagement {
- repositories {
- $AGP_REPOSITORY
- $PLUGIN_REPOSITORIES
- }
-}
-
-dependencyResolutionManagement {
- repositories {
- $AGP_REPOSITORY
- $DEPENDENCY_REPOSITORIES
- }
-}
-
-include(":plugins")
diff --git a/recipes/transformManifest/gradle/libs.versions.toml b/recipes/transformManifest/gradle/libs.versions.toml
deleted file mode 100644
index 8c672bba..00000000
--- a/recipes/transformManifest/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[plugins]
-android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
-
-
diff --git a/recipes/transformManifest/recipe_metadata.toml b/recipes/transformManifest/recipe_metadata.toml
deleted file mode 100644
index 849d7368..00000000
--- a/recipes/transformManifest/recipe_metadata.toml
+++ /dev/null
@@ -1,38 +0,0 @@
-# optional (if present and non-blank) name to use in the index
-indexName = ""
-# optional (if present and non-blank) folder name to use when converting recipe in RELEASE mode
-destinationFolder = ""
-
-description ="""
- This sample shows how to update Android manifest in a meaningful way.
- """
-
-[agpVersion]
-min = "8.1.0"
-
-# Relevant Gradle tasks to run per recipe
-[gradleTasks]
-tasks = [
- ":app:checkDebugMergedManifest"
-]
-
-# All the relevant metadata fields to create an index based on language/API/etc'
-[indexMetadata]
-index = [
- "Themes/Android Manifest",
- "Themes/Artifact API",
- "APIs/AndroidComponentsExtension.onVariants()",
- "Call chains/variant.artifacts.get()",
- "Call chains/androidComponents.onVariants {}",
- "Call chains/variant.artifacts.use().wiredWithFiles().toTransform()",
- "APIs/Component.artifacts",
- "APIs/Artifacts.use()",
- "APIs/Artifacts.get()",
- "APIs/TaskBasedOperation.wiredWithFiles()",
- "APIs/InAndOutFileOperationRequest.toTransform()",
- "Call chains/task.outputs.upToDateWhen {}",
- "APIs/TaskOutputs.upToDateWhen()",
- "APIs/task.getOutputs()",
- "APIs/SingleArtifact.MERGED_MANIFEST",
-]
-
diff --git a/recipes/transformMultiple/build-logic/gradle/libs.versions.toml b/recipes/transformMultiple/build-logic/gradle/libs.versions.toml
deleted file mode 100644
index d009d769..00000000
--- a/recipes/transformMultiple/build-logic/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[libraries]
-android-gradlePlugin-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
-
-[plugins]
-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
\ No newline at end of file
diff --git a/recipes/transformMultiple/build-logic/settings.gradle.kts b/recipes/transformMultiple/build-logic/settings.gradle.kts
deleted file mode 100644
index e2e5e9e5..00000000
--- a/recipes/transformMultiple/build-logic/settings.gradle.kts
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright 2024 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-rootProject.name = "build-logic"
-
-pluginManagement {
- repositories {
- $AGP_REPOSITORY
- $PLUGIN_REPOSITORIES
- }
-}
-
-dependencyResolutionManagement {
- repositories {
- $AGP_REPOSITORY
- $DEPENDENCY_REPOSITORIES
- }
-}
-
-include(":plugins")
diff --git a/recipes/transformMultiple/recipe_metadata.toml b/recipes/transformMultiple/recipe_metadata.toml
deleted file mode 100644
index d7235f2d..00000000
--- a/recipes/transformMultiple/recipe_metadata.toml
+++ /dev/null
@@ -1,36 +0,0 @@
-# optional (if present and non-blank) name to use in the index
-indexName = ""
-# optional (if present and non-blank) folder name to use when converting recipe in RELEASE mode
-destinationFolder = ""
-
-description ="""
- This sample shows how to use the CombiningOperationRequest.toTransform() API on an object of type Artifact.Multiple
- and Artifact.Transformable
- """
-
-[agpVersion]
-min = "8.4.0-alpha10"
-
-# Relevant Gradle tasks to run per recipe
-[gradleTasks]
-tasks = [
- ":app:checkDebugNativeDebugMetadata"
-]
-
-# All the relevant metadata fields to create an index based on language/API/etc
-[indexMetadata]
-index = [
- "Themes/Artifact API",
- "Call chains/variant.artifacts.add()",
- "Call chains/variant.artifacts.get()",
- "Call chains/variant.artifacts.use().wiredWith().toTransform()",
- "Call chains/androidComponents.onVariants {}",
- "APIs/CombiningOperationRequest.toTransform()",
- "APIs/Artifacts.add()",
- "APIs/Artifacts.use()",
- "APIs/Artifacts.get()",
- "APIs/MultipleArtifact.NATIVE_DEBUG_METADATA",
- "APIs/Component.artifacts",
- "APIs/AndroidComponentsExtension.onVariants()",
- "APIs/TaskBasedOperation.wiredWith()"
-]
diff --git a/recipes/variantDependencySubstitutionTest/recipe_metadata.toml b/recipes/variantDependencySubstitutionTest/recipe_metadata.toml
deleted file mode 100644
index a567315f..00000000
--- a/recipes/variantDependencySubstitutionTest/recipe_metadata.toml
+++ /dev/null
@@ -1,38 +0,0 @@
-# optional (if present and non-blank) name to use in the index
-indexName = ""
-# optional (if present and non-blank) folder name to use when converting recipe in RELEASE mode
-destinationFolder = ""
-
-description ="""
- Customizing test dependencies with dependencySubstitution of variant API.
- """
-
-[agpVersion]
-min = "8.1.0"
-
-# Relevant Gradle tasks to run per recipe
-[gradleTasks]
-tasks = [
- ":app:assemble",
- ":app:testDebugUnitTest",
- ":app:testReleaseUnitTest",
- ":app:assembleAndroidTest"
-]
-
-# All the relevant metadata fields to create an index based on language/API/etc'
-[indexMetadata]
-index = [
- "Themes/Dependency Resolution",
- "APIs/AndroidComponentsExtension.onVariants()",
- "Call chains/androidComponents.onVariants {}",
- "Call chains/androidComponents.selector().withBuildType()",
- "APIs/VariantSelector.withBuildType()",
- "APIs/Variant.nestedComponents",
- "APIs/Variant.components",
- "APIs/Component.compileConfiguration",
- "APIs/Component.runtimeConfiguration",
- "APIs/Configuration.resolutionStrategy",
- "APIs/ResolutionStrategy.dependencySubstitution()",
- "Call chains/configuration.resolutionStrategy.dependencySubstitution {}",
- "Call chains/substitute().using()",
-]
diff --git a/recipes/variantOutput/build-logic/gradle/libs.versions.toml b/recipes/variantOutput/build-logic/gradle/libs.versions.toml
deleted file mode 100644
index d362ae08..00000000
--- a/recipes/variantOutput/build-logic/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[libraries]
-android-gradlePlugin-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
-
-[plugins]
-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
diff --git a/recipes/variantOutput/build-logic/settings.gradle.kts b/recipes/variantOutput/build-logic/settings.gradle.kts
deleted file mode 100644
index 477dd8ee..00000000
--- a/recipes/variantOutput/build-logic/settings.gradle.kts
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright 2024 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-rootProject.name = "build-logic"
-
-pluginManagement {
- repositories {
- $AGP_REPOSITORY
- $PLUGIN_REPOSITORIES
- }
-}
-
-dependencyResolutionManagement {
- repositories {
-$AGP_REPOSITORY
-$DEPENDENCY_REPOSITORIES
- }
-}
-
-include(":plugins")
diff --git a/recipes/variantOutput/gradle/libs.versions.toml b/recipes/variantOutput/gradle/libs.versions.toml
deleted file mode 100644
index 8c672bba..00000000
--- a/recipes/variantOutput/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[plugins]
-android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
-
-
diff --git a/recipes/variantOutput/recipe_metadata.toml b/recipes/variantOutput/recipe_metadata.toml
deleted file mode 100644
index 4d62ace6..00000000
--- a/recipes/variantOutput/recipe_metadata.toml
+++ /dev/null
@@ -1,37 +0,0 @@
-# optional (if present and non-blank) name to use in the index
-indexName = ""
-# optional (if present and non-blank) folder name to use when converting recipe in RELEASE mode
-destinationFolder = ""
-
-description ="""
- This sample shows how to get and update the variant output using the variant API.
- """
-
-[agpVersion]
-min = "8.1.0"
-
-# Relevant Gradle tasks to run per recipe
-[gradleTasks]
-tasks = [
- ":app:checkFlavor1DebugMergedManifest",
- ":app:checkFlavor2ReleaseMergedManifest"
-]
-
-# All the relevant metadata fields to create an index based on language/API/etc'
-[indexMetadata]
-index = [
- "APIs/AndroidComponentsExtension.onVariants()",
- "Call chains/androidComponents.onVariants {}",
- "APIs/AndroidComponentsExtension.selector()",
- "APIs/ApplicationVariant.outputs",
- "APIs/VariantOutputConfiguration.outputType",
- "APIs/VariantOutputConfiguration.OutputType.SINGLE",
- "APIs/VariantSelector.withFlavor()",
- "Call chains/androidComponents.selector().withFlavor()",
- "APIs/VariantSelector.all()",
- "Call chains/androidComponents.selector().all()",
- "Call chains/variant.artifacts.get()",
- "APIs/Component.artifacts",
- "APIs/Artifacts.get()",
- "APIs/SingleArtifact.MERGED_MANIFEST",
-]
diff --git a/recipes/workerEnabledTransformation/build-logic/gradle/libs.versions.toml b/recipes/workerEnabledTransformation/build-logic/gradle/libs.versions.toml
deleted file mode 100644
index d362ae08..00000000
--- a/recipes/workerEnabledTransformation/build-logic/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[libraries]
-android-gradlePlugin-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
-
-[plugins]
-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
diff --git a/recipes/workerEnabledTransformation/build-logic/settings.gradle.kts b/recipes/workerEnabledTransformation/build-logic/settings.gradle.kts
deleted file mode 100644
index e2e5e9e5..00000000
--- a/recipes/workerEnabledTransformation/build-logic/settings.gradle.kts
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright 2024 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-rootProject.name = "build-logic"
-
-pluginManagement {
- repositories {
- $AGP_REPOSITORY
- $PLUGIN_REPOSITORIES
- }
-}
-
-dependencyResolutionManagement {
- repositories {
- $AGP_REPOSITORY
- $DEPENDENCY_REPOSITORIES
- }
-}
-
-include(":plugins")
diff --git a/recipes/workerEnabledTransformation/gradle/libs.versions.toml b/recipes/workerEnabledTransformation/gradle/libs.versions.toml
deleted file mode 100644
index 8c672bba..00000000
--- a/recipes/workerEnabledTransformation/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[plugins]
-android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
-
-
diff --git a/recipes/workerEnabledTransformation/recipe_metadata.toml b/recipes/workerEnabledTransformation/recipe_metadata.toml
deleted file mode 100644
index 3d0efe24..00000000
--- a/recipes/workerEnabledTransformation/recipe_metadata.toml
+++ /dev/null
@@ -1,34 +0,0 @@
-# optional (if present and non-blank) name to use in the index
-indexName = ""
-# optional (if present and non-blank) folder name to use when converting recipe in RELEASE mode
-destinationFolder = ""
-
-description ="""
- This sample shows how to transform the artifact in async way
- """
-
-[agpVersion]
-min = "8.1.0"
-
-# Relevant Gradle tasks to run per recipe
-[gradleTasks]
-tasks = [
- ":app:copyDebugApks"
-]
-
-# All the relevant metadata fields to create an index based on language/API/etc'
-[indexMetadata]
-index = [
- "Themes/Artifact API",
- "APIs/AndroidComponentsExtension.onVariants()",
- "Call chains/androidComponents.onVariants {}",
- "Call chains/variant.artifacts.use().wiredWithDirectories().toTransformMany()",
- "APIs/Artifacts.use()",
- "APIs/TaskBasedOperation.wiredWithDirectories()",
- "APIs/InAndOutDirectoryOperationRequest.toTransformMany()",
- "APIs/SingleArtifact.APK",
- "APIs/ArtifactTransformationRequest",
- "Call chains/transformationRequest.submit()",
- "APIs/BuiltArtifact"
-]
-
diff --git a/recipes/registerPreBuild/README.md b/registerPreBuild/README.md
similarity index 100%
rename from recipes/registerPreBuild/README.md
rename to registerPreBuild/README.md
diff --git a/recipes/registerPreBuild/app/build.gradle.kts b/registerPreBuild/app/build.gradle.kts
similarity index 91%
rename from recipes/registerPreBuild/app/build.gradle.kts
rename to registerPreBuild/app/build.gradle.kts
index b30b3444..527d7257 100644
--- a/recipes/registerPreBuild/app/build.gradle.kts
+++ b/registerPreBuild/app/build.gradle.kts
@@ -22,10 +22,10 @@ plugins {
android {
namespace = "com.example.android.recipes.register_pre_build"
- compileSdk = $COMPILE_SDK
+ compileSdk = 35
defaultConfig {
- minSdk = $MINIMUM_SDK
- targetSdk = $COMPILE_SDK
+ minSdk = 21
+ targetSdk = 35
}
}
diff --git a/recipes/registerPreBuild/app/src/main/AndroidManifest.xml b/registerPreBuild/app/src/main/AndroidManifest.xml
similarity index 100%
rename from recipes/registerPreBuild/app/src/main/AndroidManifest.xml
rename to registerPreBuild/app/src/main/AndroidManifest.xml
diff --git a/recipes/registerPreBuild/build-logic/gradle.properties b/registerPreBuild/build-logic/gradle.properties
similarity index 100%
rename from recipes/registerPreBuild/build-logic/gradle.properties
rename to registerPreBuild/build-logic/gradle.properties
diff --git a/registerPreBuild/build-logic/gradle/libs.versions.toml b/registerPreBuild/build-logic/gradle/libs.versions.toml
new file mode 100644
index 00000000..1073e06f
--- /dev/null
+++ b/registerPreBuild/build-logic/gradle/libs.versions.toml
@@ -0,0 +1,9 @@
+[versions]
+androidGradlePlugin = "8.7.3"
+kotlin = "1.9.22"
+
+[libraries]
+android-gradlePlugin-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
+
+[plugins]
+kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
diff --git a/recipes/registerPreBuild/build-logic/plugins/build.gradle.kts b/registerPreBuild/build-logic/plugins/build.gradle.kts
similarity index 100%
rename from recipes/registerPreBuild/build-logic/plugins/build.gradle.kts
rename to registerPreBuild/build-logic/plugins/build.gradle.kts
diff --git a/recipes/registerPreBuild/build-logic/plugins/src/main/kotlin/CustomPlugin.kt b/registerPreBuild/build-logic/plugins/src/main/kotlin/CustomPlugin.kt
similarity index 100%
rename from recipes/registerPreBuild/build-logic/plugins/src/main/kotlin/CustomPlugin.kt
rename to registerPreBuild/build-logic/plugins/src/main/kotlin/CustomPlugin.kt
diff --git a/recipes/registerPreBuild/build-logic/plugins/src/main/kotlin/PreBuildValidationTask.kt b/registerPreBuild/build-logic/plugins/src/main/kotlin/PreBuildValidationTask.kt
similarity index 100%
rename from recipes/registerPreBuild/build-logic/plugins/src/main/kotlin/PreBuildValidationTask.kt
rename to registerPreBuild/build-logic/plugins/src/main/kotlin/PreBuildValidationTask.kt
diff --git a/registerPreBuild/build-logic/settings.gradle.kts b/registerPreBuild/build-logic/settings.gradle.kts
new file mode 100644
index 00000000..03be6a28
--- /dev/null
+++ b/registerPreBuild/build-logic/settings.gradle.kts
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2024 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+rootProject.name = "build-logic"
+
+pluginManagement {
+ repositories {
+maven { url = uri("") }
+ gradlePluginPortal()
+ google()
+ mavenCentral()
+ }
+}
+
+dependencyResolutionManagement {
+ repositories {
+maven { url = uri("") }
+ google()
+ mavenCentral()
+ }
+}
+
+include(":plugins")
diff --git a/recipes/registerPreBuild/build.gradle.kts b/registerPreBuild/build.gradle.kts
similarity index 100%
rename from recipes/registerPreBuild/build.gradle.kts
rename to registerPreBuild/build.gradle.kts
diff --git a/recipes/registerPreBuild/gradle.properties b/registerPreBuild/gradle.properties
similarity index 100%
rename from recipes/registerPreBuild/gradle.properties
rename to registerPreBuild/gradle.properties
diff --git a/registerPreBuild/gradle/libs.versions.toml b/registerPreBuild/gradle/libs.versions.toml
new file mode 100644
index 00000000..714cf1ea
--- /dev/null
+++ b/registerPreBuild/gradle/libs.versions.toml
@@ -0,0 +1,9 @@
+[versions]
+androidGradlePlugin = "8.7.3"
+kotlin = "1.9.22"
+
+[plugins]
+android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
+kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
+
+
diff --git a/registerPreBuild/gradle/wrapper/gradle-wrapper.jar b/registerPreBuild/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 00000000..41d9927a
Binary files /dev/null and b/registerPreBuild/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/registerPreBuild/gradle/wrapper/gradle-wrapper.properties b/registerPreBuild/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 00000000..496d24c8
--- /dev/null
+++ b/registerPreBuild/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Wed Aug 10 10:22:34 IDT 2022
+distributionBase=GRADLE_USER_HOME
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
+distributionPath=wrapper/dists
+zipStorePath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
diff --git a/registerPreBuild/gradlew b/registerPreBuild/gradlew
new file mode 100755
index 00000000..1b6c7873
--- /dev/null
+++ b/registerPreBuild/gradlew
@@ -0,0 +1,234 @@
+#!/bin/sh
+
+#
+# Copyright © 2015-2021 the original authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+##############################################################################
+#
+# Gradle start up script for POSIX generated by Gradle.
+#
+# Important for running:
+#
+# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
+# noncompliant, but you have some other compliant shell such as ksh or
+# bash, then to run this script, type that shell name before the whole
+# command line, like:
+#
+# ksh Gradle
+#
+# Busybox and similar reduced shells will NOT work, because this script
+# requires all of these POSIX shell features:
+# * functions;
+# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
+# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
+# * compound commands having a testable exit status, especially «case»;
+# * various built-in commands including «command», «set», and «ulimit».
+#
+# Important for patching:
+#
+# (2) This script targets any POSIX shell, so it avoids extensions provided
+# by Bash, Ksh, etc; in particular arrays are avoided.
+#
+# The "traditional" practice of packing multiple parameters into a
+# space-separated string is a well documented source of bugs and security
+# problems, so this is (mostly) avoided, by progressively accumulating
+# options in "$@", and eventually passing that to Java.
+#
+# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
+# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
+# see the in-line comments for details.
+#
+# There are tweaks for specific operating systems such as AIX, CygWin,
+# Darwin, MinGW, and NonStop.
+#
+# (3) This script is generated from the Groovy template
+# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
+# within the Gradle project.
+#
+# You can find Gradle at https://github.com/gradle/gradle/.
+#
+##############################################################################
+
+# Attempt to set APP_HOME
+
+# Resolve links: $0 may be a link
+app_path=$0
+
+# Need this for daisy-chained symlinks.
+while
+ APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
+ [ -h "$app_path" ]
+do
+ ls=$( ls -ld "$app_path" )
+ link=${ls#*' -> '}
+ case $link in #(
+ /*) app_path=$link ;; #(
+ *) app_path=$APP_HOME$link ;;
+ esac
+done
+
+APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
+
+APP_NAME="Gradle"
+APP_BASE_NAME=${0##*/}
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD=maximum
+
+warn () {
+ echo "$*"
+} >&2
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+} >&2
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "$( uname )" in #(
+ CYGWIN* ) cygwin=true ;; #(
+ Darwin* ) darwin=true ;; #(
+ MSYS* | MINGW* ) msys=true ;; #(
+ NONSTOP* ) nonstop=true ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD=$JAVA_HOME/jre/sh/java
+ else
+ JAVACMD=$JAVA_HOME/bin/java
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD=java
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
+ case $MAX_FD in #(
+ max*)
+ MAX_FD=$( ulimit -H -n ) ||
+ warn "Could not query maximum file descriptor limit"
+ esac
+ case $MAX_FD in #(
+ '' | soft) :;; #(
+ *)
+ ulimit -n "$MAX_FD" ||
+ warn "Could not set maximum file descriptor limit to $MAX_FD"
+ esac
+fi
+
+# Collect all arguments for the java command, stacking in reverse order:
+# * args from the command line
+# * the main class name
+# * -classpath
+# * -D...appname settings
+# * --module-path (only if needed)
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if "$cygwin" || "$msys" ; then
+ APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
+ CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
+
+ JAVACMD=$( cygpath --unix "$JAVACMD" )
+
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ for arg do
+ if
+ case $arg in #(
+ -*) false ;; # don't mess with options #(
+ /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
+ [ -e "$t" ] ;; #(
+ *) false ;;
+ esac
+ then
+ arg=$( cygpath --path --ignore --mixed "$arg" )
+ fi
+ # Roll the args list around exactly as many times as the number of
+ # args, so each arg winds up back in the position where it started, but
+ # possibly modified.
+ #
+ # NB: a `for` loop captures its iteration list before it begins, so
+ # changing the positional parameters here affects neither the number of
+ # iterations, nor the values presented in `arg`.
+ shift # remove old arg
+ set -- "$@" "$arg" # push replacement arg
+ done
+fi
+
+# Collect all arguments for the java command;
+# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
+# shell script including quotes and variable substitutions, so put them in
+# double quotes to make sure that they get re-expanded; and
+# * put everything else in single quotes, so that it's not re-expanded.
+
+set -- \
+ "-Dorg.gradle.appname=$APP_BASE_NAME" \
+ -classpath "$CLASSPATH" \
+ org.gradle.wrapper.GradleWrapperMain \
+ "$@"
+
+# Use "xargs" to parse quoted args.
+#
+# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
+#
+# In Bash we could simply go:
+#
+# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
+# set -- "${ARGS[@]}" "$@"
+#
+# but POSIX shell has neither arrays nor command substitution, so instead we
+# post-process each arg (as a line of input to sed) to backslash-escape any
+# character that might be a shell metacharacter, then use eval to reverse
+# that process (while maintaining the separation between arguments), and wrap
+# the whole thing up as a single "set" statement.
+#
+# This will of course break if any of these variables contains a newline or
+# an unmatched quote.
+#
+
+eval "set -- $(
+ printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
+ xargs -n1 |
+ sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
+ tr '\n' ' '
+ )" '"$@"'
+
+exec "$JAVACMD" "$@"
diff --git a/registerPreBuild/gradlew.bat b/registerPreBuild/gradlew.bat
new file mode 100644
index 00000000..107acd32
--- /dev/null
+++ b/registerPreBuild/gradlew.bat
@@ -0,0 +1,89 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/recipes/registerPreBuild/settings.gradle.kts b/registerPreBuild/settings.gradle.kts
similarity index 84%
rename from recipes/registerPreBuild/settings.gradle.kts
rename to registerPreBuild/settings.gradle.kts
index 71944cfa..564b5eb2 100644
--- a/recipes/registerPreBuild/settings.gradle.kts
+++ b/registerPreBuild/settings.gradle.kts
@@ -19,16 +19,19 @@ rootProject.name = "registerPreBuild"
pluginManagement {
includeBuild("build-logic")
repositories {
- $AGP_REPOSITORY
- $PLUGIN_REPOSITORIES
+maven { url = uri("") }
+ gradlePluginPortal()
+ google()
+ mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
- $AGP_REPOSITORY
- $DEPENDENCY_REPOSITORIES
+maven { url = uri("") }
+ google()
+ mavenCentral()
}
}
diff --git a/recipes/selectVariants/README.md b/selectVariants/README.md
similarity index 100%
rename from recipes/selectVariants/README.md
rename to selectVariants/README.md
diff --git a/recipes/selectVariants/app/build.gradle.kts b/selectVariants/app/build.gradle.kts
similarity index 92%
rename from recipes/selectVariants/app/build.gradle.kts
rename to selectVariants/app/build.gradle.kts
index 0b43e286..69a13f58 100644
--- a/recipes/selectVariants/app/build.gradle.kts
+++ b/selectVariants/app/build.gradle.kts
@@ -22,10 +22,10 @@ plugins {
android {
namespace = "com.example.android.recipes.selectVariants"
- compileSdk = $COMPILE_SDK
+ compileSdk = 35
defaultConfig {
- minSdk = $MINIMUM_SDK
- targetSdk = $COMPILE_SDK
+ minSdk = 21
+ targetSdk = 35
}
// Specifies one flavor dimension.
@@ -44,4 +44,4 @@ android {
dimension = "api"
}
}
-}
\ No newline at end of file
+}
diff --git a/recipes/selectVariants/app/src/main/AndroidManifest.xml b/selectVariants/app/src/main/AndroidManifest.xml
similarity index 100%
rename from recipes/selectVariants/app/src/main/AndroidManifest.xml
rename to selectVariants/app/src/main/AndroidManifest.xml
diff --git a/recipes/selectVariants/build-logic/gradle.properties b/selectVariants/build-logic/gradle.properties
similarity index 100%
rename from recipes/selectVariants/build-logic/gradle.properties
rename to selectVariants/build-logic/gradle.properties
diff --git a/selectVariants/build-logic/gradle/libs.versions.toml b/selectVariants/build-logic/gradle/libs.versions.toml
new file mode 100644
index 00000000..1073e06f
--- /dev/null
+++ b/selectVariants/build-logic/gradle/libs.versions.toml
@@ -0,0 +1,9 @@
+[versions]
+androidGradlePlugin = "8.7.3"
+kotlin = "1.9.22"
+
+[libraries]
+android-gradlePlugin-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
+
+[plugins]
+kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
diff --git a/recipes/selectVariants/build-logic/plugins/build.gradle.kts b/selectVariants/build-logic/plugins/build.gradle.kts
similarity index 100%
rename from recipes/selectVariants/build-logic/plugins/build.gradle.kts
rename to selectVariants/build-logic/plugins/build.gradle.kts
diff --git a/recipes/selectVariants/build-logic/plugins/src/main/kotlin/CustomPlugin.kt b/selectVariants/build-logic/plugins/src/main/kotlin/CustomPlugin.kt
similarity index 100%
rename from recipes/selectVariants/build-logic/plugins/src/main/kotlin/CustomPlugin.kt
rename to selectVariants/build-logic/plugins/src/main/kotlin/CustomPlugin.kt
diff --git a/selectVariants/build-logic/settings.gradle.kts b/selectVariants/build-logic/settings.gradle.kts
new file mode 100644
index 00000000..5b324fd2
--- /dev/null
+++ b/selectVariants/build-logic/settings.gradle.kts
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2022 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+rootProject.name = "build-logic"
+
+pluginManagement {
+ repositories {
+maven { url = uri("") }
+ gradlePluginPortal()
+ google()
+ mavenCentral()
+ }
+}
+
+dependencyResolutionManagement {
+ repositories {
+maven { url = uri("") }
+ google()
+ mavenCentral()
+ }
+}
+
+include(":plugins")
diff --git a/recipes/selectVariants/build.gradle.kts b/selectVariants/build.gradle.kts
similarity index 100%
rename from recipes/selectVariants/build.gradle.kts
rename to selectVariants/build.gradle.kts
diff --git a/recipes/selectVariants/gradle.properties b/selectVariants/gradle.properties
similarity index 100%
rename from recipes/selectVariants/gradle.properties
rename to selectVariants/gradle.properties
diff --git a/selectVariants/gradle/libs.versions.toml b/selectVariants/gradle/libs.versions.toml
new file mode 100644
index 00000000..714cf1ea
--- /dev/null
+++ b/selectVariants/gradle/libs.versions.toml
@@ -0,0 +1,9 @@
+[versions]
+androidGradlePlugin = "8.7.3"
+kotlin = "1.9.22"
+
+[plugins]
+android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
+kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
+
+
diff --git a/selectVariants/gradle/wrapper/gradle-wrapper.jar b/selectVariants/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 00000000..41d9927a
Binary files /dev/null and b/selectVariants/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/selectVariants/gradle/wrapper/gradle-wrapper.properties b/selectVariants/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 00000000..496d24c8
--- /dev/null
+++ b/selectVariants/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Wed Aug 10 10:22:34 IDT 2022
+distributionBase=GRADLE_USER_HOME
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
+distributionPath=wrapper/dists
+zipStorePath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
diff --git a/selectVariants/gradlew b/selectVariants/gradlew
new file mode 100755
index 00000000..1b6c7873
--- /dev/null
+++ b/selectVariants/gradlew
@@ -0,0 +1,234 @@
+#!/bin/sh
+
+#
+# Copyright © 2015-2021 the original authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+##############################################################################
+#
+# Gradle start up script for POSIX generated by Gradle.
+#
+# Important for running:
+#
+# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
+# noncompliant, but you have some other compliant shell such as ksh or
+# bash, then to run this script, type that shell name before the whole
+# command line, like:
+#
+# ksh Gradle
+#
+# Busybox and similar reduced shells will NOT work, because this script
+# requires all of these POSIX shell features:
+# * functions;
+# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
+# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
+# * compound commands having a testable exit status, especially «case»;
+# * various built-in commands including «command», «set», and «ulimit».
+#
+# Important for patching:
+#
+# (2) This script targets any POSIX shell, so it avoids extensions provided
+# by Bash, Ksh, etc; in particular arrays are avoided.
+#
+# The "traditional" practice of packing multiple parameters into a
+# space-separated string is a well documented source of bugs and security
+# problems, so this is (mostly) avoided, by progressively accumulating
+# options in "$@", and eventually passing that to Java.
+#
+# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
+# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
+# see the in-line comments for details.
+#
+# There are tweaks for specific operating systems such as AIX, CygWin,
+# Darwin, MinGW, and NonStop.
+#
+# (3) This script is generated from the Groovy template
+# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
+# within the Gradle project.
+#
+# You can find Gradle at https://github.com/gradle/gradle/.
+#
+##############################################################################
+
+# Attempt to set APP_HOME
+
+# Resolve links: $0 may be a link
+app_path=$0
+
+# Need this for daisy-chained symlinks.
+while
+ APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
+ [ -h "$app_path" ]
+do
+ ls=$( ls -ld "$app_path" )
+ link=${ls#*' -> '}
+ case $link in #(
+ /*) app_path=$link ;; #(
+ *) app_path=$APP_HOME$link ;;
+ esac
+done
+
+APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
+
+APP_NAME="Gradle"
+APP_BASE_NAME=${0##*/}
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD=maximum
+
+warn () {
+ echo "$*"
+} >&2
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+} >&2
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "$( uname )" in #(
+ CYGWIN* ) cygwin=true ;; #(
+ Darwin* ) darwin=true ;; #(
+ MSYS* | MINGW* ) msys=true ;; #(
+ NONSTOP* ) nonstop=true ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD=$JAVA_HOME/jre/sh/java
+ else
+ JAVACMD=$JAVA_HOME/bin/java
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD=java
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
+ case $MAX_FD in #(
+ max*)
+ MAX_FD=$( ulimit -H -n ) ||
+ warn "Could not query maximum file descriptor limit"
+ esac
+ case $MAX_FD in #(
+ '' | soft) :;; #(
+ *)
+ ulimit -n "$MAX_FD" ||
+ warn "Could not set maximum file descriptor limit to $MAX_FD"
+ esac
+fi
+
+# Collect all arguments for the java command, stacking in reverse order:
+# * args from the command line
+# * the main class name
+# * -classpath
+# * -D...appname settings
+# * --module-path (only if needed)
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if "$cygwin" || "$msys" ; then
+ APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
+ CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
+
+ JAVACMD=$( cygpath --unix "$JAVACMD" )
+
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ for arg do
+ if
+ case $arg in #(
+ -*) false ;; # don't mess with options #(
+ /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
+ [ -e "$t" ] ;; #(
+ *) false ;;
+ esac
+ then
+ arg=$( cygpath --path --ignore --mixed "$arg" )
+ fi
+ # Roll the args list around exactly as many times as the number of
+ # args, so each arg winds up back in the position where it started, but
+ # possibly modified.
+ #
+ # NB: a `for` loop captures its iteration list before it begins, so
+ # changing the positional parameters here affects neither the number of
+ # iterations, nor the values presented in `arg`.
+ shift # remove old arg
+ set -- "$@" "$arg" # push replacement arg
+ done
+fi
+
+# Collect all arguments for the java command;
+# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
+# shell script including quotes and variable substitutions, so put them in
+# double quotes to make sure that they get re-expanded; and
+# * put everything else in single quotes, so that it's not re-expanded.
+
+set -- \
+ "-Dorg.gradle.appname=$APP_BASE_NAME" \
+ -classpath "$CLASSPATH" \
+ org.gradle.wrapper.GradleWrapperMain \
+ "$@"
+
+# Use "xargs" to parse quoted args.
+#
+# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
+#
+# In Bash we could simply go:
+#
+# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
+# set -- "${ARGS[@]}" "$@"
+#
+# but POSIX shell has neither arrays nor command substitution, so instead we
+# post-process each arg (as a line of input to sed) to backslash-escape any
+# character that might be a shell metacharacter, then use eval to reverse
+# that process (while maintaining the separation between arguments), and wrap
+# the whole thing up as a single "set" statement.
+#
+# This will of course break if any of these variables contains a newline or
+# an unmatched quote.
+#
+
+eval "set -- $(
+ printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
+ xargs -n1 |
+ sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
+ tr '\n' ' '
+ )" '"$@"'
+
+exec "$JAVACMD" "$@"
diff --git a/selectVariants/gradlew.bat b/selectVariants/gradlew.bat
new file mode 100644
index 00000000..107acd32
--- /dev/null
+++ b/selectVariants/gradlew.bat
@@ -0,0 +1,89 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/recipes/selectVariants/settings.gradle.kts b/selectVariants/settings.gradle.kts
similarity index 84%
rename from recipes/selectVariants/settings.gradle.kts
rename to selectVariants/settings.gradle.kts
index 1357657b..8a6182db 100644
--- a/recipes/selectVariants/settings.gradle.kts
+++ b/selectVariants/settings.gradle.kts
@@ -19,16 +19,19 @@ rootProject.name = "selectVariants"
pluginManagement {
includeBuild("build-logic")
repositories {
-$AGP_REPOSITORY
-$PLUGIN_REPOSITORIES
+maven { url = uri("") }
+ gradlePluginPortal()
+ google()
+ mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
-$AGP_REPOSITORY
-$DEPENDENCY_REPOSITORIES
+maven { url = uri("") }
+ google()
+ mavenCentral()
}
}
diff --git a/templates/TemplateRecipe/README.md b/templates/TemplateRecipe/README.md
deleted file mode 100644
index 2812a541..00000000
--- a/templates/TemplateRecipe/README.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# Template recipe
-
-Steps
-=====
-1. Change the project [name](TemplateRecipe/settings.gradle.kts).
-2. Add the Variant API logic to the custom plugin.
- [plugin](TemplateRecipe/build-logic/plugins/src/main/kotlin/CustomPlugin.kt), including tasks to test the API
-3. Update the recipe metadata [file](TemplateRecipe/recipe_metadata.toml):
- index entries, tasks and the recipe name.
-4. Call the tasks `./gradlew debugTemplateRecipe` or `./gradlew releaseTemplateRecipe`
-
diff --git a/templates/TemplateRecipe/app/build.gradle.kts b/templates/TemplateRecipe/app/build.gradle.kts
deleted file mode 100644
index 827f33d3..00000000
--- a/templates/TemplateRecipe/app/build.gradle.kts
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Copyright 2022 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-plugins {
- alias(libs.plugins.android.application)
- alias(libs.plugins.kotlin.android)
- id("android.recipes.custom_plugin")
-}
-
-android {
- namespace = "com.example.android.recipes.template_recipe"
- compileSdk = $COMPILE_SDK
- defaultConfig {
- minSdk = $MINIMUM_SDK
- targetSdk = $COMPILE_SDK
- }
-}
-
-java {
- toolchain {
- languageVersion.set(JavaLanguageVersion.of(17))
- }
-}
diff --git a/templates/TemplateRecipe/app/src/main/AndroidManifest.xml b/templates/TemplateRecipe/app/src/main/AndroidManifest.xml
deleted file mode 100644
index 95971dfc..00000000
--- a/templates/TemplateRecipe/app/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/templates/TemplateRecipe/build-logic/gradle.properties b/templates/TemplateRecipe/build-logic/gradle.properties
deleted file mode 100644
index 3dcf88f0..00000000
--- a/templates/TemplateRecipe/build-logic/gradle.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-# Gradle properties are not passed to included builds https://github.com/gradle/gradle/issues/2534
-org.gradle.parallel=true
diff --git a/templates/TemplateRecipe/build-logic/gradle/libs.versions.toml b/templates/TemplateRecipe/build-logic/gradle/libs.versions.toml
deleted file mode 100644
index d362ae08..00000000
--- a/templates/TemplateRecipe/build-logic/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[libraries]
-android-gradlePlugin-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
-
-[plugins]
-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
diff --git a/templates/TemplateRecipe/build-logic/plugins/build.gradle.kts b/templates/TemplateRecipe/build-logic/plugins/build.gradle.kts
deleted file mode 100644
index 0608834d..00000000
--- a/templates/TemplateRecipe/build-logic/plugins/build.gradle.kts
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright 2022 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-plugins {
- `java-gradle-plugin`
- alias(libs.plugins.kotlin.jvm)
-}
-
-java {
- toolchain {
- languageVersion.set(JavaLanguageVersion.of(17))
- }
-}
-
-dependencies {
- compileOnly(libs.android.gradlePlugin.api)
- implementation(gradleKotlinDsl())
-}
-
-gradlePlugin {
- plugins {
- create("customPlugin") {
- id = "android.recipes.custom_plugin"
- implementationClass = "CustomPlugin"
- }
- }
-}
diff --git a/templates/TemplateRecipe/build-logic/plugins/src/main/kotlin/CustomPlugin.kt b/templates/TemplateRecipe/build-logic/plugins/src/main/kotlin/CustomPlugin.kt
deleted file mode 100644
index 44220008..00000000
--- a/templates/TemplateRecipe/build-logic/plugins/src/main/kotlin/CustomPlugin.kt
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * Copyright 2022 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import com.android.build.api.variant.ApplicationAndroidComponentsExtension
-import com.android.build.gradle.AppPlugin
-import org.gradle.api.DefaultTask
-import org.gradle.api.Plugin
-import org.gradle.api.Project
-import org.gradle.api.file.DirectoryProperty
-import org.gradle.api.tasks.OutputDirectory
-import org.gradle.api.tasks.TaskAction
-import org.gradle.kotlin.dsl.register
-
-/**
- * This custom plugin will register a callback that is applied to all variants.
- */
-class CustomPlugin : Plugin {
- override fun apply(project: Project) {
-
- // Registers a callback on the application of the Android Application plugin.
- // This allows the CustomPlugin to work whether it's applied before or after
- // the Android Application plugin.
- project.plugins.withType(AppPlugin::class.java) {
-
- // Queries for the extension set by the Android Application plugin.
- // This is the second of two entry points into the Android Gradle plugin
- val androidComponents =
- project.extensions.getByType(ApplicationAndroidComponentsExtension::class.java)
- // Registers a callback to be called, when a new variant is configured
- androidComponents.onVariants { variant ->
- project.tasks.register("${variant.name}TemplateRecipe") {
- output.set(
- project.layout.buildDirectory.dir("intermediates/template_recipe/$it.name")
- )
- }
- }
- }
- }
-}
-
-/**
- * This task here to verify that the API does what is says.
- */
-abstract class TemplateTask : DefaultTask() {
-
- // In order of the task to be up-to-date when the manifest has not changed,
- // the task must declare an output, even if it's not used. Tasks with no
- // output are always run regardless of whether the inputs changed or not
- @get:OutputDirectory
- abstract val output: DirectoryProperty
-
- @TaskAction
- fun taskAction() {
-
- }
-}
\ No newline at end of file
diff --git a/templates/TemplateRecipe/build-logic/settings.gradle.kts b/templates/TemplateRecipe/build-logic/settings.gradle.kts
deleted file mode 100644
index fb2f5583..00000000
--- a/templates/TemplateRecipe/build-logic/settings.gradle.kts
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright 2022 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-rootProject.name = "build-logic"
-
-pluginManagement {
- repositories {
- $AGP_REPOSITORY
- $PLUGIN_REPOSITORIES
- }
-}
-
-dependencyResolutionManagement {
- repositories {
- $AGP_REPOSITORY
- $DEPENDENCY_REPOSITORIES
- }
-}
-
-include(":plugins")
diff --git a/templates/TemplateRecipe/build.gradle.kts b/templates/TemplateRecipe/build.gradle.kts
deleted file mode 100644
index a30e11d3..00000000
--- a/templates/TemplateRecipe/build.gradle.kts
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * Copyright 2022 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-plugins {
- alias(libs.plugins.android.application) apply false
- alias(libs.plugins.kotlin.android) apply false
-}
diff --git a/templates/TemplateRecipe/gradle.properties b/templates/TemplateRecipe/gradle.properties
deleted file mode 100644
index 55cce922..00000000
--- a/templates/TemplateRecipe/gradle.properties
+++ /dev/null
@@ -1,23 +0,0 @@
-# Project-wide Gradle settings.
-# IDE (e.g. Android Studio) users:
-# Gradle settings configured through the IDE *will override*
-# any settings specified in this file.
-# For more details on how to configure your build environment visit
-# http://www.gradle.org/docs/current/userguide/build_environment.html
-# 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
diff --git a/templates/TemplateRecipe/gradle/libs.versions.toml b/templates/TemplateRecipe/gradle/libs.versions.toml
deleted file mode 100644
index 8c672bba..00000000
--- a/templates/TemplateRecipe/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[plugins]
-android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
-
-
diff --git a/templates/TemplateRecipe/recipe_metadata.toml b/templates/TemplateRecipe/recipe_metadata.toml
deleted file mode 100644
index 6a0f87d1..00000000
--- a/templates/TemplateRecipe/recipe_metadata.toml
+++ /dev/null
@@ -1,23 +0,0 @@
-# optional (if present and non-blank) name to use in the index
-indexName = ""
-# optional (if present and non-blank) folder name to use when converting recipe in RELEASE mode
-destinationFolder = ""
-
-description ="""
- Template recipe
- """
-
-[agpVersion]
-min = "8.2.0"
-
-# Relevant Gradle tasks to run per recipe
-[gradleTasks]
-tasks = [
- "debugTemplateRecipe",
- "releaseTemplateRecipe"
-]
-
-# All the relevant metadata fields to create an index based on language/API/etc'
-[indexMetadata]
-index = [
-]
diff --git a/templates/TemplateRecipe/settings.gradle.kts b/templates/TemplateRecipe/settings.gradle.kts
deleted file mode 100644
index 06aff8ec..00000000
--- a/templates/TemplateRecipe/settings.gradle.kts
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Copyright 2022 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-rootProject.name = "template-recipe"
-
-pluginManagement {
- includeBuild("build-logic")
- repositories {
- $AGP_REPOSITORY
- $PLUGIN_REPOSITORIES
- }
-}
-
-dependencyResolutionManagement {
- repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
- repositories {
- $AGP_REPOSITORY
- $DEPENDENCY_REPOSITORIES
- }
-}
-
-include(":app")
diff --git a/templates/TemplateSettingsRecipe/README.md b/templates/TemplateSettingsRecipe/README.md
deleted file mode 100644
index dda691c6..00000000
--- a/templates/TemplateSettingsRecipe/README.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# Template
-
-Insert here a description of the recipe.
-
-This recipe contains the following directories :
-
-| Module | Content |
-|----------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| [build-logic](build-logic) | Contains the Settings plugin that is the core of the recipe. |
-| [app](app) | A simplistic Android application module that can be used in the recipe |
-
-## Instructions
-
-1. Copy this directory to a new folder with a descriptive name.
-2. Modify the [build.gradle.kts](build-logic/plugins/build.gradle.kts) to provide a name in sync with the recipe
- ```kotlin
- gradlePlugin {
- plugins {
- create("CustomSettingsPlugin") {
- id = "android.recipes.template"
- implementationClass = "CustomSettings"
- }
- }
- }
- ```
-3. Change [settings.gradle.kts](settings.gradle.kts) to change the project root name and apply the plugin defined in (2)
-4. Change [CustomSettings.kt](build-logic/plugins/src/main/kotlin/CustomSettings.kt) to fit your needs.
-5. Change [recipe_metadata.toml](recipe_metadata.toml) to add correct description and keywords, and remember to change the target task name for your recipe
- ```toml
- # Relevant Gradle tasks to run per recipe
- [gradleTasks]
- tasks = [
- "unknown",
- ]
- ```
-6. Change namespace in [app/build.gradle.kts](app/build.gradle.kts)
-7. Explain what it does [here](README.md) and in the code.
\ No newline at end of file
diff --git a/templates/TemplateSettingsRecipe/app/build.gradle.kts b/templates/TemplateSettingsRecipe/app/build.gradle.kts
deleted file mode 100644
index 7553b5ad..00000000
--- a/templates/TemplateSettingsRecipe/app/build.gradle.kts
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Copyright 2022 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-plugins {
- alias(libs.plugins.android.application)
- alias(libs.plugins.kotlin.android)
-}
-
-android {
- namespace = "com.example.android.recipes.template_settings_app"
- compileSdk = $COMPILE_SDK
- defaultConfig {
- minSdk = $MINIMUM_SDK
- targetSdk = $COMPILE_SDK
- }
-}
-
-java {
- toolchain {
- languageVersion.set(JavaLanguageVersion.of(17))
- }
-}
diff --git a/templates/TemplateSettingsRecipe/app/src/main/AndroidManifest.xml b/templates/TemplateSettingsRecipe/app/src/main/AndroidManifest.xml
deleted file mode 100644
index 95971dfc..00000000
--- a/templates/TemplateSettingsRecipe/app/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/templates/TemplateSettingsRecipe/build-logic/gradle.properties b/templates/TemplateSettingsRecipe/build-logic/gradle.properties
deleted file mode 100644
index 3dcf88f0..00000000
--- a/templates/TemplateSettingsRecipe/build-logic/gradle.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-# Gradle properties are not passed to included builds https://github.com/gradle/gradle/issues/2534
-org.gradle.parallel=true
diff --git a/templates/TemplateSettingsRecipe/build-logic/gradle/libs.versions.toml b/templates/TemplateSettingsRecipe/build-logic/gradle/libs.versions.toml
deleted file mode 100644
index d009d769..00000000
--- a/templates/TemplateSettingsRecipe/build-logic/gradle/libs.versions.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[libraries]
-android-gradlePlugin-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
-
-[plugins]
-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
\ No newline at end of file
diff --git a/templates/TemplateSettingsRecipe/build-logic/plugins/build.gradle.kts b/templates/TemplateSettingsRecipe/build-logic/plugins/build.gradle.kts
deleted file mode 100644
index e388871e..00000000
--- a/templates/TemplateSettingsRecipe/build-logic/plugins/build.gradle.kts
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright 2022 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-plugins {
- `java-gradle-plugin`
- alias(libs.plugins.kotlin.jvm)
-}
-
-java {
- toolchain {
- languageVersion.set(JavaLanguageVersion.of(17))
- }
-}
-
-dependencies {
- implementation(libs.android.gradlePlugin.api)
- implementation(gradleKotlinDsl())
-}
-
-gradlePlugin {
- plugins {
- create("CustomSettingsPlugin") {
- id = "android.recipes.template"
- implementationClass = "CustomSettings"
- }
- }
-}
diff --git a/templates/TemplateSettingsRecipe/build-logic/plugins/src/main/kotlin/CustomSettings.kt b/templates/TemplateSettingsRecipe/build-logic/plugins/src/main/kotlin/CustomSettings.kt
deleted file mode 100644
index f563e93b..00000000
--- a/templates/TemplateSettingsRecipe/build-logic/plugins/src/main/kotlin/CustomSettings.kt
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright 2022 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-import com.android.build.api.artifact.SingleArtifact
-import com.android.build.api.variant.AndroidComponentsExtension
-import com.android.build.gradle.AppPlugin
-import org.gradle.api.Plugin
-import org.gradle.api.tasks.TaskProvider
-import org.gradle.api.initialization.Settings
-import org.gradle.kotlin.dsl.register
-
-/**
- * This [Settings] plugin is applied to the settings script.
- *
- * INSERT DESCRIPTION
- */
-class CustomSettings: Plugin {
- override fun apply(settings: Settings) {
-
- settings.gradle.beforeProject { project ->
-
- // Registers a callback on the application of the Android Application plugin.
- // This allows the CustomPlugin to work whether it's applied before or after
- // the Android Application plugin.
- project.plugins.withType(AppPlugin::class.java) { _ ->
-
- // Look up the right component.
- val androidComponents =
- project.extensions.getByType(AndroidComponentsExtension::class.java)
-
- // Registers a callback to be called, when a variant is configured
- androidComponents.onVariants { variant ->
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/templates/TemplateSettingsRecipe/build-logic/settings.gradle.kts b/templates/TemplateSettingsRecipe/build-logic/settings.gradle.kts
deleted file mode 100644
index fb2f5583..00000000
--- a/templates/TemplateSettingsRecipe/build-logic/settings.gradle.kts
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright 2022 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-rootProject.name = "build-logic"
-
-pluginManagement {
- repositories {
- $AGP_REPOSITORY
- $PLUGIN_REPOSITORIES
- }
-}
-
-dependencyResolutionManagement {
- repositories {
- $AGP_REPOSITORY
- $DEPENDENCY_REPOSITORIES
- }
-}
-
-include(":plugins")
diff --git a/templates/TemplateSettingsRecipe/build.gradle.kts b/templates/TemplateSettingsRecipe/build.gradle.kts
deleted file mode 100644
index a30e11d3..00000000
--- a/templates/TemplateSettingsRecipe/build.gradle.kts
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * Copyright 2022 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-plugins {
- alias(libs.plugins.android.application) apply false
- alias(libs.plugins.kotlin.android) apply false
-}
diff --git a/templates/TemplateSettingsRecipe/gradle.properties b/templates/TemplateSettingsRecipe/gradle.properties
deleted file mode 100644
index 55cce922..00000000
--- a/templates/TemplateSettingsRecipe/gradle.properties
+++ /dev/null
@@ -1,23 +0,0 @@
-# Project-wide Gradle settings.
-# IDE (e.g. Android Studio) users:
-# Gradle settings configured through the IDE *will override*
-# any settings specified in this file.
-# For more details on how to configure your build environment visit
-# http://www.gradle.org/docs/current/userguide/build_environment.html
-# 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
diff --git a/templates/TemplateSettingsRecipe/gradle/libs.versions.toml b/templates/TemplateSettingsRecipe/gradle/libs.versions.toml
deleted file mode 100644
index 28fab8d3..00000000
--- a/templates/TemplateSettingsRecipe/gradle/libs.versions.toml
+++ /dev/null
@@ -1,7 +0,0 @@
-[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
-
-[plugins]
-android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
\ No newline at end of file
diff --git a/templates/TemplateSettingsRecipe/recipe_metadata.toml b/templates/TemplateSettingsRecipe/recipe_metadata.toml
deleted file mode 100644
index 04b9ada9..00000000
--- a/templates/TemplateSettingsRecipe/recipe_metadata.toml
+++ /dev/null
@@ -1,26 +0,0 @@
-# optional (if present and non-blank) name to use in the index
-indexName = ""
-# optional (if present and non-blank) folder name to use when converting recipe in RELEASE mode
-destinationFolder = ""
-
-description ="""
- INSERT DESCRIPTION
- """
-
-[agpVersion]
-min = "8.2.0"
-
-# Relevant Gradle tasks to run per recipe
-[gradleTasks]
-tasks = [
- "unknown",
-]
-
-# All the relevant metadata fields to create an index based on language/API/etc'
-[indexMetadata]
-index = [
- "settings plugin",
- "onVariant",
- "All projects",
- "APK",
-]
diff --git a/templates/TemplateSettingsRecipe/settings.gradle.kts b/templates/TemplateSettingsRecipe/settings.gradle.kts
deleted file mode 100644
index 3ed7d577..00000000
--- a/templates/TemplateSettingsRecipe/settings.gradle.kts
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Copyright 2022 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-rootProject.name = "template-settings-recipe"
-
-pluginManagement {
- includeBuild("build-logic")
- repositories {
- $AGP_REPOSITORY
- $PLUGIN_REPOSITORIES
- }
-}
-
-dependencyResolutionManagement {
- repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
- repositories {
- $AGP_REPOSITORY
- $DEPENDENCY_REPOSITORIES
- }
-}
-
-include(":app")
-
-plugins {
- id("android.recipes.template")
-}
\ No newline at end of file
diff --git a/recipes/testFixtures/README.md b/testFixtures/README.md
similarity index 100%
rename from recipes/testFixtures/README.md
rename to testFixtures/README.md
diff --git a/recipes/testFixtures/app/build.gradle.kts b/testFixtures/app/build.gradle.kts
similarity index 91%
rename from recipes/testFixtures/app/build.gradle.kts
rename to testFixtures/app/build.gradle.kts
index cbacc349..62abcc73 100644
--- a/recipes/testFixtures/app/build.gradle.kts
+++ b/testFixtures/app/build.gradle.kts
@@ -21,10 +21,10 @@ plugins {
android {
namespace = "com.example.android.recipes.testFixtures"
- compileSdk = $COMPILE_SDK
+ compileSdk = 35
defaultConfig {
- minSdk = $MINIMUM_SDK
- targetSdk = $COMPILE_SDK
+ minSdk = 21
+ targetSdk = 35
}
}
@@ -38,4 +38,4 @@ dependencies {
implementation(project(":lib"))
testImplementation(testFixtures(project(":lib")))
testImplementation(libs.junit)
-}
\ No newline at end of file
+}
diff --git a/recipes/testFixtures/app/src/main/AndroidManifest.xml b/testFixtures/app/src/main/AndroidManifest.xml
similarity index 100%
rename from recipes/testFixtures/app/src/main/AndroidManifest.xml
rename to testFixtures/app/src/main/AndroidManifest.xml
diff --git a/recipes/testFixtures/app/src/main/kotlin/ViewModel.kt b/testFixtures/app/src/main/kotlin/ViewModel.kt
similarity index 100%
rename from recipes/testFixtures/app/src/main/kotlin/ViewModel.kt
rename to testFixtures/app/src/main/kotlin/ViewModel.kt
diff --git a/recipes/testFixtures/app/src/test/kotlin/ViewModelTest.kt b/testFixtures/app/src/test/kotlin/ViewModelTest.kt
similarity index 100%
rename from recipes/testFixtures/app/src/test/kotlin/ViewModelTest.kt
rename to testFixtures/app/src/test/kotlin/ViewModelTest.kt
diff --git a/recipes/testFixtures/build.gradle.kts b/testFixtures/build.gradle.kts
similarity index 100%
rename from recipes/testFixtures/build.gradle.kts
rename to testFixtures/build.gradle.kts
diff --git a/recipes/testFixtures/gradle.properties b/testFixtures/gradle.properties
similarity index 100%
rename from recipes/testFixtures/gradle.properties
rename to testFixtures/gradle.properties
diff --git a/recipes/testFixtures/gradle/libs.versions.toml b/testFixtures/gradle/libs.versions.toml
similarity index 88%
rename from recipes/testFixtures/gradle/libs.versions.toml
rename to testFixtures/gradle/libs.versions.toml
index 76a7273a..3c96e43a 100644
--- a/recipes/testFixtures/gradle/libs.versions.toml
+++ b/testFixtures/gradle/libs.versions.toml
@@ -1,6 +1,6 @@
[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
+androidGradlePlugin = "8.7.3"
+kotlin = "1.9.22"
junit = "4.13.2"
truth = "0.44"
diff --git a/testFixtures/gradle/wrapper/gradle-wrapper.jar b/testFixtures/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 00000000..41d9927a
Binary files /dev/null and b/testFixtures/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/testFixtures/gradle/wrapper/gradle-wrapper.properties b/testFixtures/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 00000000..496d24c8
--- /dev/null
+++ b/testFixtures/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Wed Aug 10 10:22:34 IDT 2022
+distributionBase=GRADLE_USER_HOME
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
+distributionPath=wrapper/dists
+zipStorePath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
diff --git a/testFixtures/gradlew b/testFixtures/gradlew
new file mode 100755
index 00000000..1b6c7873
--- /dev/null
+++ b/testFixtures/gradlew
@@ -0,0 +1,234 @@
+#!/bin/sh
+
+#
+# Copyright © 2015-2021 the original authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+##############################################################################
+#
+# Gradle start up script for POSIX generated by Gradle.
+#
+# Important for running:
+#
+# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
+# noncompliant, but you have some other compliant shell such as ksh or
+# bash, then to run this script, type that shell name before the whole
+# command line, like:
+#
+# ksh Gradle
+#
+# Busybox and similar reduced shells will NOT work, because this script
+# requires all of these POSIX shell features:
+# * functions;
+# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
+# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
+# * compound commands having a testable exit status, especially «case»;
+# * various built-in commands including «command», «set», and «ulimit».
+#
+# Important for patching:
+#
+# (2) This script targets any POSIX shell, so it avoids extensions provided
+# by Bash, Ksh, etc; in particular arrays are avoided.
+#
+# The "traditional" practice of packing multiple parameters into a
+# space-separated string is a well documented source of bugs and security
+# problems, so this is (mostly) avoided, by progressively accumulating
+# options in "$@", and eventually passing that to Java.
+#
+# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
+# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
+# see the in-line comments for details.
+#
+# There are tweaks for specific operating systems such as AIX, CygWin,
+# Darwin, MinGW, and NonStop.
+#
+# (3) This script is generated from the Groovy template
+# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
+# within the Gradle project.
+#
+# You can find Gradle at https://github.com/gradle/gradle/.
+#
+##############################################################################
+
+# Attempt to set APP_HOME
+
+# Resolve links: $0 may be a link
+app_path=$0
+
+# Need this for daisy-chained symlinks.
+while
+ APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
+ [ -h "$app_path" ]
+do
+ ls=$( ls -ld "$app_path" )
+ link=${ls#*' -> '}
+ case $link in #(
+ /*) app_path=$link ;; #(
+ *) app_path=$APP_HOME$link ;;
+ esac
+done
+
+APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
+
+APP_NAME="Gradle"
+APP_BASE_NAME=${0##*/}
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD=maximum
+
+warn () {
+ echo "$*"
+} >&2
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+} >&2
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "$( uname )" in #(
+ CYGWIN* ) cygwin=true ;; #(
+ Darwin* ) darwin=true ;; #(
+ MSYS* | MINGW* ) msys=true ;; #(
+ NONSTOP* ) nonstop=true ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD=$JAVA_HOME/jre/sh/java
+ else
+ JAVACMD=$JAVA_HOME/bin/java
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD=java
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
+ case $MAX_FD in #(
+ max*)
+ MAX_FD=$( ulimit -H -n ) ||
+ warn "Could not query maximum file descriptor limit"
+ esac
+ case $MAX_FD in #(
+ '' | soft) :;; #(
+ *)
+ ulimit -n "$MAX_FD" ||
+ warn "Could not set maximum file descriptor limit to $MAX_FD"
+ esac
+fi
+
+# Collect all arguments for the java command, stacking in reverse order:
+# * args from the command line
+# * the main class name
+# * -classpath
+# * -D...appname settings
+# * --module-path (only if needed)
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if "$cygwin" || "$msys" ; then
+ APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
+ CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
+
+ JAVACMD=$( cygpath --unix "$JAVACMD" )
+
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ for arg do
+ if
+ case $arg in #(
+ -*) false ;; # don't mess with options #(
+ /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
+ [ -e "$t" ] ;; #(
+ *) false ;;
+ esac
+ then
+ arg=$( cygpath --path --ignore --mixed "$arg" )
+ fi
+ # Roll the args list around exactly as many times as the number of
+ # args, so each arg winds up back in the position where it started, but
+ # possibly modified.
+ #
+ # NB: a `for` loop captures its iteration list before it begins, so
+ # changing the positional parameters here affects neither the number of
+ # iterations, nor the values presented in `arg`.
+ shift # remove old arg
+ set -- "$@" "$arg" # push replacement arg
+ done
+fi
+
+# Collect all arguments for the java command;
+# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
+# shell script including quotes and variable substitutions, so put them in
+# double quotes to make sure that they get re-expanded; and
+# * put everything else in single quotes, so that it's not re-expanded.
+
+set -- \
+ "-Dorg.gradle.appname=$APP_BASE_NAME" \
+ -classpath "$CLASSPATH" \
+ org.gradle.wrapper.GradleWrapperMain \
+ "$@"
+
+# Use "xargs" to parse quoted args.
+#
+# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
+#
+# In Bash we could simply go:
+#
+# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
+# set -- "${ARGS[@]}" "$@"
+#
+# but POSIX shell has neither arrays nor command substitution, so instead we
+# post-process each arg (as a line of input to sed) to backslash-escape any
+# character that might be a shell metacharacter, then use eval to reverse
+# that process (while maintaining the separation between arguments), and wrap
+# the whole thing up as a single "set" statement.
+#
+# This will of course break if any of these variables contains a newline or
+# an unmatched quote.
+#
+
+eval "set -- $(
+ printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
+ xargs -n1 |
+ sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
+ tr '\n' ' '
+ )" '"$@"'
+
+exec "$JAVACMD" "$@"
diff --git a/testFixtures/gradlew.bat b/testFixtures/gradlew.bat
new file mode 100644
index 00000000..107acd32
--- /dev/null
+++ b/testFixtures/gradlew.bat
@@ -0,0 +1,89 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/recipes/testFixtures/lib/build.gradle.kts b/testFixtures/lib/build.gradle.kts
similarity index 91%
rename from recipes/testFixtures/lib/build.gradle.kts
rename to testFixtures/lib/build.gradle.kts
index beca48db..5205e288 100644
--- a/recipes/testFixtures/lib/build.gradle.kts
+++ b/testFixtures/lib/build.gradle.kts
@@ -21,10 +21,10 @@ plugins {
android {
namespace = "com.example.android.recipes.fixtureLib"
- compileSdk = $COMPILE_SDK
+ compileSdk = 35
defaultConfig {
- minSdk = $MINIMUM_SDK
- targetSdk = $COMPILE_SDK
+ minSdk = 21
+ targetSdk = 35
}
testFixtures {
enable = true
diff --git a/recipes/testFixtures/lib/src/main/AndroidManifest.xml b/testFixtures/lib/src/main/AndroidManifest.xml
similarity index 100%
rename from recipes/testFixtures/lib/src/main/AndroidManifest.xml
rename to testFixtures/lib/src/main/AndroidManifest.xml
diff --git a/recipes/testFixtures/lib/src/main/java/User.kt b/testFixtures/lib/src/main/java/User.kt
similarity index 100%
rename from recipes/testFixtures/lib/src/main/java/User.kt
rename to testFixtures/lib/src/main/java/User.kt
diff --git a/recipes/testFixtures/lib/src/main/java/UserRepository.kt b/testFixtures/lib/src/main/java/UserRepository.kt
similarity index 100%
rename from recipes/testFixtures/lib/src/main/java/UserRepository.kt
rename to testFixtures/lib/src/main/java/UserRepository.kt
diff --git a/recipes/testFixtures/lib/src/main/res/values/strings.xml b/testFixtures/lib/src/main/res/values/strings.xml
similarity index 100%
rename from recipes/testFixtures/lib/src/main/res/values/strings.xml
rename to testFixtures/lib/src/main/res/values/strings.xml
diff --git a/recipes/testFixtures/lib/src/testFixtures/java/UserRepoFixture.java b/testFixtures/lib/src/testFixtures/java/UserRepoFixture.java
similarity index 100%
rename from recipes/testFixtures/lib/src/testFixtures/java/UserRepoFixture.java
rename to testFixtures/lib/src/testFixtures/java/UserRepoFixture.java
diff --git a/recipes/testFixtures/settings.gradle.kts b/testFixtures/settings.gradle.kts
similarity index 84%
rename from recipes/testFixtures/settings.gradle.kts
rename to testFixtures/settings.gradle.kts
index dbbf0540..c0c000aa 100644
--- a/recipes/testFixtures/settings.gradle.kts
+++ b/testFixtures/settings.gradle.kts
@@ -18,16 +18,19 @@ rootProject.name = "testFixtures"
pluginManagement {
repositories {
- $AGP_REPOSITORY
- $PLUGIN_REPOSITORIES
+maven { url = uri("") }
+ gradlePluginPortal()
+ google()
+ mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
- $AGP_REPOSITORY
- $DEPENDENCY_REPOSITORIES
+maven { url = uri("") }
+ google()
+ mavenCentral()
}
}
diff --git a/recipes/transformAllClasses/README.md b/transformAllClasses/README.md
similarity index 100%
rename from recipes/transformAllClasses/README.md
rename to transformAllClasses/README.md
diff --git a/recipes/transformAllClasses/app/build.gradle.kts b/transformAllClasses/app/build.gradle.kts
similarity index 91%
rename from recipes/transformAllClasses/app/build.gradle.kts
rename to transformAllClasses/app/build.gradle.kts
index d7087172..cead2c0c 100644
--- a/recipes/transformAllClasses/app/build.gradle.kts
+++ b/transformAllClasses/app/build.gradle.kts
@@ -24,10 +24,10 @@ plugins {
android {
namespace = "com.example.android.recipes.transform_classes"
- compileSdk = $COMPILE_SDK
+ compileSdk = 35
defaultConfig {
- minSdk = $MINIMUM_SDK
- targetSdk = $COMPILE_SDK
+ minSdk = 21
+ targetSdk = 35
}
}
@@ -35,4 +35,4 @@ java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
-}
\ No newline at end of file
+}
diff --git a/recipes/transformAllClasses/app/src/main/AndroidManifest.xml b/transformAllClasses/app/src/main/AndroidManifest.xml
similarity index 100%
rename from recipes/transformAllClasses/app/src/main/AndroidManifest.xml
rename to transformAllClasses/app/src/main/AndroidManifest.xml
diff --git a/recipes/transformAllClasses/app/src/main/java/com/example/android/recipes/sample/SomeSource.kt b/transformAllClasses/app/src/main/java/com/example/android/recipes/sample/SomeSource.kt
similarity index 100%
rename from recipes/transformAllClasses/app/src/main/java/com/example/android/recipes/sample/SomeSource.kt
rename to transformAllClasses/app/src/main/java/com/example/android/recipes/sample/SomeSource.kt
diff --git a/recipes/transformAllClasses/build-logic/gradle.properties b/transformAllClasses/build-logic/gradle.properties
similarity index 100%
rename from recipes/transformAllClasses/build-logic/gradle.properties
rename to transformAllClasses/build-logic/gradle.properties
diff --git a/transformAllClasses/build-logic/gradle/libs.versions.toml b/transformAllClasses/build-logic/gradle/libs.versions.toml
new file mode 100644
index 00000000..1073e06f
--- /dev/null
+++ b/transformAllClasses/build-logic/gradle/libs.versions.toml
@@ -0,0 +1,9 @@
+[versions]
+androidGradlePlugin = "8.7.3"
+kotlin = "1.9.22"
+
+[libraries]
+android-gradlePlugin-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
+
+[plugins]
+kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
diff --git a/recipes/transformAllClasses/build-logic/plugins/build.gradle.kts b/transformAllClasses/build-logic/plugins/build.gradle.kts
similarity index 100%
rename from recipes/transformAllClasses/build-logic/plugins/build.gradle.kts
rename to transformAllClasses/build-logic/plugins/build.gradle.kts
diff --git a/recipes/transformAllClasses/build-logic/plugins/libs/javassist-3.26.0-GA.jar b/transformAllClasses/build-logic/plugins/libs/javassist-3.26.0-GA.jar
similarity index 100%
rename from recipes/transformAllClasses/build-logic/plugins/libs/javassist-3.26.0-GA.jar
rename to transformAllClasses/build-logic/plugins/libs/javassist-3.26.0-GA.jar
diff --git a/recipes/transformAllClasses/build-logic/plugins/src/main/kotlin/CustomPlugin.kt b/transformAllClasses/build-logic/plugins/src/main/kotlin/CustomPlugin.kt
similarity index 100%
rename from recipes/transformAllClasses/build-logic/plugins/src/main/kotlin/CustomPlugin.kt
rename to transformAllClasses/build-logic/plugins/src/main/kotlin/CustomPlugin.kt
diff --git a/recipes/transformAllClasses/build-logic/plugins/src/main/kotlin/ModifyClassesTask.kt b/transformAllClasses/build-logic/plugins/src/main/kotlin/ModifyClassesTask.kt
similarity index 100%
rename from recipes/transformAllClasses/build-logic/plugins/src/main/kotlin/ModifyClassesTask.kt
rename to transformAllClasses/build-logic/plugins/src/main/kotlin/ModifyClassesTask.kt
diff --git a/transformAllClasses/build-logic/settings.gradle.kts b/transformAllClasses/build-logic/settings.gradle.kts
new file mode 100644
index 00000000..5b324fd2
--- /dev/null
+++ b/transformAllClasses/build-logic/settings.gradle.kts
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2022 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+rootProject.name = "build-logic"
+
+pluginManagement {
+ repositories {
+maven { url = uri("") }
+ gradlePluginPortal()
+ google()
+ mavenCentral()
+ }
+}
+
+dependencyResolutionManagement {
+ repositories {
+maven { url = uri("") }
+ google()
+ mavenCentral()
+ }
+}
+
+include(":plugins")
diff --git a/recipes/transformAllClasses/build.gradle.kts b/transformAllClasses/build.gradle.kts
similarity index 100%
rename from recipes/transformAllClasses/build.gradle.kts
rename to transformAllClasses/build.gradle.kts
diff --git a/recipes/transformAllClasses/gradle.properties b/transformAllClasses/gradle.properties
similarity index 100%
rename from recipes/transformAllClasses/gradle.properties
rename to transformAllClasses/gradle.properties
diff --git a/recipes/transformMultiple/gradle/libs.versions.toml b/transformAllClasses/gradle/libs.versions.toml
similarity index 76%
rename from recipes/transformMultiple/gradle/libs.versions.toml
rename to transformAllClasses/gradle/libs.versions.toml
index 4b265f77..49596d12 100644
--- a/recipes/transformMultiple/gradle/libs.versions.toml
+++ b/transformAllClasses/gradle/libs.versions.toml
@@ -1,6 +1,6 @@
[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
+androidGradlePlugin = "8.7.3"
+kotlin = "1.9.22"
[plugins]
android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
diff --git a/transformAllClasses/gradle/wrapper/gradle-wrapper.jar b/transformAllClasses/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 00000000..41d9927a
Binary files /dev/null and b/transformAllClasses/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/transformAllClasses/gradle/wrapper/gradle-wrapper.properties b/transformAllClasses/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 00000000..496d24c8
--- /dev/null
+++ b/transformAllClasses/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Wed Aug 10 10:22:34 IDT 2022
+distributionBase=GRADLE_USER_HOME
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
+distributionPath=wrapper/dists
+zipStorePath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
diff --git a/transformAllClasses/gradlew b/transformAllClasses/gradlew
new file mode 100755
index 00000000..1b6c7873
--- /dev/null
+++ b/transformAllClasses/gradlew
@@ -0,0 +1,234 @@
+#!/bin/sh
+
+#
+# Copyright © 2015-2021 the original authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+##############################################################################
+#
+# Gradle start up script for POSIX generated by Gradle.
+#
+# Important for running:
+#
+# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
+# noncompliant, but you have some other compliant shell such as ksh or
+# bash, then to run this script, type that shell name before the whole
+# command line, like:
+#
+# ksh Gradle
+#
+# Busybox and similar reduced shells will NOT work, because this script
+# requires all of these POSIX shell features:
+# * functions;
+# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
+# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
+# * compound commands having a testable exit status, especially «case»;
+# * various built-in commands including «command», «set», and «ulimit».
+#
+# Important for patching:
+#
+# (2) This script targets any POSIX shell, so it avoids extensions provided
+# by Bash, Ksh, etc; in particular arrays are avoided.
+#
+# The "traditional" practice of packing multiple parameters into a
+# space-separated string is a well documented source of bugs and security
+# problems, so this is (mostly) avoided, by progressively accumulating
+# options in "$@", and eventually passing that to Java.
+#
+# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
+# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
+# see the in-line comments for details.
+#
+# There are tweaks for specific operating systems such as AIX, CygWin,
+# Darwin, MinGW, and NonStop.
+#
+# (3) This script is generated from the Groovy template
+# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
+# within the Gradle project.
+#
+# You can find Gradle at https://github.com/gradle/gradle/.
+#
+##############################################################################
+
+# Attempt to set APP_HOME
+
+# Resolve links: $0 may be a link
+app_path=$0
+
+# Need this for daisy-chained symlinks.
+while
+ APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
+ [ -h "$app_path" ]
+do
+ ls=$( ls -ld "$app_path" )
+ link=${ls#*' -> '}
+ case $link in #(
+ /*) app_path=$link ;; #(
+ *) app_path=$APP_HOME$link ;;
+ esac
+done
+
+APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
+
+APP_NAME="Gradle"
+APP_BASE_NAME=${0##*/}
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD=maximum
+
+warn () {
+ echo "$*"
+} >&2
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+} >&2
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "$( uname )" in #(
+ CYGWIN* ) cygwin=true ;; #(
+ Darwin* ) darwin=true ;; #(
+ MSYS* | MINGW* ) msys=true ;; #(
+ NONSTOP* ) nonstop=true ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD=$JAVA_HOME/jre/sh/java
+ else
+ JAVACMD=$JAVA_HOME/bin/java
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD=java
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
+ case $MAX_FD in #(
+ max*)
+ MAX_FD=$( ulimit -H -n ) ||
+ warn "Could not query maximum file descriptor limit"
+ esac
+ case $MAX_FD in #(
+ '' | soft) :;; #(
+ *)
+ ulimit -n "$MAX_FD" ||
+ warn "Could not set maximum file descriptor limit to $MAX_FD"
+ esac
+fi
+
+# Collect all arguments for the java command, stacking in reverse order:
+# * args from the command line
+# * the main class name
+# * -classpath
+# * -D...appname settings
+# * --module-path (only if needed)
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if "$cygwin" || "$msys" ; then
+ APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
+ CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
+
+ JAVACMD=$( cygpath --unix "$JAVACMD" )
+
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ for arg do
+ if
+ case $arg in #(
+ -*) false ;; # don't mess with options #(
+ /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
+ [ -e "$t" ] ;; #(
+ *) false ;;
+ esac
+ then
+ arg=$( cygpath --path --ignore --mixed "$arg" )
+ fi
+ # Roll the args list around exactly as many times as the number of
+ # args, so each arg winds up back in the position where it started, but
+ # possibly modified.
+ #
+ # NB: a `for` loop captures its iteration list before it begins, so
+ # changing the positional parameters here affects neither the number of
+ # iterations, nor the values presented in `arg`.
+ shift # remove old arg
+ set -- "$@" "$arg" # push replacement arg
+ done
+fi
+
+# Collect all arguments for the java command;
+# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
+# shell script including quotes and variable substitutions, so put them in
+# double quotes to make sure that they get re-expanded; and
+# * put everything else in single quotes, so that it's not re-expanded.
+
+set -- \
+ "-Dorg.gradle.appname=$APP_BASE_NAME" \
+ -classpath "$CLASSPATH" \
+ org.gradle.wrapper.GradleWrapperMain \
+ "$@"
+
+# Use "xargs" to parse quoted args.
+#
+# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
+#
+# In Bash we could simply go:
+#
+# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
+# set -- "${ARGS[@]}" "$@"
+#
+# but POSIX shell has neither arrays nor command substitution, so instead we
+# post-process each arg (as a line of input to sed) to backslash-escape any
+# character that might be a shell metacharacter, then use eval to reverse
+# that process (while maintaining the separation between arguments), and wrap
+# the whole thing up as a single "set" statement.
+#
+# This will of course break if any of these variables contains a newline or
+# an unmatched quote.
+#
+
+eval "set -- $(
+ printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
+ xargs -n1 |
+ sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
+ tr '\n' ' '
+ )" '"$@"'
+
+exec "$JAVACMD" "$@"
diff --git a/transformAllClasses/gradlew.bat b/transformAllClasses/gradlew.bat
new file mode 100644
index 00000000..107acd32
--- /dev/null
+++ b/transformAllClasses/gradlew.bat
@@ -0,0 +1,89 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/recipes/transformAllClasses/settings.gradle.kts b/transformAllClasses/settings.gradle.kts
similarity index 84%
rename from recipes/transformAllClasses/settings.gradle.kts
rename to transformAllClasses/settings.gradle.kts
index 47c8fe33..28a97edc 100644
--- a/recipes/transformAllClasses/settings.gradle.kts
+++ b/transformAllClasses/settings.gradle.kts
@@ -19,16 +19,19 @@ rootProject.name = "transformClasses"
pluginManagement {
includeBuild("build-logic")
repositories {
- $AGP_REPOSITORY
- $PLUGIN_REPOSITORIES
+maven { url = uri("") }
+ gradlePluginPortal()
+ google()
+ mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
- $AGP_REPOSITORY
- $DEPENDENCY_REPOSITORIES
+maven { url = uri("") }
+ google()
+ mavenCentral()
}
}
diff --git a/recipes/transformDirectory/README.md b/transformDirectory/README.md
similarity index 100%
rename from recipes/transformDirectory/README.md
rename to transformDirectory/README.md
diff --git a/recipes/transformDirectory/app/build.gradle.kts b/transformDirectory/app/build.gradle.kts
similarity index 90%
rename from recipes/transformDirectory/app/build.gradle.kts
rename to transformDirectory/app/build.gradle.kts
index 50252f5d..d1d28ff9 100644
--- a/recipes/transformDirectory/app/build.gradle.kts
+++ b/transformDirectory/app/build.gradle.kts
@@ -22,10 +22,10 @@ plugins {
android {
namespace = "com.example.android.recipes.transform_directory"
- compileSdk = $COMPILE_SDK
+ compileSdk = 35
defaultConfig {
- minSdk = $MINIMUM_SDK
- targetSdk = $COMPILE_SDK
+ minSdk = 21
+ targetSdk = 35
}
}
@@ -33,4 +33,4 @@ java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
-}
\ No newline at end of file
+}
diff --git a/recipes/transformDirectory/app/src/main/AndroidManifest.xml b/transformDirectory/app/src/main/AndroidManifest.xml
similarity index 100%
rename from recipes/transformDirectory/app/src/main/AndroidManifest.xml
rename to transformDirectory/app/src/main/AndroidManifest.xml
diff --git a/recipes/transformDirectory/app/src/main/assets/FileToTransform.txt b/transformDirectory/app/src/main/assets/FileToTransform.txt
similarity index 100%
rename from recipes/transformDirectory/app/src/main/assets/FileToTransform.txt
rename to transformDirectory/app/src/main/assets/FileToTransform.txt
diff --git a/recipes/transformDirectory/build-logic/gradle.properties b/transformDirectory/build-logic/gradle.properties
similarity index 100%
rename from recipes/transformDirectory/build-logic/gradle.properties
rename to transformDirectory/build-logic/gradle.properties
diff --git a/transformDirectory/build-logic/gradle/libs.versions.toml b/transformDirectory/build-logic/gradle/libs.versions.toml
new file mode 100644
index 00000000..1073e06f
--- /dev/null
+++ b/transformDirectory/build-logic/gradle/libs.versions.toml
@@ -0,0 +1,9 @@
+[versions]
+androidGradlePlugin = "8.7.3"
+kotlin = "1.9.22"
+
+[libraries]
+android-gradlePlugin-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
+
+[plugins]
+kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
diff --git a/recipes/transformDirectory/build-logic/plugins/build.gradle.kts b/transformDirectory/build-logic/plugins/build.gradle.kts
similarity index 100%
rename from recipes/transformDirectory/build-logic/plugins/build.gradle.kts
rename to transformDirectory/build-logic/plugins/build.gradle.kts
diff --git a/recipes/transformDirectory/build-logic/plugins/src/main/kotlin/CheckAssetsTask.kt b/transformDirectory/build-logic/plugins/src/main/kotlin/CheckAssetsTask.kt
similarity index 100%
rename from recipes/transformDirectory/build-logic/plugins/src/main/kotlin/CheckAssetsTask.kt
rename to transformDirectory/build-logic/plugins/src/main/kotlin/CheckAssetsTask.kt
diff --git a/recipes/transformDirectory/build-logic/plugins/src/main/kotlin/CustomPlugin.kt b/transformDirectory/build-logic/plugins/src/main/kotlin/CustomPlugin.kt
similarity index 100%
rename from recipes/transformDirectory/build-logic/plugins/src/main/kotlin/CustomPlugin.kt
rename to transformDirectory/build-logic/plugins/src/main/kotlin/CustomPlugin.kt
diff --git a/recipes/transformDirectory/build-logic/plugins/src/main/kotlin/TransformAssetsTask.kt b/transformDirectory/build-logic/plugins/src/main/kotlin/TransformAssetsTask.kt
similarity index 100%
rename from recipes/transformDirectory/build-logic/plugins/src/main/kotlin/TransformAssetsTask.kt
rename to transformDirectory/build-logic/plugins/src/main/kotlin/TransformAssetsTask.kt
diff --git a/transformDirectory/build-logic/settings.gradle.kts b/transformDirectory/build-logic/settings.gradle.kts
new file mode 100644
index 00000000..03be6a28
--- /dev/null
+++ b/transformDirectory/build-logic/settings.gradle.kts
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2024 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+rootProject.name = "build-logic"
+
+pluginManagement {
+ repositories {
+maven { url = uri("") }
+ gradlePluginPortal()
+ google()
+ mavenCentral()
+ }
+}
+
+dependencyResolutionManagement {
+ repositories {
+maven { url = uri("") }
+ google()
+ mavenCentral()
+ }
+}
+
+include(":plugins")
diff --git a/recipes/transformDirectory/build.gradle.kts b/transformDirectory/build.gradle.kts
similarity index 100%
rename from recipes/transformDirectory/build.gradle.kts
rename to transformDirectory/build.gradle.kts
diff --git a/recipes/transformDirectory/gradle.properties b/transformDirectory/gradle.properties
similarity index 100%
rename from recipes/transformDirectory/gradle.properties
rename to transformDirectory/gradle.properties
diff --git a/recipes/transformAllClasses/gradle/libs.versions.toml b/transformDirectory/gradle/libs.versions.toml
similarity index 76%
rename from recipes/transformAllClasses/gradle/libs.versions.toml
rename to transformDirectory/gradle/libs.versions.toml
index 4b265f77..49596d12 100644
--- a/recipes/transformAllClasses/gradle/libs.versions.toml
+++ b/transformDirectory/gradle/libs.versions.toml
@@ -1,6 +1,6 @@
[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
+androidGradlePlugin = "8.7.3"
+kotlin = "1.9.22"
[plugins]
android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
diff --git a/transformDirectory/gradle/wrapper/gradle-wrapper.jar b/transformDirectory/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 00000000..41d9927a
Binary files /dev/null and b/transformDirectory/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/transformDirectory/gradle/wrapper/gradle-wrapper.properties b/transformDirectory/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 00000000..496d24c8
--- /dev/null
+++ b/transformDirectory/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Wed Aug 10 10:22:34 IDT 2022
+distributionBase=GRADLE_USER_HOME
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
+distributionPath=wrapper/dists
+zipStorePath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
diff --git a/transformDirectory/gradlew b/transformDirectory/gradlew
new file mode 100755
index 00000000..1b6c7873
--- /dev/null
+++ b/transformDirectory/gradlew
@@ -0,0 +1,234 @@
+#!/bin/sh
+
+#
+# Copyright © 2015-2021 the original authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+##############################################################################
+#
+# Gradle start up script for POSIX generated by Gradle.
+#
+# Important for running:
+#
+# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
+# noncompliant, but you have some other compliant shell such as ksh or
+# bash, then to run this script, type that shell name before the whole
+# command line, like:
+#
+# ksh Gradle
+#
+# Busybox and similar reduced shells will NOT work, because this script
+# requires all of these POSIX shell features:
+# * functions;
+# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
+# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
+# * compound commands having a testable exit status, especially «case»;
+# * various built-in commands including «command», «set», and «ulimit».
+#
+# Important for patching:
+#
+# (2) This script targets any POSIX shell, so it avoids extensions provided
+# by Bash, Ksh, etc; in particular arrays are avoided.
+#
+# The "traditional" practice of packing multiple parameters into a
+# space-separated string is a well documented source of bugs and security
+# problems, so this is (mostly) avoided, by progressively accumulating
+# options in "$@", and eventually passing that to Java.
+#
+# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
+# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
+# see the in-line comments for details.
+#
+# There are tweaks for specific operating systems such as AIX, CygWin,
+# Darwin, MinGW, and NonStop.
+#
+# (3) This script is generated from the Groovy template
+# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
+# within the Gradle project.
+#
+# You can find Gradle at https://github.com/gradle/gradle/.
+#
+##############################################################################
+
+# Attempt to set APP_HOME
+
+# Resolve links: $0 may be a link
+app_path=$0
+
+# Need this for daisy-chained symlinks.
+while
+ APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
+ [ -h "$app_path" ]
+do
+ ls=$( ls -ld "$app_path" )
+ link=${ls#*' -> '}
+ case $link in #(
+ /*) app_path=$link ;; #(
+ *) app_path=$APP_HOME$link ;;
+ esac
+done
+
+APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
+
+APP_NAME="Gradle"
+APP_BASE_NAME=${0##*/}
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD=maximum
+
+warn () {
+ echo "$*"
+} >&2
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+} >&2
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "$( uname )" in #(
+ CYGWIN* ) cygwin=true ;; #(
+ Darwin* ) darwin=true ;; #(
+ MSYS* | MINGW* ) msys=true ;; #(
+ NONSTOP* ) nonstop=true ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD=$JAVA_HOME/jre/sh/java
+ else
+ JAVACMD=$JAVA_HOME/bin/java
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD=java
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
+ case $MAX_FD in #(
+ max*)
+ MAX_FD=$( ulimit -H -n ) ||
+ warn "Could not query maximum file descriptor limit"
+ esac
+ case $MAX_FD in #(
+ '' | soft) :;; #(
+ *)
+ ulimit -n "$MAX_FD" ||
+ warn "Could not set maximum file descriptor limit to $MAX_FD"
+ esac
+fi
+
+# Collect all arguments for the java command, stacking in reverse order:
+# * args from the command line
+# * the main class name
+# * -classpath
+# * -D...appname settings
+# * --module-path (only if needed)
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if "$cygwin" || "$msys" ; then
+ APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
+ CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
+
+ JAVACMD=$( cygpath --unix "$JAVACMD" )
+
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ for arg do
+ if
+ case $arg in #(
+ -*) false ;; # don't mess with options #(
+ /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
+ [ -e "$t" ] ;; #(
+ *) false ;;
+ esac
+ then
+ arg=$( cygpath --path --ignore --mixed "$arg" )
+ fi
+ # Roll the args list around exactly as many times as the number of
+ # args, so each arg winds up back in the position where it started, but
+ # possibly modified.
+ #
+ # NB: a `for` loop captures its iteration list before it begins, so
+ # changing the positional parameters here affects neither the number of
+ # iterations, nor the values presented in `arg`.
+ shift # remove old arg
+ set -- "$@" "$arg" # push replacement arg
+ done
+fi
+
+# Collect all arguments for the java command;
+# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
+# shell script including quotes and variable substitutions, so put them in
+# double quotes to make sure that they get re-expanded; and
+# * put everything else in single quotes, so that it's not re-expanded.
+
+set -- \
+ "-Dorg.gradle.appname=$APP_BASE_NAME" \
+ -classpath "$CLASSPATH" \
+ org.gradle.wrapper.GradleWrapperMain \
+ "$@"
+
+# Use "xargs" to parse quoted args.
+#
+# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
+#
+# In Bash we could simply go:
+#
+# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
+# set -- "${ARGS[@]}" "$@"
+#
+# but POSIX shell has neither arrays nor command substitution, so instead we
+# post-process each arg (as a line of input to sed) to backslash-escape any
+# character that might be a shell metacharacter, then use eval to reverse
+# that process (while maintaining the separation between arguments), and wrap
+# the whole thing up as a single "set" statement.
+#
+# This will of course break if any of these variables contains a newline or
+# an unmatched quote.
+#
+
+eval "set -- $(
+ printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
+ xargs -n1 |
+ sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
+ tr '\n' ' '
+ )" '"$@"'
+
+exec "$JAVACMD" "$@"
diff --git a/transformDirectory/gradlew.bat b/transformDirectory/gradlew.bat
new file mode 100644
index 00000000..107acd32
--- /dev/null
+++ b/transformDirectory/gradlew.bat
@@ -0,0 +1,89 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/recipes/transformDirectory/settings.gradle.kts b/transformDirectory/settings.gradle.kts
similarity index 84%
rename from recipes/transformDirectory/settings.gradle.kts
rename to transformDirectory/settings.gradle.kts
index 8a724739..d591f97c 100644
--- a/recipes/transformDirectory/settings.gradle.kts
+++ b/transformDirectory/settings.gradle.kts
@@ -19,16 +19,19 @@ rootProject.name = "transformDirectory"
pluginManagement {
includeBuild("build-logic")
repositories {
- $AGP_REPOSITORY
- $PLUGIN_REPOSITORIES
+maven { url = uri("") }
+ gradlePluginPortal()
+ google()
+ mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
- $AGP_REPOSITORY
- $DEPENDENCY_REPOSITORIES
+maven { url = uri("") }
+ google()
+ mavenCentral()
}
}
diff --git a/recipes/transformManifest/README.md b/transformManifest/README.md
similarity index 100%
rename from recipes/transformManifest/README.md
rename to transformManifest/README.md
diff --git a/recipes/transformManifest/app/build.gradle.kts b/transformManifest/app/build.gradle.kts
similarity index 91%
rename from recipes/transformManifest/app/build.gradle.kts
rename to transformManifest/app/build.gradle.kts
index 815579ac..ed124898 100644
--- a/recipes/transformManifest/app/build.gradle.kts
+++ b/transformManifest/app/build.gradle.kts
@@ -22,10 +22,10 @@ plugins {
android {
namespace = "com.example.android.recipes.transformManifest"
- compileSdk = $COMPILE_SDK
+ compileSdk = 35
defaultConfig {
- minSdk = $MINIMUM_SDK
- targetSdk = $COMPILE_SDK
+ minSdk = 21
+ targetSdk = 35
}
}
diff --git a/recipes/transformManifest/app/src/main/AndroidManifest.xml b/transformManifest/app/src/main/AndroidManifest.xml
similarity index 100%
rename from recipes/transformManifest/app/src/main/AndroidManifest.xml
rename to transformManifest/app/src/main/AndroidManifest.xml
diff --git a/recipes/transformManifest/build-logic/gradle.properties b/transformManifest/build-logic/gradle.properties
similarity index 100%
rename from recipes/transformManifest/build-logic/gradle.properties
rename to transformManifest/build-logic/gradle.properties
diff --git a/transformManifest/build-logic/gradle/libs.versions.toml b/transformManifest/build-logic/gradle/libs.versions.toml
new file mode 100644
index 00000000..1073e06f
--- /dev/null
+++ b/transformManifest/build-logic/gradle/libs.versions.toml
@@ -0,0 +1,9 @@
+[versions]
+androidGradlePlugin = "8.7.3"
+kotlin = "1.9.22"
+
+[libraries]
+android-gradlePlugin-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
+
+[plugins]
+kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
diff --git a/recipes/transformManifest/build-logic/plugins/build.gradle.kts b/transformManifest/build-logic/plugins/build.gradle.kts
similarity index 100%
rename from recipes/transformManifest/build-logic/plugins/build.gradle.kts
rename to transformManifest/build-logic/plugins/build.gradle.kts
diff --git a/recipes/transformManifest/build-logic/plugins/src/main/kotlin/CheckMergedManifestTask.kt b/transformManifest/build-logic/plugins/src/main/kotlin/CheckMergedManifestTask.kt
similarity index 100%
rename from recipes/transformManifest/build-logic/plugins/src/main/kotlin/CheckMergedManifestTask.kt
rename to transformManifest/build-logic/plugins/src/main/kotlin/CheckMergedManifestTask.kt
diff --git a/recipes/transformManifest/build-logic/plugins/src/main/kotlin/CustomPlugin.kt b/transformManifest/build-logic/plugins/src/main/kotlin/CustomPlugin.kt
similarity index 100%
rename from recipes/transformManifest/build-logic/plugins/src/main/kotlin/CustomPlugin.kt
rename to transformManifest/build-logic/plugins/src/main/kotlin/CustomPlugin.kt
diff --git a/recipes/transformManifest/build-logic/plugins/src/main/kotlin/GitVersionTask.kt b/transformManifest/build-logic/plugins/src/main/kotlin/GitVersionTask.kt
similarity index 100%
rename from recipes/transformManifest/build-logic/plugins/src/main/kotlin/GitVersionTask.kt
rename to transformManifest/build-logic/plugins/src/main/kotlin/GitVersionTask.kt
diff --git a/recipes/transformManifest/build-logic/plugins/src/main/kotlin/ManifestTransformerTask.kt b/transformManifest/build-logic/plugins/src/main/kotlin/ManifestTransformerTask.kt
similarity index 100%
rename from recipes/transformManifest/build-logic/plugins/src/main/kotlin/ManifestTransformerTask.kt
rename to transformManifest/build-logic/plugins/src/main/kotlin/ManifestTransformerTask.kt
diff --git a/transformManifest/build-logic/settings.gradle.kts b/transformManifest/build-logic/settings.gradle.kts
new file mode 100644
index 00000000..5b324fd2
--- /dev/null
+++ b/transformManifest/build-logic/settings.gradle.kts
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2022 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+rootProject.name = "build-logic"
+
+pluginManagement {
+ repositories {
+maven { url = uri("") }
+ gradlePluginPortal()
+ google()
+ mavenCentral()
+ }
+}
+
+dependencyResolutionManagement {
+ repositories {
+maven { url = uri("") }
+ google()
+ mavenCentral()
+ }
+}
+
+include(":plugins")
diff --git a/recipes/transformManifest/build.gradle.kts b/transformManifest/build.gradle.kts
similarity index 100%
rename from recipes/transformManifest/build.gradle.kts
rename to transformManifest/build.gradle.kts
diff --git a/recipes/transformManifest/gradle.properties b/transformManifest/gradle.properties
similarity index 100%
rename from recipes/transformManifest/gradle.properties
rename to transformManifest/gradle.properties
diff --git a/transformManifest/gradle/libs.versions.toml b/transformManifest/gradle/libs.versions.toml
new file mode 100644
index 00000000..714cf1ea
--- /dev/null
+++ b/transformManifest/gradle/libs.versions.toml
@@ -0,0 +1,9 @@
+[versions]
+androidGradlePlugin = "8.7.3"
+kotlin = "1.9.22"
+
+[plugins]
+android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
+kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
+
+
diff --git a/transformManifest/gradle/wrapper/gradle-wrapper.jar b/transformManifest/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 00000000..41d9927a
Binary files /dev/null and b/transformManifest/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/transformManifest/gradle/wrapper/gradle-wrapper.properties b/transformManifest/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 00000000..496d24c8
--- /dev/null
+++ b/transformManifest/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Wed Aug 10 10:22:34 IDT 2022
+distributionBase=GRADLE_USER_HOME
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
+distributionPath=wrapper/dists
+zipStorePath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
diff --git a/transformManifest/gradlew b/transformManifest/gradlew
new file mode 100755
index 00000000..1b6c7873
--- /dev/null
+++ b/transformManifest/gradlew
@@ -0,0 +1,234 @@
+#!/bin/sh
+
+#
+# Copyright © 2015-2021 the original authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+##############################################################################
+#
+# Gradle start up script for POSIX generated by Gradle.
+#
+# Important for running:
+#
+# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
+# noncompliant, but you have some other compliant shell such as ksh or
+# bash, then to run this script, type that shell name before the whole
+# command line, like:
+#
+# ksh Gradle
+#
+# Busybox and similar reduced shells will NOT work, because this script
+# requires all of these POSIX shell features:
+# * functions;
+# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
+# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
+# * compound commands having a testable exit status, especially «case»;
+# * various built-in commands including «command», «set», and «ulimit».
+#
+# Important for patching:
+#
+# (2) This script targets any POSIX shell, so it avoids extensions provided
+# by Bash, Ksh, etc; in particular arrays are avoided.
+#
+# The "traditional" practice of packing multiple parameters into a
+# space-separated string is a well documented source of bugs and security
+# problems, so this is (mostly) avoided, by progressively accumulating
+# options in "$@", and eventually passing that to Java.
+#
+# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
+# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
+# see the in-line comments for details.
+#
+# There are tweaks for specific operating systems such as AIX, CygWin,
+# Darwin, MinGW, and NonStop.
+#
+# (3) This script is generated from the Groovy template
+# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
+# within the Gradle project.
+#
+# You can find Gradle at https://github.com/gradle/gradle/.
+#
+##############################################################################
+
+# Attempt to set APP_HOME
+
+# Resolve links: $0 may be a link
+app_path=$0
+
+# Need this for daisy-chained symlinks.
+while
+ APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
+ [ -h "$app_path" ]
+do
+ ls=$( ls -ld "$app_path" )
+ link=${ls#*' -> '}
+ case $link in #(
+ /*) app_path=$link ;; #(
+ *) app_path=$APP_HOME$link ;;
+ esac
+done
+
+APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
+
+APP_NAME="Gradle"
+APP_BASE_NAME=${0##*/}
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD=maximum
+
+warn () {
+ echo "$*"
+} >&2
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+} >&2
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "$( uname )" in #(
+ CYGWIN* ) cygwin=true ;; #(
+ Darwin* ) darwin=true ;; #(
+ MSYS* | MINGW* ) msys=true ;; #(
+ NONSTOP* ) nonstop=true ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD=$JAVA_HOME/jre/sh/java
+ else
+ JAVACMD=$JAVA_HOME/bin/java
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD=java
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
+ case $MAX_FD in #(
+ max*)
+ MAX_FD=$( ulimit -H -n ) ||
+ warn "Could not query maximum file descriptor limit"
+ esac
+ case $MAX_FD in #(
+ '' | soft) :;; #(
+ *)
+ ulimit -n "$MAX_FD" ||
+ warn "Could not set maximum file descriptor limit to $MAX_FD"
+ esac
+fi
+
+# Collect all arguments for the java command, stacking in reverse order:
+# * args from the command line
+# * the main class name
+# * -classpath
+# * -D...appname settings
+# * --module-path (only if needed)
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if "$cygwin" || "$msys" ; then
+ APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
+ CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
+
+ JAVACMD=$( cygpath --unix "$JAVACMD" )
+
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ for arg do
+ if
+ case $arg in #(
+ -*) false ;; # don't mess with options #(
+ /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
+ [ -e "$t" ] ;; #(
+ *) false ;;
+ esac
+ then
+ arg=$( cygpath --path --ignore --mixed "$arg" )
+ fi
+ # Roll the args list around exactly as many times as the number of
+ # args, so each arg winds up back in the position where it started, but
+ # possibly modified.
+ #
+ # NB: a `for` loop captures its iteration list before it begins, so
+ # changing the positional parameters here affects neither the number of
+ # iterations, nor the values presented in `arg`.
+ shift # remove old arg
+ set -- "$@" "$arg" # push replacement arg
+ done
+fi
+
+# Collect all arguments for the java command;
+# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
+# shell script including quotes and variable substitutions, so put them in
+# double quotes to make sure that they get re-expanded; and
+# * put everything else in single quotes, so that it's not re-expanded.
+
+set -- \
+ "-Dorg.gradle.appname=$APP_BASE_NAME" \
+ -classpath "$CLASSPATH" \
+ org.gradle.wrapper.GradleWrapperMain \
+ "$@"
+
+# Use "xargs" to parse quoted args.
+#
+# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
+#
+# In Bash we could simply go:
+#
+# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
+# set -- "${ARGS[@]}" "$@"
+#
+# but POSIX shell has neither arrays nor command substitution, so instead we
+# post-process each arg (as a line of input to sed) to backslash-escape any
+# character that might be a shell metacharacter, then use eval to reverse
+# that process (while maintaining the separation between arguments), and wrap
+# the whole thing up as a single "set" statement.
+#
+# This will of course break if any of these variables contains a newline or
+# an unmatched quote.
+#
+
+eval "set -- $(
+ printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
+ xargs -n1 |
+ sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
+ tr '\n' ' '
+ )" '"$@"'
+
+exec "$JAVACMD" "$@"
diff --git a/transformManifest/gradlew.bat b/transformManifest/gradlew.bat
new file mode 100644
index 00000000..107acd32
--- /dev/null
+++ b/transformManifest/gradlew.bat
@@ -0,0 +1,89 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/recipes/transformManifest/settings.gradle.kts b/transformManifest/settings.gradle.kts
similarity index 84%
rename from recipes/transformManifest/settings.gradle.kts
rename to transformManifest/settings.gradle.kts
index ae307054..5fc28420 100644
--- a/recipes/transformManifest/settings.gradle.kts
+++ b/transformManifest/settings.gradle.kts
@@ -19,16 +19,19 @@ rootProject.name = "transformManifest"
pluginManagement {
includeBuild("build-logic")
repositories {
- $AGP_REPOSITORY
- $PLUGIN_REPOSITORIES
+maven { url = uri("") }
+ gradlePluginPortal()
+ google()
+ mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
- $AGP_REPOSITORY
- $DEPENDENCY_REPOSITORIES
+maven { url = uri("") }
+ google()
+ mavenCentral()
}
}
diff --git a/recipes/transformMultiple/README.md b/transformMultiple/README.md
similarity index 100%
rename from recipes/transformMultiple/README.md
rename to transformMultiple/README.md
diff --git a/recipes/transformMultiple/app/build.gradle.kts b/transformMultiple/app/build.gradle.kts
similarity index 90%
rename from recipes/transformMultiple/app/build.gradle.kts
rename to transformMultiple/app/build.gradle.kts
index 3ff75cb2..adf6e5b2 100644
--- a/recipes/transformMultiple/app/build.gradle.kts
+++ b/transformMultiple/app/build.gradle.kts
@@ -22,10 +22,10 @@ plugins {
android {
namespace = "com.example.android.recipes.transformMultiple"
- compileSdk = $COMPILE_SDK
+ compileSdk = 35
defaultConfig {
- minSdk = $MINIMUM_SDK
- targetSdk = $COMPILE_SDK
+ minSdk = 21
+ targetSdk = 35
}
}
@@ -33,4 +33,4 @@ java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
-}
\ No newline at end of file
+}
diff --git a/recipes/transformMultiple/app/nativeDebugMetadataDir0/testFile0.dbg b/transformMultiple/app/nativeDebugMetadataDir0/testFile0.dbg
similarity index 100%
rename from recipes/transformMultiple/app/nativeDebugMetadataDir0/testFile0.dbg
rename to transformMultiple/app/nativeDebugMetadataDir0/testFile0.dbg
diff --git a/recipes/transformMultiple/app/nativeDebugMetadataDir1/testFile1.dbg b/transformMultiple/app/nativeDebugMetadataDir1/testFile1.dbg
similarity index 100%
rename from recipes/transformMultiple/app/nativeDebugMetadataDir1/testFile1.dbg
rename to transformMultiple/app/nativeDebugMetadataDir1/testFile1.dbg
diff --git a/recipes/transformMultiple/app/src/main/AndroidManifest.xml b/transformMultiple/app/src/main/AndroidManifest.xml
similarity index 100%
rename from recipes/transformMultiple/app/src/main/AndroidManifest.xml
rename to transformMultiple/app/src/main/AndroidManifest.xml
diff --git a/recipes/transformMultiple/build-logic/gradle.properties b/transformMultiple/build-logic/gradle.properties
similarity index 100%
rename from recipes/transformMultiple/build-logic/gradle.properties
rename to transformMultiple/build-logic/gradle.properties
diff --git a/transformMultiple/build-logic/gradle/libs.versions.toml b/transformMultiple/build-logic/gradle/libs.versions.toml
new file mode 100644
index 00000000..1073e06f
--- /dev/null
+++ b/transformMultiple/build-logic/gradle/libs.versions.toml
@@ -0,0 +1,9 @@
+[versions]
+androidGradlePlugin = "8.7.3"
+kotlin = "1.9.22"
+
+[libraries]
+android-gradlePlugin-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
+
+[plugins]
+kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
diff --git a/recipes/transformMultiple/build-logic/plugins/build.gradle.kts b/transformMultiple/build-logic/plugins/build.gradle.kts
similarity index 100%
rename from recipes/transformMultiple/build-logic/plugins/build.gradle.kts
rename to transformMultiple/build-logic/plugins/build.gradle.kts
diff --git a/recipes/transformMultiple/build-logic/plugins/src/main/kotlin/CheckNativeDebugMetadataTask.kt b/transformMultiple/build-logic/plugins/src/main/kotlin/CheckNativeDebugMetadataTask.kt
similarity index 100%
rename from recipes/transformMultiple/build-logic/plugins/src/main/kotlin/CheckNativeDebugMetadataTask.kt
rename to transformMultiple/build-logic/plugins/src/main/kotlin/CheckNativeDebugMetadataTask.kt
diff --git a/recipes/transformMultiple/build-logic/plugins/src/main/kotlin/CustomPlugin.kt b/transformMultiple/build-logic/plugins/src/main/kotlin/CustomPlugin.kt
similarity index 100%
rename from recipes/transformMultiple/build-logic/plugins/src/main/kotlin/CustomPlugin.kt
rename to transformMultiple/build-logic/plugins/src/main/kotlin/CustomPlugin.kt
diff --git a/recipes/transformMultiple/build-logic/plugins/src/main/kotlin/TransformNativeDebugMetadataTask.kt b/transformMultiple/build-logic/plugins/src/main/kotlin/TransformNativeDebugMetadataTask.kt
similarity index 100%
rename from recipes/transformMultiple/build-logic/plugins/src/main/kotlin/TransformNativeDebugMetadataTask.kt
rename to transformMultiple/build-logic/plugins/src/main/kotlin/TransformNativeDebugMetadataTask.kt
diff --git a/transformMultiple/build-logic/settings.gradle.kts b/transformMultiple/build-logic/settings.gradle.kts
new file mode 100644
index 00000000..03be6a28
--- /dev/null
+++ b/transformMultiple/build-logic/settings.gradle.kts
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2024 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+rootProject.name = "build-logic"
+
+pluginManagement {
+ repositories {
+maven { url = uri("") }
+ gradlePluginPortal()
+ google()
+ mavenCentral()
+ }
+}
+
+dependencyResolutionManagement {
+ repositories {
+maven { url = uri("") }
+ google()
+ mavenCentral()
+ }
+}
+
+include(":plugins")
diff --git a/recipes/transformMultiple/build.gradle.kts b/transformMultiple/build.gradle.kts
similarity index 100%
rename from recipes/transformMultiple/build.gradle.kts
rename to transformMultiple/build.gradle.kts
diff --git a/recipes/transformMultiple/gradle.properties b/transformMultiple/gradle.properties
similarity index 100%
rename from recipes/transformMultiple/gradle.properties
rename to transformMultiple/gradle.properties
diff --git a/recipes/transformDirectory/gradle/libs.versions.toml b/transformMultiple/gradle/libs.versions.toml
similarity index 76%
rename from recipes/transformDirectory/gradle/libs.versions.toml
rename to transformMultiple/gradle/libs.versions.toml
index 4b265f77..49596d12 100644
--- a/recipes/transformDirectory/gradle/libs.versions.toml
+++ b/transformMultiple/gradle/libs.versions.toml
@@ -1,6 +1,6 @@
[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
+androidGradlePlugin = "8.7.3"
+kotlin = "1.9.22"
[plugins]
android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
diff --git a/transformMultiple/gradle/wrapper/gradle-wrapper.jar b/transformMultiple/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 00000000..41d9927a
Binary files /dev/null and b/transformMultiple/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/transformMultiple/gradle/wrapper/gradle-wrapper.properties b/transformMultiple/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 00000000..496d24c8
--- /dev/null
+++ b/transformMultiple/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Wed Aug 10 10:22:34 IDT 2022
+distributionBase=GRADLE_USER_HOME
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
+distributionPath=wrapper/dists
+zipStorePath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
diff --git a/transformMultiple/gradlew b/transformMultiple/gradlew
new file mode 100755
index 00000000..1b6c7873
--- /dev/null
+++ b/transformMultiple/gradlew
@@ -0,0 +1,234 @@
+#!/bin/sh
+
+#
+# Copyright © 2015-2021 the original authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+##############################################################################
+#
+# Gradle start up script for POSIX generated by Gradle.
+#
+# Important for running:
+#
+# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
+# noncompliant, but you have some other compliant shell such as ksh or
+# bash, then to run this script, type that shell name before the whole
+# command line, like:
+#
+# ksh Gradle
+#
+# Busybox and similar reduced shells will NOT work, because this script
+# requires all of these POSIX shell features:
+# * functions;
+# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
+# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
+# * compound commands having a testable exit status, especially «case»;
+# * various built-in commands including «command», «set», and «ulimit».
+#
+# Important for patching:
+#
+# (2) This script targets any POSIX shell, so it avoids extensions provided
+# by Bash, Ksh, etc; in particular arrays are avoided.
+#
+# The "traditional" practice of packing multiple parameters into a
+# space-separated string is a well documented source of bugs and security
+# problems, so this is (mostly) avoided, by progressively accumulating
+# options in "$@", and eventually passing that to Java.
+#
+# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
+# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
+# see the in-line comments for details.
+#
+# There are tweaks for specific operating systems such as AIX, CygWin,
+# Darwin, MinGW, and NonStop.
+#
+# (3) This script is generated from the Groovy template
+# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
+# within the Gradle project.
+#
+# You can find Gradle at https://github.com/gradle/gradle/.
+#
+##############################################################################
+
+# Attempt to set APP_HOME
+
+# Resolve links: $0 may be a link
+app_path=$0
+
+# Need this for daisy-chained symlinks.
+while
+ APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
+ [ -h "$app_path" ]
+do
+ ls=$( ls -ld "$app_path" )
+ link=${ls#*' -> '}
+ case $link in #(
+ /*) app_path=$link ;; #(
+ *) app_path=$APP_HOME$link ;;
+ esac
+done
+
+APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
+
+APP_NAME="Gradle"
+APP_BASE_NAME=${0##*/}
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD=maximum
+
+warn () {
+ echo "$*"
+} >&2
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+} >&2
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "$( uname )" in #(
+ CYGWIN* ) cygwin=true ;; #(
+ Darwin* ) darwin=true ;; #(
+ MSYS* | MINGW* ) msys=true ;; #(
+ NONSTOP* ) nonstop=true ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD=$JAVA_HOME/jre/sh/java
+ else
+ JAVACMD=$JAVA_HOME/bin/java
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD=java
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
+ case $MAX_FD in #(
+ max*)
+ MAX_FD=$( ulimit -H -n ) ||
+ warn "Could not query maximum file descriptor limit"
+ esac
+ case $MAX_FD in #(
+ '' | soft) :;; #(
+ *)
+ ulimit -n "$MAX_FD" ||
+ warn "Could not set maximum file descriptor limit to $MAX_FD"
+ esac
+fi
+
+# Collect all arguments for the java command, stacking in reverse order:
+# * args from the command line
+# * the main class name
+# * -classpath
+# * -D...appname settings
+# * --module-path (only if needed)
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if "$cygwin" || "$msys" ; then
+ APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
+ CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
+
+ JAVACMD=$( cygpath --unix "$JAVACMD" )
+
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ for arg do
+ if
+ case $arg in #(
+ -*) false ;; # don't mess with options #(
+ /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
+ [ -e "$t" ] ;; #(
+ *) false ;;
+ esac
+ then
+ arg=$( cygpath --path --ignore --mixed "$arg" )
+ fi
+ # Roll the args list around exactly as many times as the number of
+ # args, so each arg winds up back in the position where it started, but
+ # possibly modified.
+ #
+ # NB: a `for` loop captures its iteration list before it begins, so
+ # changing the positional parameters here affects neither the number of
+ # iterations, nor the values presented in `arg`.
+ shift # remove old arg
+ set -- "$@" "$arg" # push replacement arg
+ done
+fi
+
+# Collect all arguments for the java command;
+# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
+# shell script including quotes and variable substitutions, so put them in
+# double quotes to make sure that they get re-expanded; and
+# * put everything else in single quotes, so that it's not re-expanded.
+
+set -- \
+ "-Dorg.gradle.appname=$APP_BASE_NAME" \
+ -classpath "$CLASSPATH" \
+ org.gradle.wrapper.GradleWrapperMain \
+ "$@"
+
+# Use "xargs" to parse quoted args.
+#
+# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
+#
+# In Bash we could simply go:
+#
+# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
+# set -- "${ARGS[@]}" "$@"
+#
+# but POSIX shell has neither arrays nor command substitution, so instead we
+# post-process each arg (as a line of input to sed) to backslash-escape any
+# character that might be a shell metacharacter, then use eval to reverse
+# that process (while maintaining the separation between arguments), and wrap
+# the whole thing up as a single "set" statement.
+#
+# This will of course break if any of these variables contains a newline or
+# an unmatched quote.
+#
+
+eval "set -- $(
+ printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
+ xargs -n1 |
+ sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
+ tr '\n' ' '
+ )" '"$@"'
+
+exec "$JAVACMD" "$@"
diff --git a/transformMultiple/gradlew.bat b/transformMultiple/gradlew.bat
new file mode 100644
index 00000000..107acd32
--- /dev/null
+++ b/transformMultiple/gradlew.bat
@@ -0,0 +1,89 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/recipes/transformMultiple/settings.gradle.kts b/transformMultiple/settings.gradle.kts
similarity index 84%
rename from recipes/transformMultiple/settings.gradle.kts
rename to transformMultiple/settings.gradle.kts
index c2564681..bc8bfedf 100644
--- a/recipes/transformMultiple/settings.gradle.kts
+++ b/transformMultiple/settings.gradle.kts
@@ -19,16 +19,19 @@ rootProject.name = "transformMultiple"
pluginManagement {
includeBuild("build-logic")
repositories {
- $AGP_REPOSITORY
- $PLUGIN_REPOSITORIES
+maven { url = uri("") }
+ gradlePluginPortal()
+ google()
+ mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
- $AGP_REPOSITORY
- $DEPENDENCY_REPOSITORIES
+maven { url = uri("") }
+ google()
+ mavenCentral()
}
}
diff --git a/recipes/variantDependencySubstitutionTest/README.md b/variantDependencySubstitutionTest/README.md
similarity index 100%
rename from recipes/variantDependencySubstitutionTest/README.md
rename to variantDependencySubstitutionTest/README.md
diff --git a/recipes/variantDependencySubstitutionTest/app/build.gradle.kts b/variantDependencySubstitutionTest/app/build.gradle.kts
similarity index 96%
rename from recipes/variantDependencySubstitutionTest/app/build.gradle.kts
rename to variantDependencySubstitutionTest/app/build.gradle.kts
index f466d0e9..825049e1 100644
--- a/recipes/variantDependencySubstitutionTest/app/build.gradle.kts
+++ b/variantDependencySubstitutionTest/app/build.gradle.kts
@@ -21,10 +21,10 @@ plugins {
android {
namespace = "com.example.android.recipes.variantDependencySubstitutionTest.app"
- compileSdk = $COMPILE_SDK
+ compileSdk = 35
defaultConfig {
- minSdk = $MINIMUM_SDK
- targetSdk = $COMPILE_SDK
+ minSdk = 21
+ targetSdk = 35
}
}
diff --git a/recipes/variantDependencySubstitutionTest/app/src/main/AndroidManifest.xml b/variantDependencySubstitutionTest/app/src/main/AndroidManifest.xml
similarity index 100%
rename from recipes/variantDependencySubstitutionTest/app/src/main/AndroidManifest.xml
rename to variantDependencySubstitutionTest/app/src/main/AndroidManifest.xml
diff --git a/recipes/variantDependencySubstitutionTest/build.gradle.kts b/variantDependencySubstitutionTest/build.gradle.kts
similarity index 100%
rename from recipes/variantDependencySubstitutionTest/build.gradle.kts
rename to variantDependencySubstitutionTest/build.gradle.kts
diff --git a/recipes/variantDependencySubstitutionTest/gradle.properties b/variantDependencySubstitutionTest/gradle.properties
similarity index 100%
rename from recipes/variantDependencySubstitutionTest/gradle.properties
rename to variantDependencySubstitutionTest/gradle.properties
diff --git a/recipes/variantDependencySubstitutionTest/gradle/libs.versions.toml b/variantDependencySubstitutionTest/gradle/libs.versions.toml
similarity index 82%
rename from recipes/variantDependencySubstitutionTest/gradle/libs.versions.toml
rename to variantDependencySubstitutionTest/gradle/libs.versions.toml
index fc107913..ba795529 100644
--- a/recipes/variantDependencySubstitutionTest/gradle/libs.versions.toml
+++ b/variantDependencySubstitutionTest/gradle/libs.versions.toml
@@ -1,6 +1,6 @@
[versions]
-androidGradlePlugin = $AGP_VERSION
-kotlin = $KOTLIN_VERSION
+androidGradlePlugin = "8.7.3"
+kotlin = "1.9.22"
[plugins]
android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
diff --git a/variantDependencySubstitutionTest/gradle/wrapper/gradle-wrapper.jar b/variantDependencySubstitutionTest/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 00000000..41d9927a
Binary files /dev/null and b/variantDependencySubstitutionTest/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/variantDependencySubstitutionTest/gradle/wrapper/gradle-wrapper.properties b/variantDependencySubstitutionTest/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 00000000..496d24c8
--- /dev/null
+++ b/variantDependencySubstitutionTest/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Wed Aug 10 10:22:34 IDT 2022
+distributionBase=GRADLE_USER_HOME
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
+distributionPath=wrapper/dists
+zipStorePath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
diff --git a/variantDependencySubstitutionTest/gradlew b/variantDependencySubstitutionTest/gradlew
new file mode 100755
index 00000000..1b6c7873
--- /dev/null
+++ b/variantDependencySubstitutionTest/gradlew
@@ -0,0 +1,234 @@
+#!/bin/sh
+
+#
+# Copyright © 2015-2021 the original authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+##############################################################################
+#
+# Gradle start up script for POSIX generated by Gradle.
+#
+# Important for running:
+#
+# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
+# noncompliant, but you have some other compliant shell such as ksh or
+# bash, then to run this script, type that shell name before the whole
+# command line, like:
+#
+# ksh Gradle
+#
+# Busybox and similar reduced shells will NOT work, because this script
+# requires all of these POSIX shell features:
+# * functions;
+# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
+# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
+# * compound commands having a testable exit status, especially «case»;
+# * various built-in commands including «command», «set», and «ulimit».
+#
+# Important for patching:
+#
+# (2) This script targets any POSIX shell, so it avoids extensions provided
+# by Bash, Ksh, etc; in particular arrays are avoided.
+#
+# The "traditional" practice of packing multiple parameters into a
+# space-separated string is a well documented source of bugs and security
+# problems, so this is (mostly) avoided, by progressively accumulating
+# options in "$@", and eventually passing that to Java.
+#
+# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
+# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
+# see the in-line comments for details.
+#
+# There are tweaks for specific operating systems such as AIX, CygWin,
+# Darwin, MinGW, and NonStop.
+#
+# (3) This script is generated from the Groovy template
+# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
+# within the Gradle project.
+#
+# You can find Gradle at https://github.com/gradle/gradle/.
+#
+##############################################################################
+
+# Attempt to set APP_HOME
+
+# Resolve links: $0 may be a link
+app_path=$0
+
+# Need this for daisy-chained symlinks.
+while
+ APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
+ [ -h "$app_path" ]
+do
+ ls=$( ls -ld "$app_path" )
+ link=${ls#*' -> '}
+ case $link in #(
+ /*) app_path=$link ;; #(
+ *) app_path=$APP_HOME$link ;;
+ esac
+done
+
+APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
+
+APP_NAME="Gradle"
+APP_BASE_NAME=${0##*/}
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD=maximum
+
+warn () {
+ echo "$*"
+} >&2
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+} >&2
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "$( uname )" in #(
+ CYGWIN* ) cygwin=true ;; #(
+ Darwin* ) darwin=true ;; #(
+ MSYS* | MINGW* ) msys=true ;; #(
+ NONSTOP* ) nonstop=true ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD=$JAVA_HOME/jre/sh/java
+ else
+ JAVACMD=$JAVA_HOME/bin/java
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD=java
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
+ case $MAX_FD in #(
+ max*)
+ MAX_FD=$( ulimit -H -n ) ||
+ warn "Could not query maximum file descriptor limit"
+ esac
+ case $MAX_FD in #(
+ '' | soft) :;; #(
+ *)
+ ulimit -n "$MAX_FD" ||
+ warn "Could not set maximum file descriptor limit to $MAX_FD"
+ esac
+fi
+
+# Collect all arguments for the java command, stacking in reverse order:
+# * args from the command line
+# * the main class name
+# * -classpath
+# * -D...appname settings
+# * --module-path (only if needed)
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if "$cygwin" || "$msys" ; then
+ APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
+ CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
+
+ JAVACMD=$( cygpath --unix "$JAVACMD" )
+
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ for arg do
+ if
+ case $arg in #(
+ -*) false ;; # don't mess with options #(
+ /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
+ [ -e "$t" ] ;; #(
+ *) false ;;
+ esac
+ then
+ arg=$( cygpath --path --ignore --mixed "$arg" )
+ fi
+ # Roll the args list around exactly as many times as the number of
+ # args, so each arg winds up back in the position where it started, but
+ # possibly modified.
+ #
+ # NB: a `for` loop captures its iteration list before it begins, so
+ # changing the positional parameters here affects neither the number of
+ # iterations, nor the values presented in `arg`.
+ shift # remove old arg
+ set -- "$@" "$arg" # push replacement arg
+ done
+fi
+
+# Collect all arguments for the java command;
+# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
+# shell script including quotes and variable substitutions, so put them in
+# double quotes to make sure that they get re-expanded; and
+# * put everything else in single quotes, so that it's not re-expanded.
+
+set -- \
+ "-Dorg.gradle.appname=$APP_BASE_NAME" \
+ -classpath "$CLASSPATH" \
+ org.gradle.wrapper.GradleWrapperMain \
+ "$@"
+
+# Use "xargs" to parse quoted args.
+#
+# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
+#
+# In Bash we could simply go:
+#
+# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
+# set -- "${ARGS[@]}" "$@"
+#
+# but POSIX shell has neither arrays nor command substitution, so instead we
+# post-process each arg (as a line of input to sed) to backslash-escape any
+# character that might be a shell metacharacter, then use eval to reverse
+# that process (while maintaining the separation between arguments), and wrap
+# the whole thing up as a single "set" statement.
+#
+# This will of course break if any of these variables contains a newline or
+# an unmatched quote.
+#
+
+eval "set -- $(
+ printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
+ xargs -n1 |
+ sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
+ tr '\n' ' '
+ )" '"$@"'
+
+exec "$JAVACMD" "$@"
diff --git a/variantDependencySubstitutionTest/gradlew.bat b/variantDependencySubstitutionTest/gradlew.bat
new file mode 100644
index 00000000..107acd32
--- /dev/null
+++ b/variantDependencySubstitutionTest/gradlew.bat
@@ -0,0 +1,89 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/recipes/variantDependencySubstitutionTest/lib1/build.gradle.kts b/variantDependencySubstitutionTest/lib1/build.gradle.kts
similarity index 92%
rename from recipes/variantDependencySubstitutionTest/lib1/build.gradle.kts
rename to variantDependencySubstitutionTest/lib1/build.gradle.kts
index 7bb426a4..14fd74ce 100644
--- a/recipes/variantDependencySubstitutionTest/lib1/build.gradle.kts
+++ b/variantDependencySubstitutionTest/lib1/build.gradle.kts
@@ -21,9 +21,9 @@ plugins {
android {
namespace = "com.example.android.recipes.variantDependencySubstitutionTest.lib1"
- compileSdkVersion($COMPILE_SDK)
+ compileSdkVersion(35)
defaultConfig {
- minSdkVersion($MINIMUM_SDK)
+ minSdkVersion(21)
}
}
diff --git a/recipes/variantDependencySubstitutionTest/lib1/src/main/java/SomeLib1Source.kt b/variantDependencySubstitutionTest/lib1/src/main/java/SomeLib1Source.kt
similarity index 100%
rename from recipes/variantDependencySubstitutionTest/lib1/src/main/java/SomeLib1Source.kt
rename to variantDependencySubstitutionTest/lib1/src/main/java/SomeLib1Source.kt
diff --git a/recipes/variantDependencySubstitutionTest/lib1Sub/build.gradle.kts b/variantDependencySubstitutionTest/lib1Sub/build.gradle.kts
similarity index 93%
rename from recipes/variantDependencySubstitutionTest/lib1Sub/build.gradle.kts
rename to variantDependencySubstitutionTest/lib1Sub/build.gradle.kts
index bad42dac..36fbf0e0 100644
--- a/recipes/variantDependencySubstitutionTest/lib1Sub/build.gradle.kts
+++ b/variantDependencySubstitutionTest/lib1Sub/build.gradle.kts
@@ -21,9 +21,9 @@ plugins {
android {
namespace = "com.example.android.recipes.variantDependencySubstitutionTest.lib1Suv"
- compileSdk = $COMPILE_SDK
+ compileSdk = 35
defaultConfig {
- minSdk = $MINIMUM_SDK
+ minSdk = 21
}
}
diff --git a/recipes/variantDependencySubstitutionTest/lib1Sub/src/main/java/SomeLib1SubSource.kt b/variantDependencySubstitutionTest/lib1Sub/src/main/java/SomeLib1SubSource.kt
similarity index 100%
rename from recipes/variantDependencySubstitutionTest/lib1Sub/src/main/java/SomeLib1SubSource.kt
rename to variantDependencySubstitutionTest/lib1Sub/src/main/java/SomeLib1SubSource.kt
diff --git a/recipes/variantDependencySubstitutionTest/lib2/build.gradle.kts b/variantDependencySubstitutionTest/lib2/build.gradle.kts
similarity index 94%
rename from recipes/variantDependencySubstitutionTest/lib2/build.gradle.kts
rename to variantDependencySubstitutionTest/lib2/build.gradle.kts
index 02c7ce59..ae9cefaf 100644
--- a/recipes/variantDependencySubstitutionTest/lib2/build.gradle.kts
+++ b/variantDependencySubstitutionTest/lib2/build.gradle.kts
@@ -21,9 +21,9 @@ plugins {
android {
namespace = "com.example.android.recipes.variantDependencySubstitutionTest.lib2Sub"
- compileSdk = $COMPILE_SDK
+ compileSdk = 35
defaultConfig {
- minSdk = $MINIMUM_SDK
+ minSdk = 21
}
}
diff --git a/recipes/variantDependencySubstitutionTest/lib2/src/main/java/SomeLib2Source.kt b/variantDependencySubstitutionTest/lib2/src/main/java/SomeLib2Source.kt
similarity index 100%
rename from recipes/variantDependencySubstitutionTest/lib2/src/main/java/SomeLib2Source.kt
rename to variantDependencySubstitutionTest/lib2/src/main/java/SomeLib2Source.kt
diff --git a/recipes/variantDependencySubstitutionTest/lib2Sub/build.gradle.kts b/variantDependencySubstitutionTest/lib2Sub/build.gradle.kts
similarity index 93%
rename from recipes/variantDependencySubstitutionTest/lib2Sub/build.gradle.kts
rename to variantDependencySubstitutionTest/lib2Sub/build.gradle.kts
index f80ed6fb..e2741cc8 100644
--- a/recipes/variantDependencySubstitutionTest/lib2Sub/build.gradle.kts
+++ b/variantDependencySubstitutionTest/lib2Sub/build.gradle.kts
@@ -21,9 +21,9 @@ plugins {
android {
namespace = "com.example.android.recipes.variantDependencySubstitutionTest.lib2Sub"
- compileSdk = $COMPILE_SDK
+ compileSdk = 35
defaultConfig {
- minSdk = $MINIMUM_SDK
+ minSdk = 21
}
}
diff --git a/recipes/variantDependencySubstitutionTest/lib2Sub/src/main/java/SomeLib2SubSource.kt b/variantDependencySubstitutionTest/lib2Sub/src/main/java/SomeLib2SubSource.kt
similarity index 100%
rename from recipes/variantDependencySubstitutionTest/lib2Sub/src/main/java/SomeLib2SubSource.kt
rename to variantDependencySubstitutionTest/lib2Sub/src/main/java/SomeLib2SubSource.kt
diff --git a/recipes/variantDependencySubstitutionTest/settings.gradle.kts b/variantDependencySubstitutionTest/settings.gradle.kts
similarity index 86%
rename from recipes/variantDependencySubstitutionTest/settings.gradle.kts
rename to variantDependencySubstitutionTest/settings.gradle.kts
index d4946c51..669b4217 100644
--- a/recipes/variantDependencySubstitutionTest/settings.gradle.kts
+++ b/variantDependencySubstitutionTest/settings.gradle.kts
@@ -18,16 +18,19 @@ rootProject.name = "variantDependencySubstitutionTest"
pluginManagement {
repositories {
-$AGP_REPOSITORY
-$PLUGIN_REPOSITORIES
+maven { url = uri("") }
+ gradlePluginPortal()
+ google()
+ mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
-$AGP_REPOSITORY
-$DEPENDENCY_REPOSITORIES
+maven { url = uri("") }
+ google()
+ mavenCentral()
}
}
diff --git a/recipes/variantDependencySubstitutionTest/testLib/build.gradle.kts b/variantDependencySubstitutionTest/testLib/build.gradle.kts
similarity index 93%
rename from recipes/variantDependencySubstitutionTest/testLib/build.gradle.kts
rename to variantDependencySubstitutionTest/testLib/build.gradle.kts
index 492cf1e6..0f5dfb8b 100644
--- a/recipes/variantDependencySubstitutionTest/testLib/build.gradle.kts
+++ b/variantDependencySubstitutionTest/testLib/build.gradle.kts
@@ -21,9 +21,9 @@ plugins {
android {
namespace = "com.example.android.recipes.variantDependencySubstitutionTest.testLib"
- compileSdk = $COMPILE_SDK
+ compileSdk = 35
defaultConfig {
- minSdk = $MINIMUM_SDK
+ minSdk = 21
}
}
diff --git a/recipes/variantDependencySubstitutionTest/testLib/src/main/java/SomeTestLibSource.kt b/variantDependencySubstitutionTest/testLib/src/main/java/SomeTestLibSource.kt
similarity index 100%
rename from recipes/variantDependencySubstitutionTest/testLib/src/main/java/SomeTestLibSource.kt
rename to variantDependencySubstitutionTest/testLib/src/main/java/SomeTestLibSource.kt
diff --git a/recipes/variantDependencySubstitutionTest/testLibSub/build.gradle.kts b/variantDependencySubstitutionTest/testLibSub/build.gradle.kts
similarity index 94%
rename from recipes/variantDependencySubstitutionTest/testLibSub/build.gradle.kts
rename to variantDependencySubstitutionTest/testLibSub/build.gradle.kts
index 430cadfa..884135c5 100644
--- a/recipes/variantDependencySubstitutionTest/testLibSub/build.gradle.kts
+++ b/variantDependencySubstitutionTest/testLibSub/build.gradle.kts
@@ -21,9 +21,9 @@ plugins {
android {
namespace = "com.example.android.recipes.variantDependencySubstitutionTest.testLibSub"
- compileSdk = $COMPILE_SDK
+ compileSdk = 35
defaultConfig {
- minSdk = $MINIMUM_SDK
+ minSdk = 21
}
}
diff --git a/recipes/variantDependencySubstitutionTest/testLibSub/src/main/java/SomeTestLibSubSource.kt b/variantDependencySubstitutionTest/testLibSub/src/main/java/SomeTestLibSubSource.kt
similarity index 100%
rename from recipes/variantDependencySubstitutionTest/testLibSub/src/main/java/SomeTestLibSubSource.kt
rename to variantDependencySubstitutionTest/testLibSub/src/main/java/SomeTestLibSubSource.kt
diff --git a/recipes/variantOutput/README.md b/variantOutput/README.md
similarity index 100%
rename from recipes/variantOutput/README.md
rename to variantOutput/README.md
diff --git a/recipes/variantOutput/app/build.gradle.kts b/variantOutput/app/build.gradle.kts
similarity index 92%
rename from recipes/variantOutput/app/build.gradle.kts
rename to variantOutput/app/build.gradle.kts
index 11906b64..9ac9de28 100644
--- a/recipes/variantOutput/app/build.gradle.kts
+++ b/variantOutput/app/build.gradle.kts
@@ -22,10 +22,10 @@ plugins {
android {
namespace = "com.example.android.recipes.variant_output"
- compileSdk = $COMPILE_SDK
+ compileSdk = 35
defaultConfig {
- minSdk = $MINIMUM_SDK
- targetSdk = $COMPILE_SDK
+ minSdk = 21
+ targetSdk = 35
}
// Specify one flavor dimension and two product flavors
diff --git a/recipes/variantOutput/app/src/main/AndroidManifest.xml b/variantOutput/app/src/main/AndroidManifest.xml
similarity index 100%
rename from recipes/variantOutput/app/src/main/AndroidManifest.xml
rename to variantOutput/app/src/main/AndroidManifest.xml
diff --git a/recipes/variantOutput/build-logic/gradle.properties b/variantOutput/build-logic/gradle.properties
similarity index 100%
rename from recipes/variantOutput/build-logic/gradle.properties
rename to variantOutput/build-logic/gradle.properties
diff --git a/variantOutput/build-logic/gradle/libs.versions.toml b/variantOutput/build-logic/gradle/libs.versions.toml
new file mode 100644
index 00000000..1073e06f
--- /dev/null
+++ b/variantOutput/build-logic/gradle/libs.versions.toml
@@ -0,0 +1,9 @@
+[versions]
+androidGradlePlugin = "8.7.3"
+kotlin = "1.9.22"
+
+[libraries]
+android-gradlePlugin-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
+
+[plugins]
+kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
diff --git a/recipes/variantOutput/build-logic/plugins/build.gradle.kts b/variantOutput/build-logic/plugins/build.gradle.kts
similarity index 100%
rename from recipes/variantOutput/build-logic/plugins/build.gradle.kts
rename to variantOutput/build-logic/plugins/build.gradle.kts
diff --git a/recipes/variantOutput/build-logic/plugins/src/main/kotlin/CheckMergedManifestTask.kt b/variantOutput/build-logic/plugins/src/main/kotlin/CheckMergedManifestTask.kt
similarity index 100%
rename from recipes/variantOutput/build-logic/plugins/src/main/kotlin/CheckMergedManifestTask.kt
rename to variantOutput/build-logic/plugins/src/main/kotlin/CheckMergedManifestTask.kt
diff --git a/recipes/variantOutput/build-logic/plugins/src/main/kotlin/CustomPlugin.kt b/variantOutput/build-logic/plugins/src/main/kotlin/CustomPlugin.kt
similarity index 100%
rename from recipes/variantOutput/build-logic/plugins/src/main/kotlin/CustomPlugin.kt
rename to variantOutput/build-logic/plugins/src/main/kotlin/CustomPlugin.kt
diff --git a/variantOutput/build-logic/settings.gradle.kts b/variantOutput/build-logic/settings.gradle.kts
new file mode 100644
index 00000000..03be6a28
--- /dev/null
+++ b/variantOutput/build-logic/settings.gradle.kts
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2024 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+rootProject.name = "build-logic"
+
+pluginManagement {
+ repositories {
+maven { url = uri("") }
+ gradlePluginPortal()
+ google()
+ mavenCentral()
+ }
+}
+
+dependencyResolutionManagement {
+ repositories {
+maven { url = uri("") }
+ google()
+ mavenCentral()
+ }
+}
+
+include(":plugins")
diff --git a/recipes/variantOutput/build.gradle.kts b/variantOutput/build.gradle.kts
similarity index 100%
rename from recipes/variantOutput/build.gradle.kts
rename to variantOutput/build.gradle.kts
diff --git a/recipes/variantOutput/gradle.properties b/variantOutput/gradle.properties
similarity index 100%
rename from recipes/variantOutput/gradle.properties
rename to variantOutput/gradle.properties
diff --git a/variantOutput/gradle/libs.versions.toml b/variantOutput/gradle/libs.versions.toml
new file mode 100644
index 00000000..714cf1ea
--- /dev/null
+++ b/variantOutput/gradle/libs.versions.toml
@@ -0,0 +1,9 @@
+[versions]
+androidGradlePlugin = "8.7.3"
+kotlin = "1.9.22"
+
+[plugins]
+android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
+kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
+
+
diff --git a/variantOutput/gradle/wrapper/gradle-wrapper.jar b/variantOutput/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 00000000..41d9927a
Binary files /dev/null and b/variantOutput/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/variantOutput/gradle/wrapper/gradle-wrapper.properties b/variantOutput/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 00000000..496d24c8
--- /dev/null
+++ b/variantOutput/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Wed Aug 10 10:22:34 IDT 2022
+distributionBase=GRADLE_USER_HOME
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
+distributionPath=wrapper/dists
+zipStorePath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
diff --git a/variantOutput/gradlew b/variantOutput/gradlew
new file mode 100755
index 00000000..1b6c7873
--- /dev/null
+++ b/variantOutput/gradlew
@@ -0,0 +1,234 @@
+#!/bin/sh
+
+#
+# Copyright © 2015-2021 the original authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+##############################################################################
+#
+# Gradle start up script for POSIX generated by Gradle.
+#
+# Important for running:
+#
+# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
+# noncompliant, but you have some other compliant shell such as ksh or
+# bash, then to run this script, type that shell name before the whole
+# command line, like:
+#
+# ksh Gradle
+#
+# Busybox and similar reduced shells will NOT work, because this script
+# requires all of these POSIX shell features:
+# * functions;
+# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
+# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
+# * compound commands having a testable exit status, especially «case»;
+# * various built-in commands including «command», «set», and «ulimit».
+#
+# Important for patching:
+#
+# (2) This script targets any POSIX shell, so it avoids extensions provided
+# by Bash, Ksh, etc; in particular arrays are avoided.
+#
+# The "traditional" practice of packing multiple parameters into a
+# space-separated string is a well documented source of bugs and security
+# problems, so this is (mostly) avoided, by progressively accumulating
+# options in "$@", and eventually passing that to Java.
+#
+# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
+# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
+# see the in-line comments for details.
+#
+# There are tweaks for specific operating systems such as AIX, CygWin,
+# Darwin, MinGW, and NonStop.
+#
+# (3) This script is generated from the Groovy template
+# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
+# within the Gradle project.
+#
+# You can find Gradle at https://github.com/gradle/gradle/.
+#
+##############################################################################
+
+# Attempt to set APP_HOME
+
+# Resolve links: $0 may be a link
+app_path=$0
+
+# Need this for daisy-chained symlinks.
+while
+ APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
+ [ -h "$app_path" ]
+do
+ ls=$( ls -ld "$app_path" )
+ link=${ls#*' -> '}
+ case $link in #(
+ /*) app_path=$link ;; #(
+ *) app_path=$APP_HOME$link ;;
+ esac
+done
+
+APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
+
+APP_NAME="Gradle"
+APP_BASE_NAME=${0##*/}
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD=maximum
+
+warn () {
+ echo "$*"
+} >&2
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+} >&2
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "$( uname )" in #(
+ CYGWIN* ) cygwin=true ;; #(
+ Darwin* ) darwin=true ;; #(
+ MSYS* | MINGW* ) msys=true ;; #(
+ NONSTOP* ) nonstop=true ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD=$JAVA_HOME/jre/sh/java
+ else
+ JAVACMD=$JAVA_HOME/bin/java
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD=java
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
+ case $MAX_FD in #(
+ max*)
+ MAX_FD=$( ulimit -H -n ) ||
+ warn "Could not query maximum file descriptor limit"
+ esac
+ case $MAX_FD in #(
+ '' | soft) :;; #(
+ *)
+ ulimit -n "$MAX_FD" ||
+ warn "Could not set maximum file descriptor limit to $MAX_FD"
+ esac
+fi
+
+# Collect all arguments for the java command, stacking in reverse order:
+# * args from the command line
+# * the main class name
+# * -classpath
+# * -D...appname settings
+# * --module-path (only if needed)
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if "$cygwin" || "$msys" ; then
+ APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
+ CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
+
+ JAVACMD=$( cygpath --unix "$JAVACMD" )
+
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ for arg do
+ if
+ case $arg in #(
+ -*) false ;; # don't mess with options #(
+ /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
+ [ -e "$t" ] ;; #(
+ *) false ;;
+ esac
+ then
+ arg=$( cygpath --path --ignore --mixed "$arg" )
+ fi
+ # Roll the args list around exactly as many times as the number of
+ # args, so each arg winds up back in the position where it started, but
+ # possibly modified.
+ #
+ # NB: a `for` loop captures its iteration list before it begins, so
+ # changing the positional parameters here affects neither the number of
+ # iterations, nor the values presented in `arg`.
+ shift # remove old arg
+ set -- "$@" "$arg" # push replacement arg
+ done
+fi
+
+# Collect all arguments for the java command;
+# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
+# shell script including quotes and variable substitutions, so put them in
+# double quotes to make sure that they get re-expanded; and
+# * put everything else in single quotes, so that it's not re-expanded.
+
+set -- \
+ "-Dorg.gradle.appname=$APP_BASE_NAME" \
+ -classpath "$CLASSPATH" \
+ org.gradle.wrapper.GradleWrapperMain \
+ "$@"
+
+# Use "xargs" to parse quoted args.
+#
+# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
+#
+# In Bash we could simply go:
+#
+# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
+# set -- "${ARGS[@]}" "$@"
+#
+# but POSIX shell has neither arrays nor command substitution, so instead we
+# post-process each arg (as a line of input to sed) to backslash-escape any
+# character that might be a shell metacharacter, then use eval to reverse
+# that process (while maintaining the separation between arguments), and wrap
+# the whole thing up as a single "set" statement.
+#
+# This will of course break if any of these variables contains a newline or
+# an unmatched quote.
+#
+
+eval "set -- $(
+ printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
+ xargs -n1 |
+ sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
+ tr '\n' ' '
+ )" '"$@"'
+
+exec "$JAVACMD" "$@"
diff --git a/variantOutput/gradlew.bat b/variantOutput/gradlew.bat
new file mode 100644
index 00000000..107acd32
--- /dev/null
+++ b/variantOutput/gradlew.bat
@@ -0,0 +1,89 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/recipes/variantOutput/settings.gradle.kts b/variantOutput/settings.gradle.kts
similarity index 84%
rename from recipes/variantOutput/settings.gradle.kts
rename to variantOutput/settings.gradle.kts
index 53b2f654..e9ce3456 100644
--- a/recipes/variantOutput/settings.gradle.kts
+++ b/variantOutput/settings.gradle.kts
@@ -19,16 +19,19 @@ rootProject.name = "variantOutput"
pluginManagement {
includeBuild("build-logic")
repositories {
-$AGP_REPOSITORY
-$PLUGIN_REPOSITORIES
+maven { url = uri("") }
+ gradlePluginPortal()
+ google()
+ mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
-$AGP_REPOSITORY
-$DEPENDENCY_REPOSITORIES
+maven { url = uri("") }
+ google()
+ mavenCentral()
}
}
diff --git a/version_mappings.txt b/version_mappings.txt
deleted file mode 100644
index 3ef023d8..00000000
--- a/version_mappings.txt
+++ /dev/null
@@ -1,11 +0,0 @@
-# mapping of AGP versions to Gradle and Kotlin Versions, separated by ';'
-8.1;8.0;1.8.10
-8.2;8.2;1.8.10
-8.3;8.4;1.9.22
-8.4;8.6;1.9.22
-8.5;8.7;1.9.22
-8.6;8.9;1.9.22
-8.7;8.9;1.9.22
-8.8;8.11.1;1.9.22
-8.9;8.11.1;1.9.22
-8.10;8.11.1;1.9.22
diff --git a/recipes/workerEnabledTransformation/README.md b/workerEnabledTransformation/README.md
similarity index 100%
rename from recipes/workerEnabledTransformation/README.md
rename to workerEnabledTransformation/README.md
diff --git a/recipes/workerEnabledTransformation/app/build.gradle.kts b/workerEnabledTransformation/app/build.gradle.kts
similarity index 91%
rename from recipes/workerEnabledTransformation/app/build.gradle.kts
rename to workerEnabledTransformation/app/build.gradle.kts
index abd180c7..b3d8af7a 100644
--- a/recipes/workerEnabledTransformation/app/build.gradle.kts
+++ b/workerEnabledTransformation/app/build.gradle.kts
@@ -22,10 +22,10 @@ plugins {
android {
namespace = "com.example.android.recipes.workerEnabledTransformation"
- compileSdk = $COMPILE_SDK
+ compileSdk = 35
defaultConfig {
- minSdk = $MINIMUM_SDK
- targetSdk = $COMPILE_SDK
+ minSdk = 21
+ targetSdk = 35
}
}
diff --git a/recipes/workerEnabledTransformation/app/src/main/AndroidManifest.xml b/workerEnabledTransformation/app/src/main/AndroidManifest.xml
similarity index 100%
rename from recipes/workerEnabledTransformation/app/src/main/AndroidManifest.xml
rename to workerEnabledTransformation/app/src/main/AndroidManifest.xml
diff --git a/recipes/workerEnabledTransformation/build-logic/gradle.properties b/workerEnabledTransformation/build-logic/gradle.properties
similarity index 100%
rename from recipes/workerEnabledTransformation/build-logic/gradle.properties
rename to workerEnabledTransformation/build-logic/gradle.properties
diff --git a/workerEnabledTransformation/build-logic/gradle/libs.versions.toml b/workerEnabledTransformation/build-logic/gradle/libs.versions.toml
new file mode 100644
index 00000000..1073e06f
--- /dev/null
+++ b/workerEnabledTransformation/build-logic/gradle/libs.versions.toml
@@ -0,0 +1,9 @@
+[versions]
+androidGradlePlugin = "8.7.3"
+kotlin = "1.9.22"
+
+[libraries]
+android-gradlePlugin-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
+
+[plugins]
+kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
diff --git a/recipes/workerEnabledTransformation/build-logic/plugins/build.gradle.kts b/workerEnabledTransformation/build-logic/plugins/build.gradle.kts
similarity index 100%
rename from recipes/workerEnabledTransformation/build-logic/plugins/build.gradle.kts
rename to workerEnabledTransformation/build-logic/plugins/build.gradle.kts
diff --git a/recipes/workerEnabledTransformation/build-logic/plugins/src/main/kotlin/CopyApksTask.kt b/workerEnabledTransformation/build-logic/plugins/src/main/kotlin/CopyApksTask.kt
similarity index 100%
rename from recipes/workerEnabledTransformation/build-logic/plugins/src/main/kotlin/CopyApksTask.kt
rename to workerEnabledTransformation/build-logic/plugins/src/main/kotlin/CopyApksTask.kt
diff --git a/recipes/workerEnabledTransformation/build-logic/plugins/src/main/kotlin/CustomPlugin.kt b/workerEnabledTransformation/build-logic/plugins/src/main/kotlin/CustomPlugin.kt
similarity index 100%
rename from recipes/workerEnabledTransformation/build-logic/plugins/src/main/kotlin/CustomPlugin.kt
rename to workerEnabledTransformation/build-logic/plugins/src/main/kotlin/CustomPlugin.kt
diff --git a/workerEnabledTransformation/build-logic/settings.gradle.kts b/workerEnabledTransformation/build-logic/settings.gradle.kts
new file mode 100644
index 00000000..03be6a28
--- /dev/null
+++ b/workerEnabledTransformation/build-logic/settings.gradle.kts
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2024 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+rootProject.name = "build-logic"
+
+pluginManagement {
+ repositories {
+maven { url = uri("") }
+ gradlePluginPortal()
+ google()
+ mavenCentral()
+ }
+}
+
+dependencyResolutionManagement {
+ repositories {
+maven { url = uri("") }
+ google()
+ mavenCentral()
+ }
+}
+
+include(":plugins")
diff --git a/recipes/workerEnabledTransformation/build.gradle.kts b/workerEnabledTransformation/build.gradle.kts
similarity index 100%
rename from recipes/workerEnabledTransformation/build.gradle.kts
rename to workerEnabledTransformation/build.gradle.kts
diff --git a/recipes/workerEnabledTransformation/gradle.properties b/workerEnabledTransformation/gradle.properties
similarity index 100%
rename from recipes/workerEnabledTransformation/gradle.properties
rename to workerEnabledTransformation/gradle.properties
diff --git a/workerEnabledTransformation/gradle/libs.versions.toml b/workerEnabledTransformation/gradle/libs.versions.toml
new file mode 100644
index 00000000..714cf1ea
--- /dev/null
+++ b/workerEnabledTransformation/gradle/libs.versions.toml
@@ -0,0 +1,9 @@
+[versions]
+androidGradlePlugin = "8.7.3"
+kotlin = "1.9.22"
+
+[plugins]
+android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
+kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
+
+
diff --git a/workerEnabledTransformation/gradle/wrapper/gradle-wrapper.jar b/workerEnabledTransformation/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 00000000..41d9927a
Binary files /dev/null and b/workerEnabledTransformation/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/workerEnabledTransformation/gradle/wrapper/gradle-wrapper.properties b/workerEnabledTransformation/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 00000000..496d24c8
--- /dev/null
+++ b/workerEnabledTransformation/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Wed Aug 10 10:22:34 IDT 2022
+distributionBase=GRADLE_USER_HOME
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
+distributionPath=wrapper/dists
+zipStorePath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
diff --git a/workerEnabledTransformation/gradlew b/workerEnabledTransformation/gradlew
new file mode 100755
index 00000000..1b6c7873
--- /dev/null
+++ b/workerEnabledTransformation/gradlew
@@ -0,0 +1,234 @@
+#!/bin/sh
+
+#
+# Copyright © 2015-2021 the original authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+##############################################################################
+#
+# Gradle start up script for POSIX generated by Gradle.
+#
+# Important for running:
+#
+# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
+# noncompliant, but you have some other compliant shell such as ksh or
+# bash, then to run this script, type that shell name before the whole
+# command line, like:
+#
+# ksh Gradle
+#
+# Busybox and similar reduced shells will NOT work, because this script
+# requires all of these POSIX shell features:
+# * functions;
+# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
+# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
+# * compound commands having a testable exit status, especially «case»;
+# * various built-in commands including «command», «set», and «ulimit».
+#
+# Important for patching:
+#
+# (2) This script targets any POSIX shell, so it avoids extensions provided
+# by Bash, Ksh, etc; in particular arrays are avoided.
+#
+# The "traditional" practice of packing multiple parameters into a
+# space-separated string is a well documented source of bugs and security
+# problems, so this is (mostly) avoided, by progressively accumulating
+# options in "$@", and eventually passing that to Java.
+#
+# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
+# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
+# see the in-line comments for details.
+#
+# There are tweaks for specific operating systems such as AIX, CygWin,
+# Darwin, MinGW, and NonStop.
+#
+# (3) This script is generated from the Groovy template
+# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
+# within the Gradle project.
+#
+# You can find Gradle at https://github.com/gradle/gradle/.
+#
+##############################################################################
+
+# Attempt to set APP_HOME
+
+# Resolve links: $0 may be a link
+app_path=$0
+
+# Need this for daisy-chained symlinks.
+while
+ APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
+ [ -h "$app_path" ]
+do
+ ls=$( ls -ld "$app_path" )
+ link=${ls#*' -> '}
+ case $link in #(
+ /*) app_path=$link ;; #(
+ *) app_path=$APP_HOME$link ;;
+ esac
+done
+
+APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
+
+APP_NAME="Gradle"
+APP_BASE_NAME=${0##*/}
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD=maximum
+
+warn () {
+ echo "$*"
+} >&2
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+} >&2
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "$( uname )" in #(
+ CYGWIN* ) cygwin=true ;; #(
+ Darwin* ) darwin=true ;; #(
+ MSYS* | MINGW* ) msys=true ;; #(
+ NONSTOP* ) nonstop=true ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD=$JAVA_HOME/jre/sh/java
+ else
+ JAVACMD=$JAVA_HOME/bin/java
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD=java
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
+ case $MAX_FD in #(
+ max*)
+ MAX_FD=$( ulimit -H -n ) ||
+ warn "Could not query maximum file descriptor limit"
+ esac
+ case $MAX_FD in #(
+ '' | soft) :;; #(
+ *)
+ ulimit -n "$MAX_FD" ||
+ warn "Could not set maximum file descriptor limit to $MAX_FD"
+ esac
+fi
+
+# Collect all arguments for the java command, stacking in reverse order:
+# * args from the command line
+# * the main class name
+# * -classpath
+# * -D...appname settings
+# * --module-path (only if needed)
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if "$cygwin" || "$msys" ; then
+ APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
+ CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
+
+ JAVACMD=$( cygpath --unix "$JAVACMD" )
+
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ for arg do
+ if
+ case $arg in #(
+ -*) false ;; # don't mess with options #(
+ /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
+ [ -e "$t" ] ;; #(
+ *) false ;;
+ esac
+ then
+ arg=$( cygpath --path --ignore --mixed "$arg" )
+ fi
+ # Roll the args list around exactly as many times as the number of
+ # args, so each arg winds up back in the position where it started, but
+ # possibly modified.
+ #
+ # NB: a `for` loop captures its iteration list before it begins, so
+ # changing the positional parameters here affects neither the number of
+ # iterations, nor the values presented in `arg`.
+ shift # remove old arg
+ set -- "$@" "$arg" # push replacement arg
+ done
+fi
+
+# Collect all arguments for the java command;
+# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
+# shell script including quotes and variable substitutions, so put them in
+# double quotes to make sure that they get re-expanded; and
+# * put everything else in single quotes, so that it's not re-expanded.
+
+set -- \
+ "-Dorg.gradle.appname=$APP_BASE_NAME" \
+ -classpath "$CLASSPATH" \
+ org.gradle.wrapper.GradleWrapperMain \
+ "$@"
+
+# Use "xargs" to parse quoted args.
+#
+# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
+#
+# In Bash we could simply go:
+#
+# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
+# set -- "${ARGS[@]}" "$@"
+#
+# but POSIX shell has neither arrays nor command substitution, so instead we
+# post-process each arg (as a line of input to sed) to backslash-escape any
+# character that might be a shell metacharacter, then use eval to reverse
+# that process (while maintaining the separation between arguments), and wrap
+# the whole thing up as a single "set" statement.
+#
+# This will of course break if any of these variables contains a newline or
+# an unmatched quote.
+#
+
+eval "set -- $(
+ printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
+ xargs -n1 |
+ sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
+ tr '\n' ' '
+ )" '"$@"'
+
+exec "$JAVACMD" "$@"
diff --git a/workerEnabledTransformation/gradlew.bat b/workerEnabledTransformation/gradlew.bat
new file mode 100644
index 00000000..107acd32
--- /dev/null
+++ b/workerEnabledTransformation/gradlew.bat
@@ -0,0 +1,89 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/recipes/workerEnabledTransformation/settings.gradle.kts b/workerEnabledTransformation/settings.gradle.kts
similarity index 84%
rename from recipes/workerEnabledTransformation/settings.gradle.kts
rename to workerEnabledTransformation/settings.gradle.kts
index 96af5cda..12ba7a74 100644
--- a/recipes/workerEnabledTransformation/settings.gradle.kts
+++ b/workerEnabledTransformation/settings.gradle.kts
@@ -19,16 +19,19 @@ rootProject.name = "workerEnabledTransformation"
pluginManagement {
includeBuild("build-logic")
repositories {
- $AGP_REPOSITORY
- $PLUGIN_REPOSITORIES
+maven { url = uri("") }
+ gradlePluginPortal()
+ google()
+ mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
- $AGP_REPOSITORY
- $DEPENDENCY_REPOSITORIES
+maven { url = uri("") }
+ google()
+ mavenCentral()
}
}