You need to use Android Studio to run this project and github token for fetch some dependencies
# Clone this repository
$ git clone https://github.com/indramahkota/android-exploration.git
# Clone from Android Studio VCS
File -> New -> Project from Version Control -> GitHub -> Clone.
- CI/CD using GitHub Actions
- Code smell analysis with Kotlin Detekt
- Android gradle project with Kotlin DSL
- Some dependencies published on GitHub Packages
- Modern Android Development with 100% Kotlin Language
- UI/UX using material 3 and Jetpack Compose Compose Material 3
- Open the Assemble Release Workflow
- Identify the Latest Successful Task
- Select the Latest Success Running Task
- In Artifacts section, Click Design-System or Exploration apk.
// Root project settings.gradle.kts
pluginManagement {
repositories {
maven(url = "https://maven.pkg.github.com/indramahkota/build-logic-public/") {
name = "GitHubPackages"
credentials {
username = providers.gradleProperty("github.username").orNull
?: System.getenv("GITHUB_USERNAME")
password = providers.gradleProperty("github.token").orNull
?: System.getenv("GITHUB_TOKEN")
}
}
google()
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
maven(url = "https://maven.pkg.github.com/indramahkota/version-catalog-public/") {
credentials {
username = providers.gradleProperty("github.username").orNull
?: System.getenv("GITHUB_USERNAME")
password = providers.gradleProperty("github.token").orNull
?: System.getenv("GITHUB_TOKEN")
}
}
google()
mavenCentral()
}
versionCatalogs {
create("libs") {
from("com.indramahkota.gradle.version:catalog-android:0.2.1")
}
create("indra") {
from("com.indramahkota.gradle.version:catalog-indramahkota:0.4.5")
}
}
}
// Root project build.gradle.kts
plugins {
alias(indra.plugins.convention.android.app) apply false
alias(indra.plugins.convention.android.lib) apply false
alias(indra.plugins.convention.compose.app) apply false
alias(indra.plugins.convention.compose.lib) apply false
alias(indra.plugins.convention.publishing) apply false
alias(indra.plugins.convention.android.config)
alias(indra.plugins.convention.compose.config)
alias(indra.plugins.convention.publish.config)
alias(indra.plugins.convention.detekt)
}
// Initial configuration for subprojects
indramahkota {
jvmTarget.set(JavaVersion.VERSION_17)
android {
minSdk.set(23)
targetSdk.set(34)
}
// Report directory:
// rootDir/reports/compose-reports/
// rootDir/reports/compose-metrics/
compose {
compilerVersion.set("1.5.3")
enableComposeCompilerMetrics.set(true)
enableComposeCompilerReports.set(true)
}
// Set maven pom for all sub projects
publishing {
pom {
setGitHubProject {
owner = "indramahkota"
repository = "android-exploration"
}
licenses {
mit()
}
developers {
developer(
id = "indramahkota",
name = "Indra Mahkota",
email = "indramahkota1@gmail.com"
)
}
}
}
}
// In submodules project build.gradle.kts
plugins {
// Automatically apply android plugin
alias(indra.plugins.convention.compose.app)
alias(libs.plugins.secret.gradle.plugin)
}
//or
plugins {
// Automatically apply android plugin
alias(indra.plugins.convention.android.lib)
alias(indra.plugins.convention.publishing)
}
Copyright (c) 2021 Indra Mahkota
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.