Skip to content

Commit

Permalink
V.0.1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
martinloren committed Aug 11, 2021
1 parent ebcf844 commit ffc4e34
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 24 deletions.
14 changes: 7 additions & 7 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
}
}
dependencies {
classpath "com.google.protobuf:protobuf-gradle-plugin:0.8.8"
classpath "com.google.protobuf:protobuf-gradle-plugin:0.8.13"
}
}

Expand All @@ -30,24 +30,24 @@ dependencies {

compileOnly "com.android.tools.build:aapt2-proto:0.4.0"
compileOnly gradleApi()
// compile deps.gradle.agp
// compile deps.gradle.agp

implementation "com.android.support:support-annotations:24.2.0"
shadow 'commons-io:commons-io:2.6'
shadow 'commons-io:commons-io:2.7'
shadow 'commons-codec:commons-codec:1.5'
shadow "com.google.guava:guava:27.0.1-jre"
shadow "com.google.guava:guava:30.0-jre"

annotationProcessor "com.google.auto.value:auto-value:1.5.2"
implementation "com.google.auto.value:auto-value:1.5.2"
shadow group: 'org.dom4j', name: 'dom4j', version: '2.1.0'
shadow group: 'org.dom4j', name: 'dom4j', version: '2.1.1'
shadow deps.bundletool

testImplementation deps.gradle.agp
testImplementation "com.android.tools.build:aapt2-proto:0.4.0"
testImplementation group: 'org.dom4j', name: 'dom4j', version: '2.1.0'
testImplementation group: 'org.dom4j', name: 'dom4j', version: '2.1.1'
testImplementation "junit:junit:4.12"
testImplementation "org.junit.jupiter:junit-jupiter-api:5.2.0"
testImplementation "com.google.guava:guava:27.0.1-jre"
testImplementation "com.google.guava:guava:30.0-jre"
testImplementation "org.mockito:mockito-core:2.18.3"
testImplementation "com.google.truth.extensions:truth-java8-extension:0.45"
testImplementation "com.google.truth.extensions:truth-proto-extension:0.45"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public ResourcesMapping parse() throws IOException {
line = br.readLine();
continue;
}
System.out.println("Res: "+line);
if (!line.contains(":")) {
Matcher mat = MAP_DIR_PATTERN.matcher(line);
if (mat.find()) {
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ RELEASE_REPOSITORY_URL=
SNAPSHOT_REPOSITORY_URL=
PUBLISH_LOCAL_REPO=../repo
# 是否使用本地 maven 依赖
useLocalMaven=false
useLocalMaven=true
# 是否源码依赖
useSource=false
useSource=true
enableAabResGuardPlugin=true
# bintray
uploadToBintray=true
uploadToBintray=false
bintrayInfo.user=****
bintrayInfo.apiKey=***************
11 changes: 6 additions & 5 deletions gradle/versions.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
def versions = [:]
versions.agp = "4.1.0"
versions.agp = "4.2.0"
versions.kotlin = "1.3.61"
versions.java = "8"
versions.aabresguard = "0.1.9"
versions.aabresguard = "0.1.10"
// android
versions.compileSdkVersion = 28
versions.compileSdkVersion = 30//28
versions.minSdkVersion = 15
versions.targetSdkVersion = 28
versions.targetSdkVersion = 30//28
versions.support = "28.0.0"

versions.bundletool = "0.10.0"
versions.bundletool = "0.12.0"

versions["aabresguard-core"] = versions.aabresguard
versions["aabresguard-plugin"] = versions.aabresguard
Expand All @@ -22,6 +22,7 @@ versions.digital = "3.4.0"
ext.versions = versions

ext.deps = [:]

// gradle
def gradle = [:]
gradle.agp = "com.android.tools.build:gradle:${versions.agp}"
Expand Down
8 changes: 2 additions & 6 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#Tue Oct 15 17:54:10 CST 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
#distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
#distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
#distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
#distributionUrl=https\://services.gradle.org/distributions/gradle-6.1-milestone-2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip
#distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-bin.zip
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,30 @@ import com.bytedance.android.plugin.internal.getBundleFilePath
import com.bytedance.android.plugin.internal.getSigningConfig
import com.bytedance.android.plugin.model.SigningConfig
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.TaskAction
import org.gradle.api.tasks.*
import java.io.File
import java.nio.file.Path

/**
* Created by YangJing on 2019/10/15 .
* Email: [email protected]
* Modified 2021/08/11
*/
open class AabResGuardTask : DefaultTask() {

@get:Internal
private lateinit var variant: ApplicationVariant

@get:Internal
lateinit var signingConfig: SigningConfig

@get:Internal
var aabResGuard: AabResGuardExtension = project.extensions.getByName("aabResGuard") as AabResGuardExtension

@get:Internal
private lateinit var bundlePath: Path

@get:Internal
private lateinit var obfuscatedBundlePath: Path

init {
Expand All @@ -36,11 +46,13 @@ open class AabResGuardTask : DefaultTask() {
bundlePath = getBundleFilePath(project, variant)
obfuscatedBundlePath = File(bundlePath.toFile().parentFile, aabResGuard.obfuscatedBundleFileName).toPath()
}

/*
@InputFile
@Optional
fun getObfuscatedBundlePath(): Path {
return obfuscatedBundlePath
}

*/
@TaskAction
private fun execute() {
println(aabResGuard.toString())
Expand Down

1 comment on commit ffc4e34

@martinloren
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated dependencies versions, updated AabResGuardTask to work with Gradle 7.0.0.

Please sign in to comment.