Skip to content

Commit

Permalink
增加配置
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangBingbin committed Aug 19, 2021
1 parent a1fdfee commit 1d8c506
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 16 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: 'com.android.application'
apply plugin: 'maven-publish'

android {
compileSdkVersion 26
Expand All @@ -16,7 +17,7 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions{
lintOptions {
checkReleaseBuilds false
abortOnError false
}
Expand All @@ -30,3 +31,17 @@ dependencies {
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.google.code.gson:gson:2.7'
}

afterEvaluate {
publishing {
publications {
// Creates a Maven publication called "release".
release(MavenPublication) {
// You can then customize attributes of the publication as shown below.
groupId = 'com.github.ZhangBingbin'
artifactId = 'android-picker-view'
version = '1.1.0'
}
}
}
}
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ buildscript {
google()
jcenter()
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.1'
Expand All @@ -20,6 +21,7 @@ allprojects {
google()
jcenter()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}

Expand Down

0 comments on commit 1d8c506

Please sign in to comment.