-
Notifications
You must be signed in to change notification settings - Fork 3
Atualizando para Gradle 9.0 #87
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
Changes from all commits
98cf52e
3fb7c42
779ee3c
3cd5ffa
47ff35a
e7d0918
2cd6115
ee31c98
37d0983
58ea64f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| plugins { | ||
| id("com.android.application") | ||
| alias(libs.plugins.jetbrains.compose) | ||
| alias(libs.plugins.compose.compiler) | ||
| alias(libs.plugins.google.services) | ||
| alias(libs.plugins.firebase.crashlytics) | ||
| } | ||
|
|
||
| android { | ||
| namespace = Config.applicationId | ||
|
|
||
| defaultConfig { | ||
| applicationId = Config.applicationId | ||
| minSdk = Config.minSdkVersion | ||
| compileSdk = Config.compileSdkVersion | ||
| targetSdk = Config.targetSdkVersion | ||
| versionCode = Config.versionCode | ||
| versionName = Config.versionName | ||
| multiDexEnabled = true | ||
| } | ||
|
|
||
| compileOptions { | ||
| sourceCompatibility = Config.javaVersion | ||
| targetCompatibility = Config.javaVersion | ||
| } | ||
| } | ||
|
|
||
| dependencies { | ||
| implementation(libs.core.ktx) | ||
| implementation(projects.composeApp) | ||
| implementation(libs.koin.android) | ||
| implementation(libs.lottie) | ||
| implementation(project.dependencies.platform(libs.firebase.bom)) | ||
| implementation(libs.firebase.analytics) | ||
| implementation(libs.firebase.crashlytics) | ||
| implementation(libs.koin.core) | ||
| implementation(libs.activity.compose) | ||
| } |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,63 +1,35 @@ | ||
| @file:Suppress("UnstableApiUsage") | ||
|
|
||
| import extensions.iosTarget | ||
| import extensions.setupAndroidDefaultConfig | ||
| import extensions.setupCompileOptions | ||
| import extensions.setupNameSpace | ||
| import extensions.setupPackingOptions | ||
| import org.gradle.accessors.dm.LibrariesForLibs | ||
| import org.gradle.kotlin.dsl.the | ||
|
|
||
| val libs = the<LibrariesForLibs>() | ||
|
|
||
| plugins { | ||
| id("org.jetbrains.kotlin.multiplatform") | ||
| id("com.android.library") | ||
| id("com.android.kotlin.multiplatform.library") | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| id("org.jetbrains.kotlin.plugin.serialization") | ||
| id("kotlin-parcelize") | ||
| id("com.streamplayer.dokka") | ||
| id("com.streamplayer.detekt") | ||
| } | ||
|
|
||
| kotlin { | ||
| jvmToolchain(21) | ||
| android { | ||
| val moduleName = project.displayName | ||
| .removePrefix("project ") | ||
| .replace(":", ".") | ||
| .replace("'", "") | ||
| .replace("-", ".") | ||
|
|
||
| androidTarget { | ||
| compilerOptions { | ||
| jvmTarget.set(Config.jvmTarget) | ||
| freeCompilerArgs.add("-Xstring-concat=inline") | ||
| } | ||
| } | ||
|
|
||
| iosTarget() | ||
| } | ||
|
|
||
| android { | ||
| setupNameSpace(project) | ||
| namespace = "${Config.applicationId}$moduleName" | ||
|
|
||
| setupCompileOptions() | ||
| compileSdk = Config.compileSdkVersion | ||
| minSdk = Config.minSdkVersion | ||
|
|
||
| setupPackingOptions() | ||
|
|
||
| setupAndroidDefaultConfig() | ||
| defaultConfig.targetSdk = Config.targetSdkVersion | ||
|
|
||
| buildTypes { | ||
| getByName("release") { | ||
| isMinifyEnabled = true | ||
| proguardFiles( | ||
| getDefaultProguardFile("proguard-android-optimize.txt"), | ||
| "proguard-rules.pro" | ||
| ) | ||
| consumerProguardFiles("proguard-rules.pro") | ||
| } | ||
|
|
||
| getByName("debug") { | ||
| isMinifyEnabled = false | ||
| } | ||
| androidResources.enable = true | ||
| } | ||
| } | ||
|
|
||
| dependencies { | ||
| add("dokkaPlugin", libs.dokka) | ||
| iosTarget() | ||
| } | ||
This file was deleted.
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Kotzilla voltará aqui #88 |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
composeApp agora é um modulo library como outro qualquer