kandi background
Explore Kits

AndResGuard | proguard resource for Android by wechat team | Android library

 by   shwenzhang Java Version: 1.2.20 License: Apache-2.0

 by   shwenzhang Java Version: 1.2.20 License: Apache-2.0

Download this library from

kandi X-RAY | AndResGuard Summary

AndResGuard is a Java library typically used in Mobile, Android applications. AndResGuard has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has medium support. You can download it from GitHub.
AndResGuard is a tooling for reducing your apk size, it works like the ProGuard for Java source code, but only aim at the resource files. It changes res/drawable/wechat to r/d/a, and renames the resource file wechat.png to a.png. Finally, it repackages the apk with 7zip, which can reduce the package size obviously. AndResGuard is fast, and it does NOT need the source codes. Input an Android apk, then we can get a 'ResGuard' apk in a few seconds.
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • AndResGuard has a medium active ecosystem.
  • It has 7642 star(s) with 1366 fork(s). There are 278 watchers for this library.
  • It had no major release in the last 12 months.
  • There are 130 open issues and 309 have been closed. On average issues are closed in 47 days. There are 2 open pull requests and 0 closed requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of AndResGuard is 1.2.20
AndResGuard Support
Best in #Android
Average in #Android
AndResGuard Support
Best in #Android
Average in #Android

quality kandi Quality

  • AndResGuard has 0 bugs and 0 code smells.
AndResGuard Quality
Best in #Android
Average in #Android
AndResGuard Quality
Best in #Android
Average in #Android

securitySecurity

  • AndResGuard has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • AndResGuard code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.
AndResGuard Security
Best in #Android
Average in #Android
AndResGuard Security
Best in #Android
Average in #Android

license License

  • AndResGuard is licensed under the Apache-2.0 License. This license is Permissive.
  • Permissive licenses have the least restrictions, and you can use them in most projects.
AndResGuard License
Best in #Android
Average in #Android
AndResGuard License
Best in #Android
Average in #Android

buildReuse

  • AndResGuard releases are available to install and integrate.
  • Build file is available. You can build the component from source.
  • Installation instructions are not available. Examples and code snippets are available.
AndResGuard Reuse
Best in #Android
Average in #Android
AndResGuard Reuse
Best in #Android
Average in #Android
Top functions reviewed by kandi - BETA

kandi has reviewed AndResGuard and discovered the below as its top functions. This is intended to give you an instant insight into AndResGuard implemented functionality, and help decide if they suit your requirements.

  • Validate the parameters .
  • Read table name block .
  • Read config flags .
  • Returns a list of password specifications .
  • Read old mapping file .
  • generate progard file name
  • General unsigned apk .
  • Create unzip file path .
  • Unzip an APK file .
  • Wrap the explanation .

AndResGuard Key Features

Obfuscate android resources. It contains all the resource type(such as drawable、layout、string...). It can prevent your apk from being reversed by Apktool.

Shrinking the apk size. It can reduce the resources.arsc and the package size obviously.

Repackage with 7zip. It supports repackage apk with 7zip, and we can specify the compression method for each file.

With Gradle

copy iconCopydownload iconDownload
apply plugin: 'AndResGuard'

buildscript {
    repositories {
        jcenter()
        google()
    }
    dependencies {
        classpath 'com.tencent.mm:AndResGuard-gradle-plugin:1.2.21'
    }
}

andResGuard {
    // mappingFile = file("./resource_mapping.txt")
    mappingFile = null
    use7zip = true
    useSign = true
    // It will keep the origin path of your resources when it's true
    keepRoot = false
    // If set, name column in arsc those need to proguard will be kept to this value
    fixedResName = "arg"
    // It will merge the duplicated resources, but don't rely on this feature too much.
    // it's always better to remove duplicated resource from repo
    mergeDuplicatedRes = true
    whiteList = [
        // your icon
        "R.drawable.icon",
        // for fabric
        "R.string.com.crashlytics.*",
        // for google-services
        "R.string.google_app_id",
        "R.string.gcm_defaultSenderId",
        "R.string.default_web_client_id",
        "R.string.ga_trackingId",
        "R.string.firebase_database_url",
        "R.string.google_api_key",
        "R.string.google_crash_reporting_api_key",
        "R.string.project_id",
    ]
    compressFilePattern = [
        "*.png",
        "*.jpg",
        "*.jpeg",
        "*.gif",
    ]
    sevenzip {
        artifact = 'com.tencent.mm:SevenZip:1.2.21'
        //path = "/usr/local/bin/7za"
    }

    /**
    * Optional: if finalApkBackupPath is null, AndResGuard will overwrite final apk
    * to the path which assemble[Task] write to
    **/
    // finalApkBackupPath = "${project.rootDir}/final.apk"

    /**
    * Optional: Specifies the name of the message digest algorithm to user when digesting the entries of JAR file
    * Only works in V1signing, default value is "SHA-1"
    **/
    // digestalg = "SHA-256"
}

Wildcard

copy iconCopydownload iconDownload
?	Zero or one character
*	Zero or more of character
+	One or more of character

WhiteList

copy iconCopydownload iconDownload
res path mapping:
    res/mipmap-hdpi-v4 -> res/mipmap-hdpi-v4
    res/mipmap-mdpi-v4 -> res/mipmap-mdpi-v4
    res/mipmap-xhdpi-v4 -> res/mipmap-xhdpi-v4
    res/mipmap-xxhdpi-v4 -> res/mipmap-xxhdpi-v4
    res/mipmap-xxxhdpi-v4 -> res/mipmap-xxxhdpi-v4

android studio clear .gradle on C:\Users\Administrator,can't find one of the classpath

copy iconCopydownload iconDownload
1.2.3/
1.2.4/    
1.2.5-RC1/    
1.2.5/   
1.2.6/   
1.2.7/
buildscript {
    repositories {
        jcenter()
        maven { url 'https://dl.bintray.com/simsun/maven' }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.3'
        classpath 'com.tencent.mm:AndResGuard-gradle-plugin:1.1.8'
        classpath 'org.greenrobot:greendao-gradle-plugin:3.2.1'
        classpath 'com.google.gms:google-services:3.0.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}
-----------------------
1.2.3/
1.2.4/    
1.2.5-RC1/    
1.2.5/   
1.2.6/   
1.2.7/
buildscript {
    repositories {
        jcenter()
        maven { url 'https://dl.bintray.com/simsun/maven' }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.3'
        classpath 'com.tencent.mm:AndResGuard-gradle-plugin:1.1.8'
        classpath 'org.greenrobot:greendao-gradle-plugin:3.2.1'
        classpath 'com.google.gms:google-services:3.0.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

com.android.build.gradle.api.BaseVariant.getOutputs()Ljava/util/List;'

copy iconCopydownload iconDownload
buildscript {
    repositories {
        maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.jakewharton:butterknife-gradle-plugin:9.0.0-SNAPSHOT'
    }
}

repositories {
    maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
apply plugin: 'com.jakewharton.butterknife'

...

dependencies {
    compile 'com.jakewharton:butterknife:9.0.0-SNAPSHOT'
    kapt 'com.jakewharton:butterknife-compiler:9.0.0-SNAPSHOT'
}
apply plugin: 'com.jakewharton.butterknife'
-----------------------
buildscript {
    repositories {
        maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.jakewharton:butterknife-gradle-plugin:9.0.0-SNAPSHOT'
    }
}

repositories {
    maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
apply plugin: 'com.jakewharton.butterknife'

...

dependencies {
    compile 'com.jakewharton:butterknife:9.0.0-SNAPSHOT'
    kapt 'com.jakewharton:butterknife-compiler:9.0.0-SNAPSHOT'
}
apply plugin: 'com.jakewharton.butterknife'
-----------------------
buildscript {
    repositories {
        maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.jakewharton:butterknife-gradle-plugin:9.0.0-SNAPSHOT'
    }
}

repositories {
    maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
apply plugin: 'com.jakewharton.butterknife'

...

dependencies {
    compile 'com.jakewharton:butterknife:9.0.0-SNAPSHOT'
    kapt 'com.jakewharton:butterknife-compiler:9.0.0-SNAPSHOT'
}
apply plugin: 'com.jakewharton.butterknife'

Community Discussions

Trending Discussions on AndResGuard
  • android studio clear .gradle on C:\Users\Administrator,can't find one of the classpath
  • com.android.build.gradle.api.BaseVariant.getOutputs()Ljava/util/List;'
Trending Discussions on AndResGuard

QUESTION

android studio clear .gradle on C:\Users\Administrator,can't find one of the classpath

Asked 2018-Apr-14 at 05:48

The ERROR: error

my app gradle:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.3'
        classpath 'com.tencent.mm:AndResGuard-gradle-plugin:1.1.8'
        classpath 'org.greenrobot:greendao-gradle-plugin:3.2.1'
        classpath 'com.google.gms:google-services:3.0.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

i am sry for that the code can't post,so what i said this sentence is nonsense

ANSWER

Answered 2017-Oct-23 at 14:28

Well if you open the url mentioned you will find that this version 1.1.8 does not exist in jcenter repository. The available versions there are:

https://jcenter.bintray.com/com/tencent/mm/AndResGuard-gradle-plugin/

1.2.3/
1.2.4/    
1.2.5-RC1/    
1.2.5/   
1.2.6/   
1.2.7/

So either upgrade your AndResGuard-gradle-plugin to a 1.2.x version or change the jcenter repository in by adding maven { url 'https://dl.bintray.com/simsun/maven' }:

buildscript {
    repositories {
        jcenter()
        maven { url 'https://dl.bintray.com/simsun/maven' }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.3'
        classpath 'com.tencent.mm:AndResGuard-gradle-plugin:1.1.8'
        classpath 'org.greenrobot:greendao-gradle-plugin:3.2.1'
        classpath 'com.google.gms:google-services:3.0.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

Source https://stackoverflow.com/questions/46891529

Community Discussions, Code Snippets contain sources that include Stack Exchange Network

Vulnerabilities

No vulnerabilities reported

Install AndResGuard

You can download it from GitHub.
You can use AndResGuard like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the AndResGuard component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

Support

For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .

DOWNLOAD this Library from

Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

Explore Related Topics

Share this Page

share link
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

  • © 2022 Open Weaver Inc.