-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ebcf844
commit ffc4e34
Showing
6 changed files
with
34 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 { | ||
|
@@ -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()) | ||
|
ffc4e34
There was a problem hiding this comment.
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.