| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- apply plugin: 'com.android.library'
- apply plugin: 'com.jakewharton.butterknife'
- apply plugin: 'maven'
- def configs = rootProject.ext.configs
- def lib = rootProject.ext.deps
- android {
- compileSdkVersion configs.compileSdkVersion
- buildToolsVersion configs.buildToolsVersion
- defaultConfig {
- minSdkVersion configs.minSdkVersion
- targetSdkVersion configs.targetSdkVersion
- versionCode configs.versionCode
- versionName configs.versionName
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- consumerProguardFiles 'consumer-rules.pro'
- //aRouter
- javaCompileOptions {
- annotationProcessorOptions {
- arguments = [AROUTER_MODULE_NAME: project.getName()]
- }
- }
- }
- buildTypes {
- release {
- defaultPublishConfig 'release'
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- debug {
- defaultPublishConfig 'debug'
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- dalian {
- defaultPublishConfig 'dalian'
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- publishNonDefault true
- }
- ext{
- //group
- PUBLISH_GROUP_ID = "com.mgtech.base_library"
- //包名
- PUBLISH_ARTIFACT_ID = "base_library"
- //版本号
- PUBLISH_VERSION = "1.0.0"
- //仓库地址
- PUBLISH_URL = "file://D://repository/"
- }
- uploadArchives{
- repositories {
- mavenDeployer {
- repository(url:PUBLISH_URL)
- pom.project{
- groupId project.PUBLISH_GROUP_ID
- artifactId project.PUBLISH_ARTIFACT_ID
- version project.PUBLISH_VERSION
- }
- }
- }
- }
- dependencies {
- implementation fileTree(dir: 'libs', include: ['*.jar'])
- api lib.appcompat
- api lib.recyclerview
- api lib.design
- api lib.constraint
- api lib.gson
- api lib.glide
- api lib.baseRecyclerHelper
- //butterKnife
- api lib.butterknife
- annotationProcessor lib.butterknifeCompiler
- //aRouter
- api lib.aRouter
- annotationProcessor lib.aRouter_compiler
- //RxJava
- api lib.rxJava
- api lib.rxAndroid
- api lib.rxlifecycle
- api lib.rxlifecycle_comp
- //retrofit
- api lib.retrofit
- api lib.retrofitAdapter
- api lib.converter
- api lib.logging
- api lib.scalars
- //refresh
- api lib.smartrefresh
- api lib.easypermissions
- api lib.zxing
- // api lib.xUpdate
- api lib.okhttp
- api lib.liveBus
- api lib.multidex
- //jpush
- // api lib.jpush
- // api lib.jcore
- //room 数据库操作库
- api lib.room
- annotationProcessor lib.roomCompiler
- //rxJava for Room
- api lib.rxjavaForRoom
- api lib.navigationFragment
- api lib.navigationUi
- api lib.banner
- api lib.pickerView
- api lib.calendarview
- // api lib.biometricPrompt
- api lib.qmui
- api lib.bugly
- api lib.buglyNative
- api lib.superTextView
- //jpush
- api lib.jpush
- api lib.jcore
- // api lib.jsoup
- api 'com.github.LuckSiege.PictureSelector:picture_library:v2.5.8'
- api 'com.aliyun.dpa:oss-android-sdk:+'
- api 'com.airbnb.android:lottie:3.5.0'
- // api 'com.github.franmontiel:PersistentCookieJar:v1.0.1'
-
- testImplementation lib.junit
- androidTestImplementation lib.runner
- androidTestImplementation lib.espresso
- }
|