You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
100 lines
3.3 KiB
100 lines
3.3 KiB
plugins {
|
|
id 'com.android.application'
|
|
id 'org.jetbrains.kotlin.android'
|
|
}
|
|
|
|
def apikeyPropertiesFile = rootProject.file("app/apikey.properties")
|
|
def apikeyProperties = new Properties()
|
|
apikeyProperties.load(new FileInputStream(apikeyPropertiesFile))
|
|
apply plugin: 'kotlin-kapt'
|
|
|
|
android {
|
|
namespace 'com.example.cinapp'
|
|
compileSdk 32
|
|
|
|
defaultConfig {
|
|
buildConfigField("String", "TMDB_API_KEY", apikeyProperties['TMDB_API_KEY'])
|
|
applicationId "com.example.cinapp"
|
|
minSdk 21
|
|
targetSdk 32
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
buildFeatures {
|
|
viewBinding true
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '1.8'
|
|
}
|
|
buildFeatures {
|
|
compose = true
|
|
dataBinding true
|
|
}
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion = "1.4.0-alpha01"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
|
|
implementation "com.squareup.retrofit2:retrofit:2.9.0"
|
|
implementation "com.squareup.retrofit2:converter-moshi:2.9.0"
|
|
implementation 'androidx.core:core-ktx:1.7.0'
|
|
implementation 'androidx.appcompat:appcompat:1.4.1'
|
|
implementation 'com.google.android.material:material:1.5.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
|
|
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
|
|
|
|
|
implementation 'androidx.navigation:navigation-fragment-ktx:2.3.0'
|
|
implementation 'androidx.navigation:navigation-ui-ktx:2.3.0'
|
|
implementation 'androidx.compose.ui:ui:1.1.1'
|
|
implementation 'androidx.compose.material:material-icons-core:1.1.1'
|
|
implementation 'androidx.compose.material:material-icons-extended:1.1.1'
|
|
|
|
implementation "androidx.compose.ui:ui-tooling:1.1.1"
|
|
implementation "androidx.compose.material:material:1.1.1"
|
|
implementation "androidx.compose.material:material-ripple:1.1.1"
|
|
|
|
implementation 'com.github.bumptech.glide:glide:4.11.0'
|
|
kapt 'com.github.bumptech.glide:compiler:4.11.0'
|
|
|
|
implementation 'androidx.lifecycle:lifecycle-viewmodel:2.4.0'
|
|
implementation 'androidx.lifecycle:lifecycle-livedata:2.4.0'
|
|
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.4.0'
|
|
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.0'
|
|
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.4.0'
|
|
implementation 'androidx.lifecycle:lifecycle-common-java8:2.4.0'
|
|
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
|
|
implementation 'androidx.lifecycle:lifecycle-process:2.4.0'
|
|
implementation 'androidx.lifecycle:lifecycle-service:2.4.0'
|
|
implementation 'androidx.lifecycle:lifecycle-viewmodel-savedstate:2.4.0'
|
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
|
|
|
|
implementation "androidx.room:room-runtime:2.4.0"
|
|
kapt "androidx.room:room-compiler:2.4.0"
|
|
implementation "androidx.room:room-ktx:2.4.0"
|
|
|
|
|
|
|
|
|
|
} |