安卓代码初始化
This commit is contained in:
99
app/build.gradle
Normal file
99
app/build.gradle
Normal file
@@ -0,0 +1,99 @@
|
||||
apply plugin: 'com.android.application'
|
||||
|
||||
android {
|
||||
compileSdkVersion 28
|
||||
defaultConfig {
|
||||
applicationId "com.ydd.sportfaceid"
|
||||
minSdkVersion 19
|
||||
targetSdkVersion 28
|
||||
versionCode 4
|
||||
versionName "1.3"
|
||||
flavorDimensions "versionCode"
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
||||
android {
|
||||
lintOptions {
|
||||
abortOnError false
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility 1.8
|
||||
targetCompatibility 1.8
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
signingConfigs {
|
||||
release {
|
||||
keyAlias 'faceid'
|
||||
keyPassword '123456'
|
||||
storeFile file('../faceid.jks')
|
||||
storePassword '123456'
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
signingConfig signingConfigs.release
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
||||
productFlavors {
|
||||
|
||||
product {
|
||||
/**
|
||||
* 服务器连接
|
||||
*/
|
||||
buildConfigField("String", "SERVER_IP", "\"120.27.209.4\"")
|
||||
buildConfigField("String", "SERVER_PORT", "\"56791\"")
|
||||
// buildConfigField("String", "SERVER_IP", "\"192.168.1.200\"")
|
||||
// buildConfigField("String", "SERVER_PORT", "\"56794\"")
|
||||
/**
|
||||
* face++连接地址
|
||||
*/
|
||||
buildConfigField("String", "FACEID_WS_URL", "\"ws://192.168.1.111:9000/video?url=\"")
|
||||
|
||||
/**
|
||||
* 门禁连接地址
|
||||
*/
|
||||
buildConfigField("String", "DOOR_SERVER_IP", "\"192.168.1.150\"")
|
||||
buildConfigField("String", "DOOR_SERVER_PORT", "\"8000\"")
|
||||
|
||||
buildConfigField("String", "DOOR_SN", "\"MC-5824T28085603\"")
|
||||
buildConfigField("String", "DOOR_PWD", "\"FFFFFFFF\"")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
flatDir {
|
||||
dirs 'libs'
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
|
||||
implementation 'com.android.support:appcompat-v7:28.0.0'
|
||||
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
|
||||
implementation 'com.google.code.gson:gson:2.8.4'
|
||||
implementation 'com.squareup.okhttp3:okhttp:3.3.1'
|
||||
implementation 'io.netty:netty-all:4.1.17.Final'
|
||||
implementation 'org.greenrobot:eventbus:3.1.1'
|
||||
testImplementation 'junit:junit:4.12'
|
||||
androidTestImplementation 'com.android.support.test:runner:1.0.2'
|
||||
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
|
||||
implementation 'com.jakewharton:butterknife:8.8.1'
|
||||
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
|
||||
implementation 'io.reactivex:rxjava:1.2.4'
|
||||
implementation 'io.reactivex:rxandroid:1.2.1'
|
||||
implementation 'de.hdodenhof:circleimageview:2.2.0'
|
||||
implementation('com.github.bumptech.glide:glide:4.8.0') {
|
||||
exclude group: "com.android.support"
|
||||
}
|
||||
implementation 'de.mrmaffen:libvlc-android:2.1.12@aar'
|
||||
implementation "org.java-websocket:Java-WebSocket:1.4.0"
|
||||
compile 'com.tencent.bugly:crashreport:latest.release'
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user