Skip to content

Instantly share code, notes, and snippets.

@satadii11
Created November 22, 2021 08:25
Show Gist options
  • Save satadii11/b72d9ba215670651ddc754893b40765a to your computer and use it in GitHub Desktop.
Save satadii11/b72d9ba215670651ddc754893b40765a to your computer and use it in GitHub Desktop.
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'kotlin-kapt'
id 'dagger.hilt.android.plugin'
id("com.apollographql.apollo").version("2.5.10")
}
def apollo_version = "2.5.10"
android {
compileSdk 31
defaultConfig {
applicationId "io.github.satadii11.animeqlist"
minSdk 23
targetSdk 31
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
buildFeatures {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion '1.0.4'
}
}
dependencies {
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.1'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation "com.apollographql.apollo:apollo-runtime:$apollo_version"
implementation "com.apollographql.apollo:apollo-coroutines-support:$apollo_version"
implementation "com.squareup.okhttp3:logging-interceptor:4.9.1"
implementation 'androidx.compose.ui:ui:1.0.4'
implementation 'androidx.compose.ui:ui-tooling:1.0.4'
implementation 'androidx.compose.material:material:1.0.4'
implementation "com.google.android.material:compose-theme-adapter:1.0.4"
implementation 'androidx.activity:activity-compose:1.4.0'
implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.4.0'
implementation "com.github.skydoves:landscapist-coil:1.4.1"
implementation "androidx.paging:paging-runtime-ktx:3.0.1"
implementation "androidx.paging:paging-compose:1.0.0-alpha14"
implementation "com.google.dagger:hilt-android:2.38.1"
kapt "com.google.dagger:hilt-compiler:2.38.1"
}
apollo {
generateKotlinModels.set(true)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment