|
@ -3,15 +3,12 @@ apply plugin: 'com.github.dcendents.android-maven' |
|
|
group='com.github.jiangdongguo' |
|
|
group='com.github.jiangdongguo' |
|
|
|
|
|
|
|
|
android { |
|
|
android { |
|
|
compileSdkVersion 25 |
|
|
compileSdkVersion rootProject.ext.versionCompiler |
|
|
buildToolsVersion '26.0.2' |
|
|
|
|
|
|
|
|
|
|
|
defaultConfig { |
|
|
defaultConfig { |
|
|
minSdkVersion 16 |
|
|
minSdkVersion rootProject.ext.minSdkVersion |
|
|
targetSdkVersion 22 |
|
|
targetSdkVersion rootProject.ext.versionTarget |
|
|
versionCode 1 |
|
|
versionCode 1 |
|
|
versionName "1.0" |
|
|
versionName rootProject.ext.versionNameString |
|
|
|
|
|
|
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" |
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" |
|
|
} |
|
|
} |
|
|
buildTypes { |
|
|
buildTypes { |
|
@ -20,17 +17,25 @@ android { |
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' |
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
// solving com.android.tools.r8.CompilationFailedException: Compilation failed to complete |
|
|
|
|
|
compileOptions { |
|
|
|
|
|
sourceCompatibility rootProject.ext.javaSourceCompatibility |
|
|
|
|
|
targetCompatibility rootProject.ext.javaTargetCompatibility |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dependencies { |
|
|
dependencies { |
|
|
compile fileTree(dir: 'libs', include: ['*.jar']) |
|
|
implementation fileTree(dir: new File(buildDir, 'libs'), include: '*.jar') |
|
|
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { |
|
|
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', { |
|
|
exclude group: 'com.android.support', module: 'support-annotations' |
|
|
exclude group: 'com.android.support', module: 'support-annotations' |
|
|
}) |
|
|
}) |
|
|
compile 'com.android.support:appcompat-v7:25.3.1' |
|
|
testImplementation 'junit:junit:4.12' |
|
|
testCompile 'junit:junit:4.12' |
|
|
implementation "com.android.support:appcompat-v7:${supportLibVersion}" |
|
|
compile("com.serenegiant:common:${commonLibVersion}") { |
|
|
implementation "com.android.support:support-annotations:${supportLibVersion}" |
|
|
|
|
|
// when changing compile to implementation |
|
|
|
|
|
// AS will report exception of com.serenegiant.widget.IAspectRatioView |
|
|
|
|
|
api("com.serenegiant:common:${commonLibVersion}") { |
|
|
exclude module: 'support-v4' |
|
|
exclude module: 'support-v4' |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|