Git Product home page Git Product logo

proguard-please's Introduction

ON HOLD

Hugo Visser came up with a simpler way to achieve the same thing.

ProGuard, please

Manual ProGuard configuration is not a pleasant task. It requires a lot of time, patience and strong Google-fu to search dark corners of Internet for magic incantations that make ProGuard happy and don't screw up your build. A bottle of alcoholic beverage also comes in handy.

I just want to say "ProGuard this for me, please". And that's what this plugin strives to do.

Usage

This plugin is not available yet in on Maven Central, so right now you have to build it yourself and install it into your local Maven repo:

git clone https://github.com/chalup/proguard-please.git
cd proguard-please
gradle install

And add the following configuration to your build.gradle:

buildscript {
    repositories {
        mavenLocal()
        mavenCentral()
    }
    dependencies {
        classpath 'org.chalup:proguard-please:0.1'
    }
}

apply plugin: 'com.android.application'
apply plugin: 'proguard-please'

How Does It Work?

On the first run (or after calling gradle proguardPleaseInit) the plugin clones the proguard-please-repo and adds proguard-please.properties file to your app sources. You should add this file to your version control system to ensure reproducible builds.

Before ProGuard task in build process, the plugin scans your compile dependencies and searches proguard-please-repo for ProGuard configuration for each declared and transitive dependency.

To fetch the latest set of ProGuard configs and bump your proguard-please.properties call:

gradle proguardPleaseUpdate

"ProGuard configuration for foo:bar:1.0 is missing"

Sadly, the plugin doesn't work by pure magic. I went for the next best thing, i.e. crowdsourcing. The plugin relies on configuration from proguard-please-repo repository. If you use some library that wasn't added yet, and you have a working ProGuard configuration, be a good citizen and send the Pull Request.

Credits

I used android-apt plugin by Hugo Visser as a base for development.

License

Copyright (C) 2014 Jerzy Chalupski

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

proguard-please's People

Contributors

chalup avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

proguard-please's Issues

Modifying Proguard

Hi, I wanna to add some DexGuard features to ProGuard source code.
I wanna to know dose this project is a very trival or hard work?
thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.