Update 60.4. Example repackage implementation.md

master
qibaoguang 2015-03-10 22:12:54 +08:00
parent 49076cd355
commit f7619cf197
1 changed files with 14 additions and 0 deletions

View File

@ -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));
}
});
```