Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android - Optimization #392

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Commits on Mar 26, 2021

  1. Android - Optimization

    - added options for optimization:
    
    ```
    "Android": {
    "Optimize": {
    "MinifyEnabled": true,
    "ShrinkResources": true,
    "DefaultAndroidProGuard": "proguard-android-optimize.txt",
    "PrependRulesFile": "proguard-rules-prepend.pro",
    "AppendRulesFile": "proguard-rules-append.pro"
    },
    ...
    ```
    
    Default android proguard rules(proguard-android.txt) are applied when not specified
    ```
    "Android": {
    "Optimize": {
    "MinifyEnabled": true,
    "ShrinkResources": true
    },
    ...
    ```
    
    Can add custom proguard rules before or after the main generated class rules:
    ```
    "Android": {
    "Optimize": {
    "MinifyEnabled": true,
    "ShrinkResources": true,
    "PrependRulesFile": "proguard-rules-prepend.pro",
    "AppendRulesFile": "proguard-rules-append.pro"
    },
    ...
    ```
    
    Create "proguard-rules-prepend.pro" in root of Project folder:
    
    e.g.
    
    MyApp/MainView.ux
    MyApp/proguard-rules-prepend.pro
    
    ...
    
    proguard-rules-prepend.pro
    ```
    -keepattributes *Annotation*
    -keepattributes Exceptions
    -keepattributes InnerClasses
    -keepattributes Signature
    -keepattributes SourceFile,LineNumberTable
    ```
    AndrewEQ committed Mar 26, 2021
    Configuration menu
    Copy the full SHA
    605d88a View commit details
    Browse the repository at this point in the history