Hi,
I have two andoid application projects. what is the proper way to place the 
projectA.apk into assets directory in projectB.apk ? 

I've tried to place the following lines into build.gradle of project A:
task ccc(type: Jar) {
into 'assets'
}

android.applicationVariants.all { variant ->
project.artifacts {
archives ccc {
from variant.outputFile
}
}
}

list the files in the archive generated in project A:
$ tar -tf addon/build/libs/addon.jar
assets/
assets/META-INF/
assets/META-INF/MANIFEST.MF
assets/addon-alpha-debug-unaligned.apk
assets/addon-alpha-release-unsigned.apk
assets/addon-beta-debug-unaligned.apk
assets/addon-beta-release-unsigned.apk
assets/addon-gamma-debug-unaligned.apk
assets/addon-gamma-release-unsigned.apk


all the apks are included in this archive. but I hope each variant of 
project B only include corresponding variant of project A.

do I need to make projectB.packageReleaseResources depends on 
projectA.packageReleaseResources and then copy variant.outputFile from 
projectA.buildDir into projectA.builDir/assets ?

Thanks.

Zou Guangxian

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to