Giter VIP home page Giter VIP logo

autopack's Introduction

AutoPack

基于腾讯乐固的自动加固重签名插件

目前乐固SDK仅支持云打包,因此需要先上传原始APK。
此插件上传空间为本人公司所在测试环境,强烈建议使用者在源码处替换到属于自己的云空间

该插件将执行一下步骤()

  • 初始化乐固配置
  • 过滤指定文件夹下非APK文件
  • 上传原始apk
  • 云加固
  • 下载加固后的APK
  • APK重签名
apply plugin: 'legu-pack'

buildscript {
    repositories {
        maven {
            url uri('../publish')
        }
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.uniquext.plugin:LeGuPack:1.1.3'
    }
}

apkConfigs {
    //  apk所在文件夹,会处理该文件夹下所有apk
    apkFolder file(project.rootDir.absolutePath)
    //  response 返回格式{"code":200,"message":"操作成功","data":{"appUrl":"https://res-static.percentcompany.com/apk/2020/01/13/2beb191f24064388b6552bb7a79efbbb","md5":"a5f6653a810bcb18ef758f8c2534d9b1"}}
    uploadHost "APK上传路径,服务器端不要加任何权限校验之类"
    //  加固后的APK前缀
    reinforcePrefix "reinforce"
    //  重签名后的APK前缀
    signPrefix "sign"

    signature {
        storeFile file("app_key_store") // as默认的keystore
        storePassword "yi3634132" // keystore 默认的打开密码
        keyAlias "key0" // 默认的别名
        keyPassword "yi3634132" // 默认的别名密码
    }

}

secretConfig {
    //  腾讯云 乐固加固的 secretId 及 secretKey
    secretId "AKIDLxTsBMBNExGSXVI6jGDMZhibO4e7umRU"
    secretKey "AD9ziP7oOrOpBR2XvCMRNCvCNROE4qV3"
}

autopack's People

Contributors

uniquext avatar

Stargazers

 avatar Odis Schiller avatar Github Jobs Avaliable avatar WiFi@憲有 avatar  avatar 老王头 avatar

Watchers

James Cloos avatar  avatar

autopack's Issues

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.