Last active
January 3, 2024 22:47
-
-
Save sagar-viradiya/ea05cdeb8471ca028dd361e53512189e to your computer and use it in GitHub Desktop.
DevFest India 2020 Day 1 - build.gradle file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'com.android.application' | |
apply plugin: 'kotlin-android' | |
apply plugin: 'kotlin-android-extensions' | |
apply plugin: "kotlin-kapt" | |
android { | |
compileSdkVersion 29 | |
defaultConfig { | |
applicationId "com.devfest.india.bmsclone" | |
minSdkVersion 21 | |
targetSdkVersion 29 | |
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" | |
} | |
} | |
dependencies { | |
implementation fileTree(dir: "libs", include: ["*.jar"]) | |
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" | |
implementation 'androidx.core:core-ktx:1.3.1' | |
implementation 'androidx.appcompat:appcompat:1.2.0' | |
implementation 'com.google.android.material:material:1.2.1' | |
implementation 'androidx.constraintlayout:constraintlayout:2.0.1' | |
testImplementation 'junit:junit:4.13' | |
androidTestImplementation 'androidx.test.ext:junit:1.1.2' | |
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' | |
//Retrofit for Networking | |
implementation 'com.squareup.retrofit2:retrofit:2.9.0' | |
implementation 'com.squareup.retrofit2:converter-gson:2.9.0' | |
//Glide Image Loading Library | |
implementation 'com.github.bumptech.glide:glide:4.11.0' | |
//Room DB for database | |
implementation "androidx.room:room-runtime:2.2.5" | |
kapt "androidx.room:room-compiler:2.2.5" | |
kapt "androidx.lifecycle:lifecycle-compiler:2.2.0" | |
// ViewModel | |
implementation "androidx.lifecycle:lifecycle-extensions:2.2.0" | |
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0" | |
} |
sanchitsharma1
commented
Oct 16, 2020
via email
Thankyou sagar, I installed the SDK and now it works.
…On Fri, Oct 16, 2020 at 7:22 PM Sagar Viradiya ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
@sanchitsharma1 <https://github.com/sanchitsharma1> Make sure you have
installed the SDK platform for android version 29. Go to SDK Manager (You
can find it in the toolbar on top) -> SDK platform tab and choose Android
10.0 -> click on Apply below. After installation this should have been fix.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://gist.github.com/ea05cdeb8471ca028dd361e53512189e#gistcomment-3491883>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALQTKY6Q7G5ODKPVEZUEFTLSLBF2XANCNFSM4SSFPU5Q>
.
Can I get a java version of this file since I know java only.
@vikhyat187 this file uses groovy language. Gradle build system is based on groovy language.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment