|
@@ -1,7 +1,9 @@
|
|
-apply plugin: 'com.android.library'
|
|
|
|
-apply plugin: 'kotlin-android'
|
|
|
|
-apply plugin: 'kotlin-android-extensions'
|
|
|
|
-apply plugin: 'kotlin-kapt'
|
|
|
|
|
|
+plugins {
|
|
|
|
+ id 'com.android.library'
|
|
|
|
+ id 'kotlin-android'
|
|
|
|
+ id 'kotlin-kapt'
|
|
|
|
+}
|
|
|
|
+
|
|
android {
|
|
android {
|
|
compileSdkVersion target_sdk_version
|
|
compileSdkVersion target_sdk_version
|
|
buildToolsVersion build_tools_version
|
|
buildToolsVersion build_tools_version
|
|
@@ -11,15 +13,16 @@ android {
|
|
targetSdkVersion target_sdk_version
|
|
targetSdkVersion target_sdk_version
|
|
versionCode app_version_code
|
|
versionCode app_version_code
|
|
versionName app_version
|
|
versionName app_version
|
|
- testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
|
|
|
|
|
+
|
|
|
|
+ multiDexEnabled true
|
|
dataBinding {
|
|
dataBinding {
|
|
enabled = true
|
|
enabled = true
|
|
}
|
|
}
|
|
-// ndk{
|
|
|
|
-// moduleName "JavaShopCommonNDK" //生成的so文件名字,调用C程序的代码中会用到该名字
|
|
|
|
-// abiFilters "armeabi", "armeabi-v7a", "x86" //输出指定三种平台下的so库
|
|
|
|
-// }
|
|
|
|
|
|
+
|
|
|
|
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
+ consumerProguardFiles "consumer-rules.pro"
|
|
}
|
|
}
|
|
|
|
+
|
|
lintOptions {
|
|
lintOptions {
|
|
abortOnError false
|
|
abortOnError false
|
|
}
|
|
}
|
|
@@ -27,28 +30,30 @@ android {
|
|
buildTypes {
|
|
buildTypes {
|
|
release {
|
|
release {
|
|
minifyEnabled false
|
|
minifyEnabled false
|
|
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
|
|
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
-// debug {
|
|
|
|
-// jniDebuggable true
|
|
|
|
-// }
|
|
|
|
}
|
|
}
|
|
sourceSets {
|
|
sourceSets {
|
|
main.java.srcDirs += 'src/main/code'
|
|
main.java.srcDirs += 'src/main/code'
|
|
-// main.jni.srcDirs = []
|
|
|
|
-// main.jniLibs.srcDir 'src/main/libs'
|
|
|
|
}
|
|
}
|
|
compileOptions {
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
}
|
|
|
|
+ kotlinOptions {
|
|
|
|
+ jvmTarget = '1.8'
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
dependencies {
|
|
dependencies {
|
|
- compile fileTree(include: ['*.jar','*.aar'], dir: 'libs')
|
|
|
|
- androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
|
|
|
|
- exclude group: 'com.android.support', module: 'support-annotations'
|
|
|
|
- })
|
|
|
|
|
|
+
|
|
|
|
+ implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
|
|
+ implementation 'androidx.core:core-ktx:1.3.1'
|
|
|
|
+ implementation 'androidx.appcompat:appcompat:1.3.0-alpha02'
|
|
|
|
+ implementation 'com.google.android.material:material:1.2.1'
|
|
|
|
+ //testImplementation 'junit:junit:4.+'
|
|
|
|
+ androidTestImplementation 'androidx.test.ext:junit:1.1.2'
|
|
|
|
+ androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
|
|
|
|
|
/**
|
|
/**
|
|
* UI适配
|
|
* UI适配
|
|
@@ -56,9 +61,14 @@ dependencies {
|
|
compile 'me.jessyan:autosize:1.1.1'
|
|
compile 'me.jessyan:autosize:1.1.1'
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 圆形ImageView
|
|
|
|
|
|
+ * 突破方法数限制
|
|
|
|
+ */
|
|
|
|
+ implementation("androidx.multidex:multidex:2.0.1")
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * JavaShop_Android 图片加载库
|
|
*/
|
|
*/
|
|
- compile 'de.hdodenhof:circleimageview:2.2.0'
|
|
|
|
|
|
+ compile 'com.enation.geamtear.image:glidepluin:1.0.2'
|
|
|
|
|
|
/**
|
|
/**
|
|
* JavaShop_Android 基础工具库
|
|
* JavaShop_Android 基础工具库
|
|
@@ -71,11 +81,6 @@ dependencies {
|
|
compile 'com.enation.geamtear.net:engine:1.1.5'
|
|
compile 'com.enation.geamtear.net:engine:1.1.5'
|
|
|
|
|
|
/**
|
|
/**
|
|
- * JavaShop_Android 图片加载库
|
|
|
|
- */
|
|
|
|
- compile 'com.enation.geamtear.image:glidepluin:1.0.2'
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
* JavaShop_Android 第三方工具库
|
|
* JavaShop_Android 第三方工具库
|
|
*/
|
|
*/
|
|
compile 'com.enation.geamtear.widget:ConnectView:1.1.1'
|
|
compile 'com.enation.geamtear.widget:ConnectView:1.1.1'
|
|
@@ -91,82 +96,43 @@ dependencies {
|
|
compile 'com.enation.geamtear.widget:NavigationView:1.1.0'
|
|
compile 'com.enation.geamtear.widget:NavigationView:1.1.0'
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
+ * JavaShop_Android Log日志库
|
|
|
|
+ */
|
|
|
|
+ compile 'com.enation.geamtear.util:logger:1.0.7'
|
|
|
|
+
|
|
|
|
+ /**
|
|
* JavaShop_Android 路由
|
|
* JavaShop_Android 路由
|
|
*/
|
|
*/
|
|
compile 'com.enation.geamtear:jrouter-logic:1.0.3'
|
|
compile 'com.enation.geamtear:jrouter-logic:1.0.3'
|
|
|
|
|
|
|
|
+ compile 'com.enation.geamtear:jrouter-annotation:1.0.1'
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* JavaShop_Android 图片选择工具库
|
|
* JavaShop_Android 图片选择工具库
|
|
*/
|
|
*/
|
|
- compile('com.enation.geamtear.photo:takephoto:1.0.2') {
|
|
|
|
|
|
+ implementation('com.enation.geamtear.photo:takephoto:1.0.2') {
|
|
exclude group: 'com.github.bumptech.glide'
|
|
exclude group: 'com.github.bumptech.glide'
|
|
exclude group: 'io.reactivex.rxjava2'
|
|
exclude group: 'io.reactivex.rxjava2'
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * JavaShop_Android Log日志库
|
|
|
|
- */
|
|
|
|
- compile 'com.enation.geamtear.util:logger:1.0.7'
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * Android基础依赖库
|
|
|
|
- */
|
|
|
|
- //noinspection GradleCompatible
|
|
|
|
- compile "com.android.support:design:$support_library_version"
|
|
|
|
- compile "com.android.support:support-v4:$support_library_version"
|
|
|
|
- compile "com.android.support:cardview-v7:$support_library_version"
|
|
|
|
- testCompile 'junit:junit:4.12'
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 突破方法数限制
|
|
|
|
|
|
+ * Aop埋点
|
|
*/
|
|
*/
|
|
- compile 'com.android.support:multidex:1.0.2'
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- compile 'com.github.1002326270xc:LayoutManager-FlowLayout:v1.7'
|
|
|
|
|
|
+ api "org.aspectj:aspectjrt:$aspectj_version"
|
|
|
|
|
|
/**
|
|
/**
|
|
* 刷新数据控件
|
|
* 刷新数据控件
|
|
*/
|
|
*/
|
|
- compile 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0-alpha-18'
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 动画框架 巨牛逼
|
|
|
|
- */
|
|
|
|
- compile 'com.airbnb.android:lottie:1.5.3'
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * Kotlin依赖
|
|
|
|
- */
|
|
|
|
- compile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
|
|
- compile 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.27.0'
|
|
|
|
|
|
+ api 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0-alpha-18'
|
|
|
|
|
|
- /**
|
|
|
|
- * Databinding
|
|
|
|
- */
|
|
|
|
- kapt "com.android.databinding:compiler:2.3.3"
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * Dagger依赖
|
|
|
|
- */
|
|
|
|
- compile 'com.google.dagger:dagger:2.7'
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * Dagger编译依赖
|
|
|
|
- */
|
|
|
|
- kapt 'com.google.dagger:dagger-compiler:2.7'
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 七巧板框架
|
|
|
|
- */
|
|
|
|
- compile 'com.alibaba.android:tangram:2.0.0@aar'
|
|
|
|
- compile('com.alibaba.android:vlayout:1.2.6.1@aar')
|
|
|
|
- compile 'com.alibaba.android:ultraviewpager:1.0.6.5@aar'
|
|
|
|
- compile('me.everything:overscroll-decor-android:1.0.1@aar') {
|
|
|
|
|
|
+ api 'com.alibaba.android:tangram:2.0.0@aar'
|
|
|
|
+ api('com.alibaba.android:vlayout:1.2.8@aar')
|
|
|
|
+ api 'com.alibaba.android:ultraviewpager:1.0.6.5@aar'
|
|
|
|
+ api('me.everything:overscroll-decor-android:1.0.1@aar') {
|
|
transitive true
|
|
transitive true
|
|
exclude group: 'com.android.support', module: 'recyclerview-v7'
|
|
exclude group: 'com.android.support', module: 'recyclerview-v7'
|
|
}
|
|
}
|
|
- compile('com.alibaba.android:virtualview:1.0.2@aar') {
|
|
|
|
|
|
+ api('com.alibaba.android:virtualview:1.0.2@aar') {
|
|
transitive true
|
|
transitive true
|
|
exclude group: 'com.android.support', module: 'appcompat-v7'
|
|
exclude group: 'com.android.support', module: 'appcompat-v7'
|
|
exclude group: 'com.tmall.android', module: 'tmallandroid_mui'
|
|
exclude group: 'com.tmall.android', module: 'tmallandroid_mui'
|
|
@@ -175,120 +141,76 @@ dependencies {
|
|
exclude group: 'com.android.support', module: 'support-annotations'
|
|
exclude group: 'com.android.support', module: 'support-annotations'
|
|
}
|
|
}
|
|
|
|
|
|
- //compile 'com.alibaba.android:tangram:2.2.1@aar'
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
- * Aop埋点
|
|
|
|
|
|
+ * 汉字辅助
|
|
*/
|
|
*/
|
|
- compile "org.aspectj:aspectjrt:$aspectj_version"
|
|
|
|
|
|
+ compile files('libs/chinese2py.jar')
|
|
|
|
|
|
/**
|
|
/**
|
|
* constraint-layout布局依赖
|
|
* constraint-layout布局依赖
|
|
*/
|
|
*/
|
|
- compile 'com.android.support.constraint:constraint-layout:1.1.0-beta5'
|
|
|
|
|
|
+ //implementation 'com.android.support.constraint:constraint-layout:2.0.1'
|
|
|
|
+ implementation("androidx.constraintlayout:constraintlayout:2.1.4")
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 指示器
|
|
|
|
- */
|
|
|
|
- compile 'com.github.hackware1993:magicindicator:1.5.0'
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 汉字辅助
|
|
|
|
|
|
+ * Dagger依赖
|
|
*/
|
|
*/
|
|
- compile files('libs/chinese2py.jar')
|
|
|
|
|
|
+ api 'com.google.dagger:dagger:2.7'
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 二维码扫描
|
|
|
|
|
|
+ * Dagger编译依赖
|
|
*/
|
|
*/
|
|
- compile 'cn.yipianfengye.android:zxing-library:2.2'
|
|
|
|
|
|
+ kapt 'com.google.dagger:dagger-compiler:2.7'
|
|
|
|
|
|
/**
|
|
/**
|
|
* GLIDE 图片处理器
|
|
* GLIDE 图片处理器
|
|
*/
|
|
*/
|
|
- compile ('jp.wasabeef:glide-transformations:2.0.1') {
|
|
|
|
|
|
+ implementation ('jp.wasabeef:glide-transformations:2.0.1') {
|
|
exclude group: 'com.github.bumptech.glide'
|
|
exclude group: 'com.github.bumptech.glide'
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 时间选择器
|
|
* 时间选择器
|
|
*/
|
|
*/
|
|
- compile 'com.contrarywind:Android-PickerView:4.1.6'
|
|
|
|
|
|
+ api 'com.contrarywind:Android-PickerView:4.1.6'
|
|
|
|
|
|
/**
|
|
/**
|
|
* 图片查看器
|
|
* 图片查看器
|
|
*/
|
|
*/
|
|
- compile 'com.github.iielse:ImageWatcher:1.1.5'
|
|
|
|
|
|
+ api 'com.github.iielse:ImageWatcher:1.1.5'
|
|
|
|
|
|
/**
|
|
/**
|
|
* 权限控制
|
|
* 权限控制
|
|
*/
|
|
*/
|
|
- compile 'pub.devrel:easypermissions:3.0.0'
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- compile 'com.github.pinguo-zhouwei:MZBannerView:v2.0.2'
|
|
|
|
|
|
+ api 'pub.devrel:easypermissions:3.0.0'
|
|
|
|
|
|
/**
|
|
/**
|
|
- * netty
|
|
|
|
|
|
+ * 二维码扫描
|
|
*/
|
|
*/
|
|
- compile 'io.netty:netty-all:4.1.42.Final'
|
|
|
|
|
|
+ api 'cn.yipianfengye.android:zxing-library:2.2'
|
|
|
|
|
|
/**
|
|
/**
|
|
- * json
|
|
|
|
|
|
+ * netty
|
|
*/
|
|
*/
|
|
- compile 'com.alibaba:fastjson:1.2.23'
|
|
|
|
|
|
+ api 'io.netty:netty-all:4.1.42.Final'
|
|
|
|
+ //解决 引入上方库,Log4J2Logger报错的问题
|
|
|
|
+ annotationProcessor 'org.apache.logging.log4j:log4j-core:2.7'
|
|
|
|
+ implementation 'org.apache.logging.log4j:log4j-api:2.7'
|
|
|
|
|
|
/**
|
|
/**
|
|
* google
|
|
* google
|
|
*/
|
|
*/
|
|
- compile 'com.google.guava:guava:20.0'
|
|
|
|
-
|
|
|
|
- compile 'org.greenrobot:eventbus:3.0.0'
|
|
|
|
-
|
|
|
|
- compile 'com.github.anrwatchdog:anrwatchdog:1.3.+'
|
|
|
|
-
|
|
|
|
-// compile('io.reactivex.rxjava2:rxandroid:2.1.0') {
|
|
|
|
-// exclude group: 'io.reactivex.rxjava2'
|
|
|
|
-// }
|
|
|
|
-}
|
|
|
|
|
|
+ api 'com.google.guava:guava:20.0'
|
|
|
|
|
|
-repositories {
|
|
|
|
- flatDir {
|
|
|
|
- dirs 'libs'
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
|
|
+ /**
|
|
|
|
+ * json
|
|
|
|
+ */
|
|
|
|
+ api 'com.alibaba:fastjson:1.2.23'
|
|
|
|
|
|
-//tasks.withType(JavaCompile) {
|
|
|
|
-// compileTask -> compileTask.dependsOn ndkBuild
|
|
|
|
-//}
|
|
|
|
-//
|
|
|
|
-//task ndkBuild(type: Exec) {
|
|
|
|
-// workingDir file('src/main/jni')
|
|
|
|
-// commandLine getNdkBuildCmd()
|
|
|
|
-//}
|
|
|
|
-//
|
|
|
|
-//task cleanNative(type: Exec){
|
|
|
|
-// workingDir file('src/main/jni')
|
|
|
|
-// commandLine getNdkBuildCmd(), 'clean'
|
|
|
|
-//}
|
|
|
|
-//
|
|
|
|
-//clean.dependsOn cleanNative
|
|
|
|
-//
|
|
|
|
-//def getNdkDir() {
|
|
|
|
-// if (System.env.ANDROID_NDK_ROOT != null)
|
|
|
|
-// return System.env.ANDROID_NDK_ROOT
|
|
|
|
-// Properties properties = new Properties()
|
|
|
|
-// properties.load(project.rootProject.file('local.properties').newDataInputStream())
|
|
|
|
-// def ndkdir = properties.getProperty('ndk.dir', null)
|
|
|
|
-// if (ndkdir == null)
|
|
|
|
-// throw new GradleException("NDK location not found. Define location with ndk.dir in the local.properties file or with an ANDROID_NDK_ROOT environment variable.")
|
|
|
|
-// return ndkdir
|
|
|
|
-//}
|
|
|
|
-//
|
|
|
|
-//def getNdkBuildCmd() {
|
|
|
|
-// def ndkbuild = getNdkDir() + "/ndk-build"
|
|
|
|
-// //Window下需要加.cmd后缀,Mac下则不需要
|
|
|
|
-// ndkbuild += ""
|
|
|
|
-// return ndkbuild
|
|
|
|
-//}
|
|
|
|
|
|
+ api 'org.greenrobot:eventbus:3.0.0'
|
|
|
|
|
|
|
|
+ api 'com.github.anrwatchdog:anrwatchdog:1.3.0'
|
|
|
|
|
|
|
|
+ api 'com.github.Jay-Goo:RangeSeekBar:v3.0.0'
|
|
|
|
+}
|