1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- apply plugin: 'com.android.library'
- //group='com.github.philjay'
- android {
- compileSdkVersion 28
- namespace 'com.github.philjay' // <-- 在这里添加 namespace
- buildToolsVersion '28.0.3'
- defaultConfig {
- minSdkVersion 14
- targetSdkVersion 28
- versionCode 3
- versionName '3.1.0'
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- }
- testOptions {
- unitTests.returnDefaultValues = true // this prevents "not mocked" error
- }
- }
- dependencies {
- implementation 'androidx.annotation:annotation:1.0.0'
- testImplementation 'junit:junit:4.12'
- }
- //
- //task sourcesJar(type: Jar) {
- // from android.sourceSets.main.java.srcDirs
- //// classifier = 'sources'
- //}
- //
- //task javadoc(type: Javadoc) {
- // options.charSet = 'UTF-8'
- // failOnError false
- // source = android.sourceSets.main.java.sourceFiles
- // classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
- //}
- //
- //task javadocJar(type: Jar, dependsOn: javadoc) {
- //// classifier = 'javadoc'
- // from javadoc.destinationDir
- //}
- //
- //artifacts {
- // archives sourcesJar
- // archives javadocJar
- //}
|