https://github.com/lesmiscore/proguardtransformfix
An ugly way to avoid stack size error and using dontoptimize option
https://github.com/lesmiscore/proguardtransformfix
gradle groovy java proguard
Last synced: about 1 year ago
JSON representation
An ugly way to avoid stack size error and using dontoptimize option
- Host: GitHub
- URL: https://github.com/lesmiscore/proguardtransformfix
- Owner: Lesmiscore
- License: apache-2.0
- Created: 2017-10-08T13:21:13.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-03-30T12:42:46.000Z (almost 6 years ago)
- Last Synced: 2025-01-24T23:16:38.834Z (about 1 year ago)
- Topics: gradle, groovy, java, proguard
- Language: Java
- Homepage:
- Size: 74.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ProguardTransformFix
An ugly way to avoid stack size error and using `-dontoptimize` option.
Use at your own risk, or it break your build.
There's no grantee to use this.
## Usage
Add following to root `build.gradle` file.
```groovy
buildscript {
repositories {
jcenter()
// ...
maven { url 'https://jitpack.io' }
}
dependencies {
// change after last colon to the commit you want
classpath 'com.github.nao20010128nao:ProguardTransformFix:f0fb66b'
}
}
```
Then, append following to root `build.gradle` file.
```groovy
import com.android.build.gradle.internal.transforms.*
import com.android.build.gradle.internal.pipeline.*
gradle.taskGraph.beforeTask { task ->
if(task instanceof TransformTask){
FixedProGuardTransform.injectProGuardTransform(task)
}
}
```