xz_cultural/camera/build.gradle

138 lines
4.7 KiB
Groovy
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

apply plugin: 'com.android.library'
apply plugin: 'com.jakewharton.butterknife'
apply plugin: 'android-aspectjx'
//apply plugin: 'com.jfrog.bintray'
//version = "1.1.8"
android {
compileSdkVersion rootProject.ext.gCompileSdkVersion
defaultConfig {
minSdkVersion rootProject.ext.gMinSdkVersion
targetSdkVersion rootProject.ext.gTargetSdkVersion
versionCode rootProject.ext.gVersionCode
versionName rootProject.ext.gVersionName
javaCompileOptions {
annotationProcessorOptions {
arguments = [AROUTER_MODULE_NAME: project.getName()]
}
}
}
buildTypes {
debug {
minifyEnabled false
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
// lintOptions {
// abortOnError false
// }
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildToolsVersion '30.0.2'
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
testImplementation 'junit:junit:4.12'
implementation('androidx.appcompat:appcompat:1.4.1') { exclude module: 'support-v4' }
implementation project(':cm_utils')
implementation 'com.isseiaoki:simplecropview:1.1.8'
//glide
implementation "com.github.bumptech.glide:glide:${rootProject.ext.supportGlide}"
annotationProcessor "com.github.bumptech.glide:compiler:${rootProject.ext.supportGlide}"
//Arouter
annotationProcessor "com.alibaba:arouter-compiler:$rootProject.ext.gRouterCompileVersion"
//butterknife
annotationProcessor "com.jakewharton:butterknife-compiler:$rootProject.ext.gButterKnifeVersion"
//Rxjava
implementation "io.reactivex.rxjava2:rxjava:${rootProject.ext.gRxJavaVersion}"
implementation "io.reactivex.rxjava2:rxandroid:${rootProject.ext.gRxAndroid}"
//RxJava
implementation "com.squareup.retrofit2:retrofit:${rootProject.ext.gRetrofitVersion}"
//屏幕适配
implementation 'com.github.jarryleo:MagicScreenAdapter:v2.1'
}
//def siteUrl = 'https://github.com/CJT2325/CameraView' // 项目的主页
//def gitUrl = 'https://github.com/CJT2325/CameraView.git' // Git仓库的url
//group = "cjt.library.wheel" // Maven Group ID for the artifact
//install {
// repositories.mavenInstaller {
// // This generates POM.xml with proper parameters
// pom {
// project {
// packaging 'aar'
// // Add your description here
// name 'A simple camera view' //项目的描述 你可以多写一点
// url siteUrl
// // Set your license
// licenses {
// license {
// name 'The Apache Software License, Version 2.0'
// url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
// }
// }
// developers {
// developer {
// id 'cjt' //填写的一些基本信息
// name 'JiaTong Chen'
// email '445263848@qq.com'
// }
// }
// scm {
// connection gitUrl
// developerConnection gitUrl
// url siteUrl
// }
// }
// }
// }
//}
//task sourcesJar(type: Jar) {
// from android.sourceSets.main.java.srcDirs
// classifier = 'sources'
//}
//task javadoc(type: Javadoc) {
// options.encoding = "UTF-8"
// source = android.sourceSets.main.java.srcDirs
// classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
//}
//task javadocJar(type: Jar, dependsOn: javadoc) {
// classifier = 'javadoc'
// from javadoc.destinationDir
//}
//artifacts {
// archives javadocJar
// archives sourcesJar
//}
//File localProps = project.rootProject.file('local.properties')
//if (localProps.exists()) {
// Properties properties = new Properties()
// properties.load(localProps.newDataInputStream())
//
// bintray {
// user = properties.getProperty("bintray.user")
// key = properties.getProperty("bintray.apikey")
// configurations = ['archives']
// pkg {
// repo = "maven"
// name = "cameraView"
// websiteUrl = siteUrl
// vcsUrl = gitUrl
// licenses = ["Apache-2.0"]
// publish = true
// }
// }
//}