ext { API_HOST = 'http://192.168.3.132:8080/' RAP2_API_HOST = 'http://192.168.3.132:38080/app/mock/1' } apply plugin: 'com.android.application' apply plugin: 'multi-languages' android { compileSdkVersion 29 buildToolsVersion "29.0.3" defaultConfig { applicationId "com.community.pocket" minSdkVersion 17 targetSdkVersion 29 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { debug{ buildConfigField('String','API_HOST',"\""+API_HOST+"\"") } release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' buildConfigField('String','API_HOST',"\""+API_HOST+"\"") } } sourceSets { main { res { srcDirs 'src/main/res', 'src/main/res/layout/resetpwd', 'src/main/res/layout/resetpwd/layout', 'src/main/res/layout/main', 'src/main/res/layout/main/layout', 'src/main/res/layout/main/layout/forum', 'src/main/res/layout/main/layout/forum/layout', 'src/main/res/layout/main/layout/visitor', 'src/main/res/layout/main/layout/visitor/layout', 'src/main/res/layout/main/layout/info','src/main/res/layout/main/layout/info/layout', 'src/main/res/layout/main/layout/garbage','src/main/res/layout/main/layout/garbage/layout' } } } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'com.google.android.material:material:1.1.0' implementation 'androidx.annotation:annotation:1.1.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0' implementation 'androidx.navigation:navigation-fragment:2.2.1' implementation 'androidx.navigation:navigation-ui:2.2.1' implementation 'androidx.vectordrawable:vectordrawable:1.1.0' implementation 'androidx.legacy:legacy-support-v4:1.0.0' testImplementation 'junit:junit:4.13' androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' implementation 'com.github.jokar:multi-languages:0.0.8' implementation 'org.xutils:xutils:3.8.5' implementation 'com.squareup.okhttp3:okhttp:4.5.0' implementation 'com.wuhenzhizao:titlebar:1.2.0' implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0' implementation 'androidx.gridlayout:gridlayout:1.0.0' implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.6' implementation 'org.conscrypt:conscrypt-android:2.4.0' def room_version = "2.2.3" implementation "androidx.room:room-runtime:$room_version" annotationProcessor "androidx.room:room-compiler:$room_version" // For Kotlin use kapt instead of annotationProcessor // Test helpers testImplementation "androidx.room:room-testing:$room_version" }