Showing
8 changed files
with
93 additions
and
2 deletions
| @@ -56,6 +56,6 @@ repositories { | @@ -56,6 +56,6 @@ repositories { | ||
| 56 | dependencies { | 56 | dependencies { |
| 57 | // implementation 'androidx.appcompat:appcompat:1.6.1' | 57 | // implementation 'androidx.appcompat:appcompat:1.6.1' |
| 58 | implementation "com.google.android.material:material:1.4.0" | 58 | implementation "com.google.android.material:material:1.4.0" |
| 59 | - implementation 'com.wd:log:1.0.0' | ||
| 60 | - implementation 'com.wd:startup:1.0.0' | 59 | + implementation project(':lib_base') |
| 60 | + | ||
| 61 | } | 61 | } |
lib_base/.gitignore
0 → 100644
| 1 | +/build |
lib_base/README.md
0 → 100644
lib_base/build.gradle
0 → 100644
| 1 | +plugins { | ||
| 2 | + id 'com.android.library' | ||
| 3 | +} | ||
| 4 | + | ||
| 5 | +android { | ||
| 6 | + compileSdkVersion var.compileSdkVersion | ||
| 7 | + | ||
| 8 | + defaultConfig { | ||
| 9 | + minSdkVersion var.minSdkVersion | ||
| 10 | + targetSdkVersion var.targetSdkVersion | ||
| 11 | + versionCode var.versionCode | ||
| 12 | + versionName var.versionName | ||
| 13 | + | ||
| 14 | + testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
| 15 | + consumerProguardFiles "consumer-rules.pro" | ||
| 16 | + | ||
| 17 | + buildConfigField "String", "API_VERSION", "\"${requestVersion}\"" | ||
| 18 | + | ||
| 19 | + javaCompileOptions { | ||
| 20 | + annotationProcessorOptions { | ||
| 21 | + arguments = [AROUTER_MODULE_NAME: project.getName()] | ||
| 22 | + } | ||
| 23 | + } | ||
| 24 | + } | ||
| 25 | + | ||
| 26 | + buildTypes { | ||
| 27 | + release { | ||
| 28 | + minifyEnabled false | ||
| 29 | + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
| 30 | + } | ||
| 31 | + } | ||
| 32 | + compileOptions { | ||
| 33 | + sourceCompatibility JavaVersion.VERSION_1_8 | ||
| 34 | + targetCompatibility JavaVersion.VERSION_1_8 | ||
| 35 | + } | ||
| 36 | +} | ||
| 37 | + | ||
| 38 | +dependencies { | ||
| 39 | + // 快马基础库 | ||
| 40 | + api 'com.wd:wdkitcore:1.0.5' | ||
| 41 | + api 'com.wd:wdkit:1.0.1' | ||
| 42 | + api 'com.wd:wdnetwork:1.0.0' | ||
| 43 | + api 'com.wd:wdinterface:1.0.3' | ||
| 44 | + // api 'com.wd:servicekit:1.0.3' | ||
| 45 | + api 'com.wd:wdrouter:1.0.0' | ||
| 46 | + api 'com.wd:log:1.0.1' | ||
| 47 | + api 'com.wd:startup:1.0.0' | ||
| 48 | + | ||
| 49 | + // 基础依赖库 | ||
| 50 | + api 'com.alibaba:arouter-api:1.5.2' | ||
| 51 | + api 'com.squareup.okhttp3:okhttp:4.8.0' | ||
| 52 | + api 'com.squareup.retrofit2:retrofit:2.9.0' | ||
| 53 | + api 'com.squareup.retrofit2:converter-gson:2.9.0' | ||
| 54 | + api 'com.squareup.retrofit2:adapter-rxjava2:2.9.0' | ||
| 55 | + //rxjava | ||
| 56 | + api 'io.reactivex.rxjava2:rxjava:2.2.8' | ||
| 57 | + api 'io.reactivex.rxjava2:rxandroid:2.1.0' | ||
| 58 | + //解析bean | ||
| 59 | + api 'com.alibaba:fastjson:1.2.62' | ||
| 60 | + | ||
| 61 | + api 'androidx.appcompat:appcompat:1.2.0' | ||
| 62 | + api 'androidx.lifecycle:lifecycle-extensions:2.2.0' | ||
| 63 | +} |
lib_base/consumer-rules.pro
0 → 100644
lib_base/proguard-rules.pro
0 → 100644
| 1 | +# Add project specific ProGuard rules here. | ||
| 2 | +# You can control the set of applied configuration files using the | ||
| 3 | +# proguardFiles setting in build.gradle. | ||
| 4 | +# | ||
| 5 | +# For more details, see | ||
| 6 | +# http://developer.android.com/guide/developing/tools/proguard.html | ||
| 7 | + | ||
| 8 | +# If your project uses WebView with JS, uncomment the following | ||
| 9 | +# and specify the fully qualified class name to the JavaScript interface | ||
| 10 | +# class: | ||
| 11 | +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
| 12 | +# public *; | ||
| 13 | +#} | ||
| 14 | + | ||
| 15 | +# Uncomment this to preserve the line number information for | ||
| 16 | +# debugging stack traces. | ||
| 17 | +#-keepattributes SourceFile,LineNumberTable | ||
| 18 | + | ||
| 19 | +# If you keep the line number information, uncomment this to | ||
| 20 | +# hide the original source file name. | ||
| 21 | +#-renamesourcefileattribute SourceFile |
lib_base/src/main/AndroidManifest.xml
0 → 100644
-
Please register or login to post a comment