-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
208 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,42 @@ | ||
* text eol=lf | ||
* text=auto eol=lf | ||
|
||
*.gradle text diff=java | ||
*.gradle.kts text diff=kotlin | ||
*.groovy text diff=java | ||
*.htm text diff=html | ||
*.html text diff=html | ||
*.java text diff=java | ||
*.json text diff=json | ||
*.kt text diff=kotlin | ||
*.md text diff=markdown | ||
*.properties text | ||
*.scala text diff=java | ||
*.xml text | ||
*.yml text | ||
.gitattributes text | ||
.gitignore text | ||
LICENSE text | ||
consumer-rules.pro text | ||
gradlew text | ||
proguard-rules.pro text | ||
yarn.lock text | ||
|
||
*.bat text eol=crlf | ||
*.cmd text eol=crlf | ||
*.ps1 text eol=crlf | ||
|
||
*.class binary | ||
*.dll binary | ||
*.gif binary | ||
*.ico binary | ||
*.jar binary | ||
*.jks binary | ||
*.jpeg binary | ||
*.jpg binary | ||
*.png binary | ||
*.so binary | ||
*.tif binary | ||
*.tiff binary | ||
*.traineddata binary | ||
*.webp binary | ||
*.keystore binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
/local.properties | ||
|
||
!/.idea/detekt.xml | ||
!/.idea/jsonSchemas.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
rootProject.name = "ca-gradm" | ||
rootProject.name = "ca-build-logic-gradm" | ||
|
||
pluginManagement { | ||
repositories { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 25 additions & 4 deletions
29
build-logic/project/src/main/kotlin/ca.android.application.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,37 @@ | ||
import me.omico.consensus.root.consensusRootProjectConfiguration | ||
import me.omico.gradle.project.PROJECT_JAVA_VERSION | ||
|
||
plugins { | ||
kotlin("android") | ||
id("com.android.application") | ||
id("ca.android.base") | ||
id("ca.android.compose") | ||
} | ||
|
||
android { | ||
defaultConfig { | ||
versionCode = version.toString().replace(".", "").toInt() | ||
versionName = version.toString() | ||
versionCode = consensusRootProjectConfiguration.versionCode | ||
versionName = consensusRootProjectConfiguration.versionName | ||
} | ||
buildFeatures { | ||
buildConfig = true | ||
} | ||
kotlinOptions { | ||
jvmTarget = "11" | ||
jvmTarget = PROJECT_JAVA_VERSION.toString() | ||
} | ||
buildTypes { | ||
release { | ||
@Suppress("UnstableApiUsage") | ||
vcsInfo.include = false | ||
} | ||
} | ||
} | ||
|
||
androidComponents { | ||
onVariants(selector().withBuildType("release")) { variant -> | ||
variant.packaging.resources.excludes.addAll( | ||
"DebugProbesKt.bin", | ||
"META-INF/*.version", | ||
"kotlin-tooling-metadata.json", | ||
) | ||
} | ||
} |
18 changes: 15 additions & 3 deletions
18
build-logic/project/src/main/kotlin/ca.android.base.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,28 @@ | ||
import me.omico.gradle.project.configureCommonAndroid | ||
import me.omico.gradle.project.configureAndroidCommonExtension | ||
import me.omico.gradm.dependency.DesugarJdkLibs | ||
|
||
plugins { | ||
id("com.android.base") | ||
} | ||
|
||
configureCommonAndroid( | ||
compileSdk = 34, | ||
// Android 11+ | ||
configureAndroidCommonExtension( | ||
domain = "me.omico", | ||
compileSdk = 35, | ||
minSdk = 30, | ||
namespace = "me.omico.${ | ||
name | ||
.replace("-", ".") | ||
.replace("ca", "currentactivity") | ||
.removeSuffix(".app") | ||
}", | ||
coreLibraryDesugaringDependency = DesugarJdkLibs.nio, | ||
) | ||
|
||
plugins.withId("org.jetbrains.kotlin.plugin.compose") { | ||
configureAndroidCommonExtension { | ||
buildFeatures { | ||
compose = true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,3 @@ plugins { | |
id("com.android.library") | ||
id("ca.android.base") | ||
} | ||
|
||
android { | ||
kotlinOptions { | ||
jvmTarget = "11" | ||
} | ||
} |
5 changes: 0 additions & 5 deletions
5
...main/kotlin/ca.android.compose.gradle.kts → ...ain/kotlin/ca.compose-compiler.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,11 @@ | ||
import me.omico.consensus.dsl.requireRootProject | ||
|
||
plugins { | ||
id("me.omico.consensus.root") | ||
id("ca.gradm") | ||
id("ca.root.git") | ||
id("ca.root.spotless") | ||
} | ||
|
||
requireRootProject() | ||
|
||
consensus { | ||
allprojects { | ||
group = gradleProperty("project.group") | ||
version = gradleProperty("project.version") | ||
} | ||
} | ||
|
||
val wrapper: Wrapper by tasks.named<Wrapper>("wrapper") { | ||
tasks.named<Wrapper>("wrapper") { | ||
gradleVersion = versions.gradle | ||
distributionType = Wrapper.DistributionType.BIN | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.