Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
planetis-m committed Jul 13, 2024
1 parent 4865d41 commit 3d8a9f5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build_android.nims
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ task setupAndroid, "Set up raylib project for Android":
mkDir(ProjectBuildPath / "obj/screens")
# Copy project required resources: strings.xml, icon.png, assets
writeFile(ProjectBuildPath / "res/values/strings.xml",
"<?xml version='1.0' encoding='utf-8'?>\n<resources><string name='app_name'>" & AppLabelName & "</string></resources>\n")
&"<?xml version='1.0' encoding='utf-8'?>\n<resources><string name='app_name'>{AppLabelName}</string></resources>\n")
cpFile(AppIconLdpi, ProjectBuildPath / "res/drawable-ldpi/icon.png")
cpFile(AppIconMdpi, ProjectBuildPath / "res/drawable-mdpi/icon.png")
cpFile(AppIconHdpi, ProjectBuildPath / "res/drawable-hdpi/icon.png")
Expand All @@ -88,11 +88,11 @@ task setupAndroid, "Set up raylib project for Android":
writeFile(ProjectBuildPath / "src/com" / AppCompanyName / AppProductName / "NativeLoader.java", &"""
package com.{AppCompanyName}.{AppProductName};
public class NativeLoader extends android.app.NativeActivity {
static {
public class NativeLoader extends android.app.NativeActivity {{
static {{
System.loadLibrary("{ProjectLibraryName}");
}
}
}}
}}
""")
# Generate AndroidManifest.xml with all the required options
writeFile(ProjectBuildPath / "AndroidManifest.xml", &"""
Expand Down

0 comments on commit 3d8a9f5

Please sign in to comment.