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.
124 lines
4.3 KiB
124 lines
4.3 KiB
ext {
|
|
//本地服务端测试地址,把ip地址部分改成ipconfig /all找到的内网地址
|
|
API_HOST = 'http://192.168.3.132:8080/'
|
|
//本地rap2服务端测试地址,把ip地址部分改成ipconfig /all找到的内网地址
|
|
RAP2_API_HOST = 'http://192.168.101.3:38080/app/mock/1'
|
|
}
|
|
apply plugin: 'com.android.application'
|
|
apply plugin: 'multi-languages'
|
|
android {
|
|
signingConfigs {
|
|
debug {
|
|
storeFile file('pan.key')
|
|
storePassword 'panpan'
|
|
keyAlias = 'pan'
|
|
keyPassword 'panpan'
|
|
}
|
|
}
|
|
compileSdkVersion 29
|
|
buildToolsVersion "29.0.3"
|
|
|
|
defaultConfig {
|
|
applicationId "com.community.pocket"
|
|
minSdkVersion 19
|
|
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
|
|
|
|
}
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|
|
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.2'
|
|
implementation 'androidx.navigation:navigation-ui:2.2.2'
|
|
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.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'
|
|
}
|
|
|