Skip to content

Commit

Permalink
Add androidnamespace API to generate namespace in build.gradle.
Browse files Browse the repository at this point in the history
  • Loading branch information
tritao committed Apr 28, 2024
1 parent 8476791 commit 3843d9b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions android_studio/_preload.lua
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,13 @@ p.api.register
kind = "list:string"
}

p.api.register
{
name = "androidnamespace",
scope = "workspace",
kind = "string"
}

p.api.register
{
name = "gradleproperties",
Expand Down
6 changes: 5 additions & 1 deletion android_studio/android_studio.lua
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,11 @@ function m.generate_project(prj)
end

p.push('android {')


if prj.androidnamespace then
p.x('namespace "%s"', prj.androidnamespace)
end

complete_signing_info = false
if prj.androidkeyalias and
prj.androidkeystorefile and
Expand Down

0 comments on commit 3843d9b

Please sign in to comment.