| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- apply plugin: 'com.android.application'
- //apply plugin: 'kotlin-android-extensions'
- //apply plugin: 'kotlin-android'
- android {
- compileSdkVersion versions.compileSdk
- buildToolsVersion versions.buildTools
- defaultConfig {
- minSdkVersion versions.minSdk
- targetSdkVersion versions.targetSdk
- applicationId "com.miekir.eden"
- versionCode 6
- versionName "1.6"
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- // 支持64位架构(上架谷歌市场必要条件),'x86_64','x86'
- ndk.abiFilters 'armeabi-v7a','arm64-v8a'
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- signingConfigs {
- config {
- storeFile file('commonkey')
- storePassword "away6899458"
- keyAlias "sz"
- keyPassword "away6899458"
- }
- }
- flavorDimensions "url"
- productFlavors {
- dev {
- // 开发环境宿舍服务器
- buildConfigField("String", "BASE_URL", '"http://192.168.0.190:8080/"')
- buildConfigField("String", "HOST_STATIC_RESOURCE", '"http://192.168.0.190/"')
- }
- rel {
- // 正式上线
- buildConfigField("String", "BASE_URL", '"http://app.jianjie.life:11111/"')
- buildConfigField("String", "HOST_STATIC_RESOURCE", '"http://jianjie.life/"')
- }
- company {
- // 开发2
- buildConfigField("String", "BASE_URL", '"http://10.16.0.113:8080/"')
- buildConfigField("String", "HOST_STATIC_RESOURCE", '"http://10.16.0.113/"')
- }
- }
- buildTypes {
- debug {
- }
- release {
- signingConfig signingConfigs.config
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
- // 定义输出的APK名字
- android.applicationVariants.all { variant ->
- variant.outputs.all {
- outputFileName = "Eden_v${defaultConfig.versionName}.apk"
- }
- }
- }
- //implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
- //增加'*.aar'就不用在android节点写下面的了:
- /* repositories {
- flatDir {
- dirs 'libs'
- }
- }*/
- dependencies {
- implementation fileTree(dir: 'libs', include: ['*.jar'])
- implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
- testImplementation 'junit:junit:4.12'
- androidTestImplementation 'androidx.test.ext:junit:1.1.1'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
- api project(path: ':common')
- implementation project(path: ':network')
- implementation project(path: ':mvp')
- //compile "androidx.core:core-ktx:+"
- //compile "androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0"
- //implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
- implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
- // RxActivityResult
- implementation 'com.github.VictorAlbertos:RxActivityResult:0.5.0-2.x'
- // 调试过程中可以查看详细的网络请求与相应
- debugImplementation 'com.readystatesoftware.chuck:library:1.1.0'
- releaseImplementation 'com.readystatesoftware.chuck:library-no-op:1.1.0'
- // 友盟
- implementation "com.umeng.umsdk:common:9.1.0" //(必选)
- implementation "com.umeng.umsdk:asms:1.1.3" // asms包依赖(必选)
- implementation "com.umeng.umsdk:crash:0.0.4" // native crash包依赖(必选)
- // Jsoup解析网页
- //implementation 'org.jsoup:jsoup:1.13.1'
- // 圆角图片
- //implementation 'de.hdodenhof:circleimageview:3.1.0'
- implementation 'com.makeramen:roundedimageview:2.3.0'
- // 文字对齐
- //implementation 'me.codeboy.android:align-text-view:2.3.2'
- //饺子视频播放器
- //implementation (name: 'jiaozivideoplayer-7.4.2', ext: 'aar')
- implementation 'cn.jzvd:jiaozivideoplayer:7.4.2'
- // 右划销毁Activity,另外:sockeqwe/SwipeBack也可以参考
- //implementation 'com.aitangba:swipeback:1.0.3'
- //implementation 'com.hannesdorfmann:swipeback:1.0.4'
- //implementation 'com.jude:swipebackhelper:3.1.2'
- // 图片点击可以放大缩小
- implementation 'com.github.chrisbanes:PhotoView:1.2.6'
- }
- repositories {
- mavenCentral()
- }
|