Skip to content

Commit

Permalink
- update to gradle 8, add namespce in example
Browse files Browse the repository at this point in the history
  • Loading branch information
polymonster committed May 26, 2024
1 parent 6b12222 commit dbfacaa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion android_studio/_preload.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@ function create_gradle_wrapper(wks)
-- create gradle wrapper
if wks.gradlewrapper then
gradle = "// auto-generated by premake-android-studio\n"
local count = 0
for _, item in ipairs(wks.gradlewrapper) do
gradle = (gradle .. item .. "\n")
count = count + 1
end
if count > 0 then
io.writefile(wks.location .. "/gradle/wrapper/gradle-wrapper.properties", gradle)
end
io.writefile(wks.location .. "/gradle/wrapper/gradle-wrapper.properties", gradle)
end
end

Expand Down
4 changes: 3 additions & 1 deletion example/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ require "android_studio"

workspace "android_studio_example"
configurations { "Debug", "Release" }
gradleversion "com.android.tools.build:gradle:7.0.0"
gradleversion "com.android.tools.build:gradle:8.0.0"
location ("build")

assetpacks
{
["pack"] = "install-time",
}

androidnamespace "premake.andoid.studio"

project "android_studio_example"
kind "ConsoleApp"
language "C++"
Expand Down

0 comments on commit dbfacaa

Please sign in to comment.