Skip to content

Commit

Permalink
Remove cruft from samples build.gradle files.
Browse files Browse the repository at this point in the history
This has been cargo culted forward in each sample for who knows how
long. Most of these don't use kotlin or the library plugin.

The clean task bit I think was a workaround for a very old AGP bug that
was in the new app templates, but if I create a new project with AS now,
it's no longer included.
  • Loading branch information
DanAlbert committed May 7, 2024
1 parent 0ad5dec commit fee7fe7
Show file tree
Hide file tree
Showing 29 changed files with 1 addition and 156 deletions.
6 changes: 0 additions & 6 deletions audio-echo/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.4.0' apply false
id 'com.android.library' version '8.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.21' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
}
6 changes: 0 additions & 6 deletions bitmap-plasma/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.4.0' apply false
id 'com.android.library' version '8.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.21' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
}
6 changes: 0 additions & 6 deletions camera/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.4.0' apply false
id 'com.android.library' version '8.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.21' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
}
6 changes: 0 additions & 6 deletions display-p3/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.4.0' apply false
id 'com.android.library' version '8.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.21' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
}
6 changes: 0 additions & 6 deletions endless-tunnel/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.4.0' apply false
id 'com.android.library' version '8.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.21' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
}
3 changes: 1 addition & 2 deletions exceptions/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.4.0' apply false
id 'com.android.library' version '8.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.20' apply false
}
}
6 changes: 0 additions & 6 deletions gles3jni/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.4.0' apply false
id 'com.android.library' version '8.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.21' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
}
6 changes: 0 additions & 6 deletions hello-gl2/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.4.0' apply false
id 'com.android.library' version '8.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.21' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
}
5 changes: 0 additions & 5 deletions hello-jni/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.4.0' apply false
id 'com.android.library' version '8.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.21' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
}
6 changes: 0 additions & 6 deletions hello-jniCallback/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.4.0' apply false
id 'com.android.library' version '8.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.21' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
}
6 changes: 0 additions & 6 deletions hello-libs/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.4.0' apply false
id 'com.android.library' version '8.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.21' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
}
6 changes: 0 additions & 6 deletions hello-neon/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.4.0' apply false
id 'com.android.library' version '8.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.21' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
}
5 changes: 0 additions & 5 deletions hello-oboe/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.4.0' apply false
id 'com.android.library' version '8.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.21' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
}
6 changes: 0 additions & 6 deletions native-activity/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.4.0' apply false
id 'com.android.library' version '8.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.21' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
}
6 changes: 0 additions & 6 deletions native-audio/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.4.0' apply false
id 'com.android.library' version '8.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.21' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
}
6 changes: 0 additions & 6 deletions native-codec/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.4.0' apply false
id 'com.android.library' version '8.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.21' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
}
6 changes: 0 additions & 6 deletions native-media/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.4.0' apply false
id 'com.android.library' version '8.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.21' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
}
6 changes: 0 additions & 6 deletions native-midi/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.4.0' apply false
id 'com.android.library' version '8.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.21' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
}
6 changes: 0 additions & 6 deletions native-plasma/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.4.0' apply false
id 'com.android.library' version '8.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.21' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
}
5 changes: 0 additions & 5 deletions nn-samples/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.4.0' apply false
id 'com.android.library' version '8.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.21' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
}
5 changes: 0 additions & 5 deletions prefab/curl-ssl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,5 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.4.0' apply false
id 'com.android.library' version '8.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.21' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
}
5 changes: 0 additions & 5 deletions prefab/prefab-dependency/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,5 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.4.0' apply false
id 'com.android.library' version '8.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.21' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
}
6 changes: 0 additions & 6 deletions prefab/prefab-publishing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,4 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.4.0' apply false
id 'com.android.library' version '8.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.21' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
}
6 changes: 0 additions & 6 deletions san-angeles/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.4.0' apply false
id 'com.android.library' version '8.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.21' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
}
2 changes: 0 additions & 2 deletions sanitizers/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.4.0' apply false
id 'com.android.library' version '8.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.20' apply false
}
6 changes: 0 additions & 6 deletions sensor-graph/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.4.0' apply false
id 'com.android.library' version '8.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.21' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
}
6 changes: 0 additions & 6 deletions teapots/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.4.0' apply false
id 'com.android.library' version '8.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.21' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
}
1 change: 0 additions & 1 deletion unit-test/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.4.0' apply false
id 'com.android.library' version '8.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.21' apply false
}
6 changes: 0 additions & 6 deletions webp/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.4.0' apply false
id 'com.android.library' version '8.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.21' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
}

0 comments on commit fee7fe7

Please sign in to comment.