| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| import io.gitlab.arturbosch.detekt.Detekt | ||
| import org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_1_8 | ||
| import org.jetbrains.kotlin.gradle.dsl.KotlinVersion | ||
|
|
||
| plugins { | ||
| id("com.android.library") | ||
| alias(libs.plugins.kotlin.android) | ||
| alias(libs.plugins.kotlin.compose) | ||
| alias(libs.plugins.gradle.versions) | ||
| alias(libs.plugins.detekt) | ||
| } | ||
|
|
||
| android { | ||
| compileSdk = libs.versions.compileSdk.get().toInt() | ||
| namespace = "io.sentry.compose.navigation3" | ||
|
|
||
| defaultConfig { | ||
| minSdk = libs.versions.minSdk.get().toInt() | ||
| } | ||
|
|
||
| buildTypes { | ||
| getByName("debug") { consumerProguardFiles("proguard-rules.pro") } | ||
| getByName("release") { consumerProguardFiles("proguard-rules.pro") } | ||
| } | ||
|
|
||
| // AGP 9 only generates unit tests for the testBuildType. The debug variant is | ||
| // disabled, so unit tests must target release to run at all. | ||
| testBuildType = "release" | ||
|
|
||
| kotlin { | ||
| compilerOptions.jvmTarget = JVM_1_8 | ||
| compilerOptions.languageVersion = KotlinVersion.KOTLIN_1_9 | ||
| compilerOptions.apiVersion = KotlinVersion.KOTLIN_1_9 | ||
| } | ||
|
|
||
| lint { | ||
| warningsAsErrors = true | ||
| checkDependencies = true | ||
|
|
||
| // We run a full lint analysis as build part in CI, so skip vital checks for assemble tasks. | ||
| checkReleaseBuilds = false | ||
| } | ||
|
|
||
| androidComponents.beforeVariants { | ||
| it.enable = !Config.Android.shouldSkipDebugVariant(it.buildType) | ||
| } | ||
| } | ||
|
|
||
| kotlin { explicitApi() } | ||
|
|
||
| tasks.withType<Detekt>().configureEach { | ||
| // Target version of the generated JVM bytecode. It is used for type resolution. | ||
| jvmTarget = JavaVersion.VERSION_1_8.toString() | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| ##---------------Begin: proguard configuration for Compose ---------- | ||
|
|
||
| # To ensure that stack traces is unambiguous | ||
| # https://developer.android.com/studio/build/shrink-code#decode-stack-trace | ||
| -keepattributes LineNumberTable,SourceFile | ||
|
|
||
| ##---------------End: proguard configuration for Compose ---------- |
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.