realtimelocation/camera/build.gradle

125 lines
4.0 KiB
Groovy
Raw Permalink Normal View History

2020-09-21 10:35:40 +08:00
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jakewharton.butterknife'
//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
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
testImplementation 'junit:junit:4.12'
implementation('com.android.support:appcompat-v7:25.3.0') { exclude module: 'support-v4' }
implementation project(':cm_utils')
implementation 'com.isseiaoki:simplecropview:1.1.8'
//Arouter
annotationProcessor "com.alibaba:arouter-compiler:$rootProject.ext.gRouterCompileVersion"
//butterknife
annotationProcessor "com.jakewharton:butterknife-compiler:$rootProject.ext.gButterKnifeVersion"
}
//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
// }
// }
//}