-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from shinhyo/chore/kotlin2.0
chore/kotlin2.0
- Loading branch information
Showing
20 changed files
with
303 additions
and
190 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 |
---|---|---|
|
@@ -3,7 +3,7 @@ name: Build | |
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
pull_request: | ||
|
||
concurrency: | ||
|
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 |
---|---|---|
|
@@ -8,3 +8,4 @@ build/ | |
.externalNativeBuild | ||
app/build | ||
build | ||
/.kotlin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="spotlessApply" type="GradleRunConfiguration" factoryName="Gradle"> | ||
<ExternalSystemSettings> | ||
<option name="executionName" /> | ||
<option name="externalProjectPath" value="$PROJECT_DIR$" /> | ||
<option name="externalSystemIdString" value="GRADLE" /> | ||
<option name="scriptParameters" value="--init-script=gradle/init.gradle.kts" /> | ||
<option name="taskDescriptions"> | ||
<list /> | ||
</option> | ||
<option name="taskNames"> | ||
<list> | ||
<option value="spotlessApply" /> | ||
</list> | ||
</option> | ||
<option name="vmOptions" /> | ||
</ExternalSystemSettings> | ||
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess> | ||
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess> | ||
<DebugAllEnabled>false</DebugAllEnabled> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
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,52 +1,3 @@ | ||
plugins { | ||
id("brba.android.application") | ||
} | ||
|
||
android { | ||
namespace = "io.github.shinhyo.brba" | ||
|
||
defaultConfig { | ||
applicationId = "io.github.shinhyo.brba" | ||
versionCode = 1 | ||
versionName = "1.0" | ||
} | ||
|
||
signingConfigs { | ||
getByName("debug") { | ||
storeFile = rootProject.file("debug.keystore") | ||
storePassword = "android" | ||
keyAlias = "androiddebugkey" | ||
keyPassword = "android" | ||
} | ||
} | ||
|
||
buildTypes { | ||
getByName("debug") { | ||
isDebuggable = false | ||
} | ||
|
||
getByName("release") { | ||
isDebuggable = false | ||
isShrinkResources = true | ||
isMinifyEnabled = true | ||
proguardFiles( | ||
getDefaultProguardFile("proguard-android-optimize.txt"), | ||
"proguard-rules.pro", | ||
) | ||
signingConfig = signingConfigs.getByName("debug") | ||
} | ||
} | ||
|
||
buildFeatures { | ||
buildConfig = true | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation(project(":feature:main")) | ||
|
||
implementation(libs.androidx.startup) | ||
implementation(libs.androidx.compose.material3) | ||
implementation(libs.timber) | ||
implementation(libs.coil.kt) | ||
} |
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 was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?><!-- | ||
Sample backup rules file; uncomment and customize as necessary. | ||
See https://developer.android.com/guide/topics/data/autobackup | ||
for details. | ||
Note: This file is ignored for devices older that API 31 | ||
See https://developer.android.com/about/versions/12/backup-restore | ||
--> | ||
<full-backup-content> | ||
<!-- | ||
<include domain="sharedpref" path="."/> | ||
<exclude domain="sharedpref" path="device.xml"/> | ||
--> | ||
</full-backup-content> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8"?><!-- | ||
Sample data extraction rules file; uncomment and customize as necessary. | ||
See https://developer.android.com/about/versions/12/backup-restore#xml-changes | ||
for details. | ||
--> | ||
<data-extraction-rules> | ||
<cloud-backup> | ||
<!-- TODO: Use <include> and <exclude> to control what is backed up. | ||
<include .../> | ||
<exclude .../> | ||
--> | ||
</cloud-backup> | ||
<!-- | ||
<device-transfer> | ||
<include .../> | ||
<exclude .../> | ||
</device-transfer> | ||
--> | ||
</data-extraction-rules> |
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
21 changes: 16 additions & 5 deletions
21
build-logic/convention/src/main/kotlin/io/github/shinhyo/brba/buildlogic/AndroidCompose.kt
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,22 +1,33 @@ | ||
package io.github.shinhyo.brba.buildlogic | ||
|
||
import org.gradle.api.Project | ||
import org.gradle.kotlin.dsl.assign | ||
import org.gradle.kotlin.dsl.configure | ||
import org.gradle.kotlin.dsl.dependencies | ||
import org.jetbrains.kotlin.compose.compiler.gradle.ComposeCompilerGradlePluginExtension | ||
|
||
internal fun Project.configureAndroidCompose() { | ||
androidExtension.apply { | ||
buildFeatures { | ||
compose = true | ||
with(plugins) { | ||
apply("org.jetbrains.kotlin.plugin.compose") | ||
} | ||
|
||
composeOptions { | ||
kotlinCompilerExtensionVersion = findVersion("androidxComposeCompiler").toString() | ||
buildFeatures { | ||
compose = true | ||
} | ||
|
||
dependencies { | ||
val bom = libs.findLibrary("androidx-compose-bom").get() | ||
add("implementation", platform(bom)) | ||
add("androidTestImplementation", platform(bom)) | ||
add("implementation", libs.findLibrary("androidx-compose-ui-tooling-preview").get()) | ||
add("debugImplementation", libs.findLibrary("androidx-compose-ui-tooling").get()) | ||
} | ||
|
||
} | ||
|
||
extensions.configure<ComposeCompilerGradlePluginExtension> { | ||
enableStrongSkippingMode = true | ||
includeSourceInformation = 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
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.