Created
January 29, 2020 23:36
-
-
Save mfebrianto/9562e6f248d13d6767f961cb0da22a3e to your computer and use it in GitHub Desktop.
build.gradle of mock
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' | |
android { | |
compileSdkVersion 29 | |
buildToolsVersion "29.0.2" | |
defaultConfig { | |
applicationId "com.example.mock" | |
minSdkVersion 21 | |
targetSdkVersion 29 | |
versionCode 1 | |
versionName "1.0" | |
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | |
} | |
buildTypes { | |
debug { | |
buildConfigField "String", "SERVER_URL", '"http://127.0.0.1:8080"' | |
} | |
release { | |
buildConfigField "String", "SERVER_URL", '"https://postman-echo.com/time/now"' | |
minifyEnabled false | |
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | |
} | |
} | |
} | |
dependencies { | |
implementation fileTree(dir: 'libs', include: ['*.jar']) | |
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" | |
implementation 'androidx.appcompat:appcompat:1.0.2' | |
implementation 'androidx.core:core-ktx:1.0.2' | |
implementation 'androidx.constraintlayout:constraintlayout:1.1.3' | |
testImplementation 'junit:junit:4.12' | |
androidTestImplementation 'androidx.test.ext:junit:1.1.0' | |
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' | |
androidTestImplementation 'androidx.test:rules:1.1.0' | |
androidTestImplementation 'com.squareup.okhttp3:mockwebserver:4.3.0' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment