mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-26 11:47:45 +01:00
updating gitignore, adding wrapper.jar
This commit is contained in:
parent
4db49ab347
commit
7e6ad41830
16
.gitignore
vendored
16
.gitignore
vendored
@ -1,7 +1,11 @@
|
|||||||
/nb*
|
.gradle/
|
||||||
/target
|
brut.apktool.smali/baksmali/build*
|
||||||
/apktool-lib/nb*
|
brut.apktool.smali/build*
|
||||||
/apktool-lib/target
|
brut.apktool.smali/dexlib/build*
|
||||||
/apktool-cli/nb*
|
brut.apktool.smali/smali/build*
|
||||||
/apktool-cli/target
|
brut.apktool.smali/util/build*
|
||||||
|
brut.apktool/apktool-cli/build*
|
||||||
|
brut.apktool/apktool-lib/build*
|
||||||
|
brut.apktool/build*
|
||||||
|
build*
|
||||||
*~
|
*~
|
||||||
|
46
build.gradle
46
build.gradle
@ -61,35 +61,33 @@ subprojects {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
project(':brut.apktool:apktool-lib') {
|
project(':brut.apktool:apktool-lib') {
|
||||||
|
ext.baseVersion = '1.5.1'
|
||||||
|
ext.jarVersion = baseVersion
|
||||||
|
|
||||||
ext.baseVersion = '1.5.1'
|
def versionSuffix
|
||||||
ext.jarVersion = baseVersion
|
try {
|
||||||
|
def git = org.eclipse.jgit.api.Git.open(file('.'))
|
||||||
|
def head = git.getRepository().getRef("HEAD")
|
||||||
|
versionSuffix = head.getObjectId().abbreviate(8).name()
|
||||||
|
|
||||||
def versionSuffix
|
if (!git.status().call().clean) {
|
||||||
try {
|
versionSuffix += '-dirty'
|
||||||
def git = org.eclipse.jgit.api.Git.open(file('.'))
|
}
|
||||||
def head = git.getRepository().getRef("HEAD")
|
} catch (Exception) {
|
||||||
versionSuffix = head.getObjectId().abbreviate(8).name()
|
// In case we can't get the commit for some reason,
|
||||||
|
// just use -dev
|
||||||
|
versionSuffix = 'SNAPSHOT'
|
||||||
|
}
|
||||||
|
|
||||||
if (!git.status().call().clean) {
|
version = baseVersion + '-' + versionSuffix
|
||||||
versionSuffix += '-dirty'
|
|
||||||
}
|
|
||||||
} catch (Exception) {
|
|
||||||
// In case we can't get the commit for some reason,
|
|
||||||
// just use -dev
|
|
||||||
versionSuffix = 'SNAPSHOT'
|
|
||||||
}
|
|
||||||
|
|
||||||
version = baseVersion + '-' + versionSuffix
|
// use <version>-dev for the jar name, rather than the
|
||||||
|
// full commit+dirty string
|
||||||
// use <version>-dev for the jar name, rather than the
|
jarVersion = baseVersion + '-dev'
|
||||||
// full commit+dirty string
|
|
||||||
jarVersion = baseVersion + '-dev'
|
|
||||||
|
|
||||||
jar {
|
|
||||||
version = jarVersion
|
|
||||||
}
|
|
||||||
|
|
||||||
|
jar {
|
||||||
|
version = jarVersion
|
||||||
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
compile ("junit:junit:4.10") {
|
compile ("junit:junit:4.10") {
|
||||||
exclude(module: 'hamcrest-core')
|
exclude(module: 'hamcrest-core')
|
||||||
|
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
Binary file not shown.
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,4 +1,4 @@
|
|||||||
#Wed Sep 19 17:44:17 GMT-06:00 2012
|
#Wed Sep 19 19:34:23 GMT-06:00 2012
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
Loading…
x
Reference in New Issue
Block a user