mirror of
https://github.com/YTVanced/VancedMicroG
synced 2024-12-01 07:33:02 +00:00
Update Gradle
This commit is contained in:
parent
3532954c3e
commit
4d8fb82ae5
4 changed files with 41 additions and 12 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,5 +3,4 @@ build/
|
||||||
local.properties
|
local.properties
|
||||||
*.iml
|
*.iml
|
||||||
.idea/
|
.idea/
|
||||||
build.gradle
|
|
||||||
BuildConfig.java
|
BuildConfig.java
|
||||||
|
|
38
build.gradle
Normal file
38
build.gradle
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2013-2016 microG Project Team
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
buildscript {
|
||||||
|
repositories {
|
||||||
|
jcenter()
|
||||||
|
}
|
||||||
|
dependencies {
|
||||||
|
classpath 'com.android.tools.build:gradle:2.1.3'
|
||||||
|
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
allprojects {
|
||||||
|
apply plugin: 'idea'
|
||||||
|
ext.androidBuildVersionTools = "23.0.3"
|
||||||
|
}
|
||||||
|
|
||||||
|
def androidCompileSdk() { return 23 }
|
||||||
|
|
||||||
|
subprojects {
|
||||||
|
repositories {
|
||||||
|
jcenter()
|
||||||
|
}
|
||||||
|
}
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
|
@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.12-all.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
|
||||||
|
|
|
@ -14,14 +14,6 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
buildscript {
|
|
||||||
repositories {
|
|
||||||
jcenter()
|
|
||||||
}
|
|
||||||
dependencies {
|
|
||||||
classpath 'com.android.tools.build:gradle:2.1.2'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
apply plugin: 'com.android.library'
|
apply plugin: 'com.android.library'
|
||||||
|
|
||||||
String getMyVersionName() {
|
String getMyVersionName() {
|
||||||
|
@ -34,8 +26,8 @@ String getMyVersionName() {
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 23
|
compileSdkVersion androidCompileSdk()
|
||||||
buildToolsVersion "23.0.3"
|
buildToolsVersion "$androidBuildVersionTools"
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
versionName getMyVersionName()
|
versionName getMyVersionName()
|
||||||
|
|
Loading…
Reference in a new issue