From f7619cf197e85cebbd39efc52b47fce176d8ce1a Mon Sep 17 00:00:00 2001 From: qibaoguang Date: Tue, 10 Mar 2015 22:12:54 +0800 Subject: [PATCH] Update 60.4. Example repackage implementation.md --- .../60.4. Example repackage implementation.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/VIII. Build tool plugins/60.4. Example repackage implementation.md b/VIII. Build tool plugins/60.4. Example repackage implementation.md index e69de29..dd163b2 100644 --- a/VIII. Build tool plugins/60.4. Example repackage implementation.md +++ b/VIII. Build tool plugins/60.4. Example repackage implementation.md @@ -0,0 +1,14 @@ +### 60.4. repackage实现示例 + +这里是一个传统的repackage示例: +```java +Repackager repackager = new Repackager(sourceJarFile); +repackager.setBackupSource(false); +repackager.repackage(new Libraries() { + @Override + public void doWithLibraries(LibraryCallback callback) throws IOException { + // Build system specific implementation, callback for each dependency + // callback.library(new Library(nestedFile, LibraryScope.COMPILE)); + } + }); +```