Skip to content

Commit

Permalink
fix bug that jni and assets can't embed in windows #37
Browse files Browse the repository at this point in the history
  • Loading branch information
kezong committed Jul 26, 2019
1 parent b23e772 commit 7392925
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ class VariantProcessor {

assetsTask.doFirst {
for (archiveLibrary in mAndroidArchiveLibraries) {
if (archiveLibrary.assetsFolder != null && archiveLibrary.assetsFolder.size() > 0) {
if (archiveLibrary.assetsFolder != null && archiveLibrary.assetsFolder.exists()) {
mProject.android.sourceSets.each {
if (it.name == mVariant.name) {
it.assets.srcDir(archiveLibrary.assetsFolder)
Expand All @@ -302,7 +302,7 @@ class VariantProcessor {

mergeJniLibsTask.doFirst {
for (archiveLibrary in mAndroidArchiveLibraries) {
if (archiveLibrary.jniFolder != null && archiveLibrary.jniFolder.size() > 0) {
if (archiveLibrary.jniFolder != null && archiveLibrary.jniFolder.exists()) {
mProject.android.sourceSets.each {
if (it.name == mVariant.name) {
it.jniLibs.srcDir(archiveLibrary.jniFolder)
Expand Down

0 comments on commit 7392925

Please sign in to comment.