kandi background
Explore Kits

packer-ng-plugin | 下一代Android打包工具,100个渠道包只需要10秒钟 | Plugin library

 by   mcxiaoke Java Version: v1.0.9 License: Apache-2.0

 by   mcxiaoke Java Version: v1.0.9 License: Apache-2.0

Download this library from

kandi X-RAY | packer-ng-plugin Summary

packer-ng-plugin is a Java library typically used in Plugin, Gradle applications. packer-ng-plugin 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, Maven.
下一代Android打包工具,100个渠道包只需要10秒钟
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • packer-ng-plugin has a medium active ecosystem.
  • It has 4689 star(s) with 824 fork(s). There are 203 watchers for this library.
  • It had no major release in the last 12 months.
  • There are 16 open issues and 130 have been closed. On average issues are closed in 35 days. There are no pull requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of packer-ng-plugin is v1.0.9
packer-ng-plugin Support
Best in #Plugin
Average in #Plugin
packer-ng-plugin Support
Best in #Plugin
Average in #Plugin

quality kandi Quality

  • packer-ng-plugin has no bugs reported.
packer-ng-plugin Quality
Best in #Plugin
Average in #Plugin
packer-ng-plugin Quality
Best in #Plugin
Average in #Plugin

securitySecurity

  • packer-ng-plugin has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
packer-ng-plugin Security
Best in #Plugin
Average in #Plugin
packer-ng-plugin Security
Best in #Plugin
Average in #Plugin

license License

  • packer-ng-plugin 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.
packer-ng-plugin License
Best in #Plugin
Average in #Plugin
packer-ng-plugin License
Best in #Plugin
Average in #Plugin

buildReuse

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

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

  • Parses the version string .
  • Write APK signing block .
  • Generate APK Packer .
  • Returns the length of the zip comment record .
  • Write this message to the output stream .
  • Get the next option .
  • Wrap a payload .
  • Create the text view .
  • Copy file .
  • Read all the block ids .

packer-ng-plugin Key Features

v2.0.1 - 2018.03.23 - 支持Android Plugin 3.x和Gradle 4.x

v2.0.0 - 2017.06.23 - 全新发布,支持V2签名模式,包含多项优化

[特别提示](#特别提示)

[项目介绍](#项目介绍)

[使用指南](#使用指南)

[修改项目配置](#修改项目配置)

[修改模块配置](#修改模块配置)

[插件配置示例](#插件配置示例)

[渠道列表格式](#渠道列表格式)

[集成打包](#集成打包)

[脚本打包](#脚本打包)

[代码中读取渠道](#代码中读取渠道)

[文件名格式模版](#文件名格式模版)

[其它说明](#其它说明)

[关于作者](#关于作者)

[联系方式](#联系方式)

[开源项目](#开源项目)

[License](#license)

archiveNameFormat - 指定最终输出的渠道包文件名的格式模版,详细说明见后面,默认值是 ${appPkg}-${channel}-${buildType}-v${versionName}-${versionCode} (可选)

archiveOutput - 指定最终输出的渠道包的存储位置,默认值是 ${project.buildDir}/archives (可选)

channelList - 指定渠道列表,List类型,见示例

channelMap - 根据productFlavor指定不同的渠道列表文件,见示例

channelFile - 指定渠道列表文件,File类型,见示例

项目中没有使用 productFlavors ```shell ./gradlew clean apkRelease ```

项目中使用了 productFlavors 如果项目中指定了多个 `flavor` ,需要指定需要打渠道包的 `flavor` 名字,假设你有 `Paid` `Free` 两个 `flavor` ,打包的时候命令如下: ```shell ./gradlew clean apkPaidRelease ./gradlew clean apkFreeRelease ``` 直接使用 `./gradlew clean apkRelease` 会输出所有 `flavor` 的渠道包。

通过参数直接指定渠道列表(会覆盖`build.gradle`中的属性): ```shell ./gradlew clean apkRelease -Pchannels=ch1,ch2,douban,google ``` 渠道数目很少时可以使用此种方式。

通过参数指定渠道列表文件的位置(会覆盖`build.gradle`中的属性): ```shell ./gradlew clean apkRelease -Pchannels=@channels.txt ``` 使用@符号指定渠道列表文件的位置,使用相对于项目根目录的相对路径。

还可以指定输出目录和文件名格式模版: ```shell ./gradlew clean apkRelease -Poutput=build/apks ./gradlew clean apkRelease -Pformat=${versionName}-${channel} ``` 这些参数 `channels` `output` `format` 可以组合使用,命令行参数会覆盖 `build.gradle` 对应的属性。

Gradle打包命令说明 渠道打包的Task名字是 `apk${flavor}${buildType}` buildType一般是release,也可以是你自己指定的beta或者someOtherType,如果没有 `flavor` 可以忽略,使用时首字母需要大写,假设 `flavor` 是 `Paid`,`release`类型对应的任务名是 `apkPaidRelease`,`beta`类型对应的任务名是 `apkPaidBetaBeta`,其它的以此类推。

特别提示 如果你同时使用其它的资源压缩工具或应用加固功能,请使用命令行脚本打包增加渠道信息,增加渠道信息需要放在APK处理过程的最后一步。

参数说明:

直接指定渠道列表打包:

指定渠道列表文件打包:

验证渠道信息:

运行命令查看帮助

Python脚本读取渠道:

C程序读取渠道:

projectName - 项目名字

appName - App模块名字

appPkg - applicationId (App包名packageName)

channel - 打包时指定的渠道名

buildType - buildType (release/debug/beta等)

flavor - flavor (flavor名字,如paid/free等)

versionName - versionName (显示用的版本号)

versionCode - versionCode (内部版本号)

buildTime - buildTime (编译构建日期时间)

fileSHA1 - `fileSHA1 ` (最终APK文件的SHA1哈希值)

Rx文档中文翻译: https://github.com/mcxiaoke/RxDocs

MQTT协议中文版: https://github.com/mcxiaoke/mqtt

Awesome-Kotlin: https://github.com/mcxiaoke/awesome-kotlin

Kotlin-Koi: https://github.com/mcxiaoke/kotlin-koi

Next公共组件库: https://github.com/mcxiaoke/Android-Next

Gradle渠道打包: https://github.com/mcxiaoke/gradle-packer-plugin

EventBus实现xBus: https://github.com/mcxiaoke/xBus

蘑菇饭App: https://github.com/mcxiaoke/minicat

Community Discussions

Trending Discussions on Plugin
  • Error: Member not found: 'packageRoot', how to solve ignore: deprecated_member_use in Flutter?
  • Build was configured to prefer settings repositories over project repositories but repository 'maven' was added by build file 'build.gradle'
  • The unauthenticated git protocol on port 9418 is no longer supported
  • CentOS through a VM - no URLs in mirrorlist
  • Java, Intellij IDEA problem Unrecognized option: --add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
  • Springboot 2.6.0 / Spring fox 3 - Failed to start bean 'documentationPluginsBootstrapper'
  • Your project requires a newer version of the Kotlin Gradle plugin. (Android Studio)
  • ESlint - Error: Must use import to load ES Module
  • Allow insecure protocols, android gradle
  • Android studio - Generate signed APKs broke
Trending Discussions on Plugin

QUESTION

Error: Member not found: 'packageRoot', how to solve ignore: deprecated_member_use in Flutter?

Asked 2022-Apr-05 at 06:52

In my flutter project, I have made some updates of plugins and then used flutter upgrade. After that, whenever I am running my flutter project it is showing following error-

    /C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/platform-3.0.2/lib/src/interface/local_platform.dart:46:19: Error: Member not found: 'packageRoot'.
          io.Platform.packageRoot; // ignore: deprecated_member_use
                      ^^^^^^^^^^^ FAILURE: Build failed with an exception.

* Where: Script 'C:\src\flutter\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1102

* What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\src\flutter\flutter\bin\flutter.bat'' finished with non-zero exit value 1

* Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 20s Exception: Gradle task assembleDebug failed with exit code 1

So, I need a suggestion that how can I solve this issue?

ANSWER

Answered 2021-Dec-16 at 11:49

For me, cleaning and getting the packages didn't work. This error started after I upgraded flutter. I was on the master channel, a quick fix for me was to switch to stable.

flutter channel stable
flutter upgrade

Perhaps theres a better solution which deals with platform package directly.

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

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

Vulnerabilities

No vulnerabilities reported

Install packer-ng-plugin

You can download it from GitHub, Maven.
You can use packer-ng-plugin 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 packer-ng-plugin 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.