You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.3 KiB
53 lines
1.3 KiB
3 years ago
|
apply plugin: 'com.android.library'
|
||
|
apply plugin: 'maven-publish'
|
||
|
|
||
|
ext {
|
||
|
PUBLISH_GROUP_ID = 'com.theartofdev.edmodo'
|
||
|
PUBLISH_ARTIFACT_ID = 'android-image-cropper'
|
||
|
PUBLISH_VERSION = '2.3.1'
|
||
|
// gradlew clean build generateRelease
|
||
|
}
|
||
|
|
||
|
android {
|
||
|
|
||
|
compileSdkVersion 28
|
||
|
defaultConfig {
|
||
|
minSdkVersion 10
|
||
|
targetSdkVersion 28
|
||
|
versionCode 1
|
||
|
versionName PUBLISH_VERSION
|
||
|
}
|
||
|
// flavorDimensions "channel"
|
||
|
compileOptions {
|
||
|
targetCompatibility 1.8
|
||
|
sourceCompatibility 1.8
|
||
|
}
|
||
|
lintOptions {
|
||
|
abortOnError false
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// This configuration is used to publish the library to a local repo while a being forked and modified.
|
||
|
// It should really be set up so that the version are all in line, and set to be a SNAPSHOT.
|
||
|
// The version listed here is a temp hack to allow me to keep working.
|
||
|
android.libraryVariants
|
||
|
publishing {
|
||
|
publications {
|
||
|
maven(MavenPublication) {
|
||
|
|
||
|
groupId PUBLISH_GROUP_ID
|
||
|
artifactId PUBLISH_ARTIFACT_ID
|
||
|
version PUBLISH_VERSION + '-SNAPSHOT'
|
||
|
|
||
|
//artifact bundleRelease
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
//apply from: 'https://raw.githubusercontent.com/ArthurHub/release-android-library/master/android-release-aar.gradle'
|
||
|
|
||
|
dependencies {
|
||
|
implementation 'com.android.support:appcompat-v7:25+'
|
||
|
}
|
||
|
|