Skip to content

Commit d133f51

Browse files
committed
- add androiduselegacypackaging
1 parent 23b1c69 commit d133f51

3 files changed

Lines changed: 19 additions & 0 deletions

File tree

android_studio/_preload.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,3 +319,10 @@ p.api.register
319319
scope = "project",
320320
kind = "string"
321321
}
322+
323+
p.api.register
324+
{
325+
name = "androiduselegacypackaging",
326+
scope = "project",
327+
kind = "string"
328+
}

android_studio/android_studio.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,16 @@ function m.generate_project(prj)
480480

481481
p.push('android {')
482482

483+
if prj.androiduselegacypackaging then
484+
p.push('android {')
485+
p.push('packagingOptions { ')
486+
p.push('jniLibs { ')
487+
p.x("useLegacyPackaging %s", prj.androiduselegacypackaging)
488+
p.pop('}')
489+
p.pop('}')
490+
p.pop('}')
491+
end
492+
483493
if prj.androidnamespace then
484494
p.x('namespace "%s"', prj.androidnamespace)
485495
end

readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ assetdirs
116116
"path/to/assets" -- these will go into android asset manager and inside .pkg
117117
}
118118

119+
androiduselegacypackaging "false" -- legacy packaging option (true/false)
120+
119121
-- signing
120122
androidkeystorefile "keystore.jks"
121123
androidstorepassword "K3yStorePa55w0rd"

0 commit comments

Comments
 (0)