Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Auto-Manifest plugin #260

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion buildSrc/src/main/kotlin/config/AndroidLibraryConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ fun AndroidLibraryExtension.setDefaults(generateBuildConfig: Boolean = false) {
this.buildConfig = generateBuildConfig
}
sourceSets.getByName("main") {
manifest.srcFile("src/androidMain/AndroidManifest.xml")
val srcDir = manifest.srcFile.parentFile.parentFile
srcDir.resolve("androidMain/AndroidManifest.xml").let {
if (it.exists()) manifest.srcFile(it)
}
res.srcDir("src/androidMain/res")
}
sourceSets.getByName("debug") {
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions fun-packs/android-base/src/androidMain/AndroidManifest.xml

This file was deleted.

This file was deleted.

This file was deleted.

12 changes: 12 additions & 0 deletions fun-packs/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Copyright 2020 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/

plugins {
id("com.gradleup.auto.manifest")
}

autoManifest {
packageName.set("splitties.fun.pack")
replaceDashesWithDot.set(true)
}
4 changes: 0 additions & 4 deletions modules/activities/src/androidMain/AndroidManifest.xml

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions modules/alertdialog/src/androidMain/AndroidManifest.xml

This file was deleted.

5 changes: 0 additions & 5 deletions modules/arch-lifecycle/src/androidMain/AndroidManifest.xml

This file was deleted.

5 changes: 0 additions & 5 deletions modules/arch-room/src/androidMain/AndroidManifest.xml

This file was deleted.

12 changes: 12 additions & 0 deletions modules/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Copyright 2020 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/

plugins {
id("com.gradleup.auto.manifest")
}

autoManifest {
packageName.set("splitties")
replaceDashesWithDot.set(true)
}
5 changes: 0 additions & 5 deletions modules/bundle/src/androidMain/AndroidManifest.xml

This file was deleted.

9 changes: 0 additions & 9 deletions modules/checkedlazy/src/androidMain/AndroidManifest.xml

This file was deleted.

6 changes: 0 additions & 6 deletions modules/dimensions/src/androidMain/AndroidManifest.xml

This file was deleted.

5 changes: 0 additions & 5 deletions modules/exceptions/src/androidMain/AndroidManifest.xml

This file was deleted.

5 changes: 0 additions & 5 deletions modules/fragmentargs/src/androidMain/AndroidManifest.xml

This file was deleted.

4 changes: 0 additions & 4 deletions modules/fragments/src/androidMain/AndroidManifest.xml

This file was deleted.

5 changes: 0 additions & 5 deletions modules/initprovider/src/androidMain/AndroidManifest.xml

This file was deleted.

4 changes: 0 additions & 4 deletions modules/intents/src/androidMain/AndroidManifest.xml

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions modules/mainhandler/src/androidMain/AndroidManifest.xml

This file was deleted.

5 changes: 0 additions & 5 deletions modules/mainthread/src/androidMain/AndroidManifest.xml

This file was deleted.

4 changes: 0 additions & 4 deletions modules/material-colors/src/androidMain/AndroidManifest.xml

This file was deleted.

5 changes: 0 additions & 5 deletions modules/material-lists/src/androidMain/AndroidManifest.xml

This file was deleted.

9 changes: 0 additions & 9 deletions modules/preferences/src/androidMain/AndroidManifest.xml

This file was deleted.

5 changes: 0 additions & 5 deletions modules/resources/src/androidMain/AndroidManifest.xml

This file was deleted.

5 changes: 0 additions & 5 deletions modules/snackbar/src/androidMain/AndroidManifest.xml

This file was deleted.

5 changes: 0 additions & 5 deletions modules/systemservices/src/androidMain/AndroidManifest.xml

This file was deleted.

5 changes: 0 additions & 5 deletions modules/toast/src/androidMain/AndroidManifest.xml

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions modules/views-appcompat/src/androidMain/AndroidManifest.xml

This file was deleted.

4 changes: 0 additions & 4 deletions modules/views-cardview/src/androidMain/AndroidManifest.xml

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions modules/views-coroutines/src/androidMain/AndroidManifest.xml

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions modules/views-material/src/androidMain/AndroidManifest.xml

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions modules/views-selectable/src/androidMain/AndroidManifest.xml

This file was deleted.

5 changes: 0 additions & 5 deletions modules/views/src/androidMain/AndroidManifest.xml

This file was deleted.

4 changes: 3 additions & 1 deletion versions.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
## Generated by $ ./gradlew refreshVersions
## Please, don't put extra comments in that file yet, keeping them is not supported yet.

plugin.android=4.1.0-rc02
plugin.android=4.1.1
## # available=4.2.0-alpha01
## # available=4.2.0-alpha02
## # available=4.2.0-alpha03
Expand All @@ -17,6 +17,8 @@ plugin.android=4.1.0-rc02
## # available=4.2.0-alpha09
## # available=4.2.0-alpha10

plugin.com.gradleup.auto.manifest=1.0.3

tasomaniac marked this conversation as resolved.
Show resolved Hide resolved
plugin.com.osacky.doctor=0.5.1

version.androidx.annotation=1.1.0
Expand Down