|  |  |  | 
|---|
|  |  |  | plugins { | 
|---|
|  |  |  | id 'com.android.library' | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | def rootPath = rootProject.getRootDir().getAbsolutePath() | 
|---|
|  |  |  | def channelPath = "${rootPath}/channel/${CHANNEL_NAME}" | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | def channelJavaFiles = getAllFiles(new ArrayList<File>(), "${channelPath}/java") | 
|---|
|  |  |  |  | 
|---|
|  |  |  | android { | 
|---|
|  |  |  | compileSdkVersion 28 | 
|---|
|  |  |  | buildToolsVersion "28.0.3" | 
|---|
|  |  |  | compileSdkVersion 30 | 
|---|
|  |  |  | buildToolsVersion "30.0.0" | 
|---|
|  |  |  |  | 
|---|
|  |  |  | defaultConfig { | 
|---|
|  |  |  | minSdkVersion 21 | 
|---|
|  |  |  | //noinspection ExpiredTargetSdkVersion | 
|---|
|  |  |  | targetSdkVersion 28 | 
|---|
|  |  |  | targetSdkVersion 30 | 
|---|
|  |  |  | versionCode 1 | 
|---|
|  |  |  | multiDexEnabled true | 
|---|
|  |  |  | versionCode 6 | 
|---|
|  |  |  | versionName "6.0" | 
|---|
|  |  |  | versionName "1.0" | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | 
|---|
|  |  |  | consumerProguardFiles "consumer-rules.pro" | 
|---|
|  |  |  | multiDexEnabled true | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | flavorDimensions "version" | 
|---|
|  |  |  | productFlavors { | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | compileOptions { | 
|---|
|  |  |  | sourceCompatibility JavaVersion.VERSION_1_8 | 
|---|
|  |  |  | targetCompatibility JavaVersion.VERSION_1_8 | 
|---|
|  |  |  | sourceCompatibility JavaVersion.VERSION_11 | 
|---|
|  |  |  | targetCompatibility JavaVersion.VERSION_11 | 
|---|
|  |  |  | } | 
|---|
|  |  |  | packagingOptions {exclude 'META-INF/rxjava.properties'} | 
|---|
|  |  |  | lintOptions { | 
|---|
|  |  |  | checkReleaseBuilds false | 
|---|
|  |  |  | abortOnError false | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | dependencies { | 
|---|
|  |  |  | implementation 'com.android.support:support-annotations:28.0.0' | 
|---|
|  |  |  | testImplementation 'junit:junit:4.13.2' | 
|---|
|  |  |  | //    implementation 'com.android.support:support-annotations:28.0.0' | 
|---|
|  |  |  | //    testImplementation 'junit:junit:4.13.2' | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //noinspection GradleCompatible | 
|---|
|  |  |  | //    implementation 'com.android.support:appcompat-v7:28.0.0' | 
|---|