-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/.idea/caches | ||
/.idea/libraries | ||
/.idea/modules.xml | ||
/.idea/workspace.xml | ||
/.idea/navEditor.xml | ||
/.idea/assetWizardSettings.xml | ||
.DS_Store | ||
/build | ||
/captures | ||
.externalNativeBuild | ||
.cxx | ||
local.properties |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,144 @@ | ||
/* | ||
* Copyright 2023 Stanislav Aleshin | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* imitations under the License. | ||
*/ | ||
|
||
import com.android.build.gradle.internal.cxx.configure.gradleLocalProperties | ||
|
||
plugins { | ||
id("com.android.application") | ||
id("org.jetbrains.kotlin.android") | ||
id("kotlin-parcelize") | ||
kotlin("kapt") | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
google() | ||
} | ||
|
||
android { | ||
val localProperties = gradleLocalProperties(rootDir) | ||
|
||
namespace = Config.applicationId | ||
compileSdk = Config.compileSdkVersion | ||
|
||
defaultConfig { | ||
applicationId = Config.applicationId | ||
minSdk = Config.minSdkVersion | ||
targetSdk = Config.targetSdkVersion | ||
versionCode = Config.versionCode | ||
versionName = Config.versionName | ||
|
||
testInstrumentationRunner = Config.testInstrumentRunner | ||
vectorDrawables { | ||
useSupportLibrary = true | ||
} | ||
} | ||
|
||
signingConfigs { | ||
create("release") { | ||
storeFile = file(localProperties.getProperty("storeFile")) | ||
storePassword = localProperties.getProperty("storePassword") | ||
keyAlias = localProperties.getProperty("keyAlias") | ||
keyPassword = localProperties.getProperty("keyPassword") | ||
} | ||
getByName("debug") { | ||
storeFile = file(localProperties.getProperty("storeFile")) | ||
storePassword = localProperties.getProperty("storePassword") | ||
keyAlias = localProperties.getProperty("keyAlias") | ||
keyPassword = localProperties.getProperty("keyPassword") | ||
} | ||
} | ||
|
||
buildTypes { | ||
getByName("release") { | ||
isDebuggable = false | ||
isMinifyEnabled = true | ||
isShrinkResources = true | ||
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro") | ||
signingConfig = signingConfigs.getByName("release") | ||
} | ||
getByName("debug") { | ||
applicationIdSuffix = ".debug" | ||
isDebuggable = true | ||
signingConfig = signingConfigs.getByName("debug") | ||
} | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility = JavaVersion.VERSION_17 | ||
targetCompatibility = JavaVersion.VERSION_17 | ||
} | ||
|
||
kotlinOptions { | ||
jvmTarget = Config.jvmTarget | ||
} | ||
|
||
buildFeatures { | ||
compose = true | ||
buildConfig = true | ||
} | ||
|
||
composeOptions { | ||
kotlinCompilerExtensionVersion = Config.kotlinCompiler | ||
} | ||
|
||
packaging { | ||
resources { | ||
excludes += "/META-INF/{AL2.0,LGPL2.1}" | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation(project(":module_injector")) | ||
implementation(project(":core:common")) | ||
implementation(project(":core:ui")) | ||
implementation(project(":features:home:impl")) | ||
implementation(project(":features:home:api")) | ||
implementation(project(":features:settings:impl")) | ||
implementation(project(":features:settings:api")) | ||
implementation(project(":features:player:impl")) | ||
implementation(project(":features:player:api")) | ||
|
||
implementation(Dependencies.AndroidX.core) | ||
implementation(Dependencies.AndroidX.appcompat) | ||
implementation(Dependencies.AndroidX.material) | ||
implementation(Dependencies.AndroidX.googleMaterial) | ||
implementation(Dependencies.AndroidX.lifecycleRuntime) | ||
implementation(Dependencies.AndroidX.systemUiController) | ||
|
||
implementation(Dependencies.Compose.ui) | ||
implementation(Dependencies.Compose.activity) | ||
|
||
implementation(Dependencies.Dagger.core) | ||
kapt(Dependencies.Dagger.kapt) | ||
|
||
implementation(Dependencies.Room.core) | ||
kapt(Dependencies.Room.kapt) | ||
|
||
implementation(Dependencies.Voyager.navigator) | ||
implementation(Dependencies.Voyager.screenModel) | ||
implementation(Dependencies.Voyager.transitions) | ||
|
||
testImplementation(Dependencies.Test.jUnit) | ||
androidTestImplementation(Dependencies.Test.jUnitExt) | ||
androidTestImplementation(Dependencies.Test.espresso) | ||
androidTestImplementation(Dependencies.Test.composeJUnit) | ||
debugImplementation(Dependencies.Compose.uiTooling) | ||
debugImplementation(Dependencies.Compose.uiTestManifest) | ||
|
||
debugImplementation(Dependencies.Leakcanary.library) | ||
} |