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.
pocketcommunityclient/app/build.gradle

125 lines
4.3 KiB

ext {
//本地服务端测试地址,把ip地址部分改成ipconfig /all找到的内网地址
API_HOST = 'http://192.168.3.14:8080/'
//本地rap2服务端测试地址,把ip地址部分改成ipconfig /all找到的内网地址
RAP2_API_HOST = 'http://192.168.3.14:38080/app/mock/1'
}
5 years ago
apply plugin: 'com.android.application'
apply plugin: 'multi-languages'
5 years ago
android {
signingConfigs {
debug {
storeFile file('pan.key')
storePassword 'panpan'
keyAlias = 'pan'
keyPassword 'panpan'
}
}
5 years ago
compileSdkVersion 29
buildToolsVersion "29.0.3"
defaultConfig {
applicationId "com.community.pocket"
minSdkVersion 19
5 years ago
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
5 years ago
}
buildTypes {
debug {
buildConfigField('String', 'API_HOST', "\"" + RAP2_API_HOST + "\"")
signingConfig = signingConfigs.debug
}
rap2debug {
buildConfigField('String', 'API_HOST', "\"" + RAP2_API_HOST + "\"")
signingConfig = signingConfigs.debug
debuggable = true
}
5 years ago
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
buildConfigField('String', 'API_HOST', "\"" + API_HOST + "\"")
signingConfig = signingConfigs.debug
}
serverdebug {
buildConfigField('String', 'API_HOST', "\"" + API_HOST + "\"")
signingConfig = signingConfigs.debug
debuggable = true
5 years ago
}
}
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'
}
}
}
5 years ago
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.google.android.material:material:1.1.0'
5 years ago
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.2'
implementation 'androidx.navigation:navigation-ui:2.2.2'
5 years ago
implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
5 years ago
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
testImplementation 'junit:junit:4.13'
5 years ago
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'
5 years ago
def room_version = '2.2.5'
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"
implementation 'com.youth.banner:banner:2.0.7'
implementation 'de.hdodenhof:circleimageview:3.1.0'
5 years ago
}