summaryrefslogtreecommitdiff
path: root/tests/projects/android/native_app
diff options
context:
space:
mode:
authorruki <[email protected]>2025-12-16 23:25:49 +0800
committerruki <[email protected]>2025-12-16 23:25:49 +0800
commitc9ede56339f7faf96bb6ed105fd60dfcaf01655f (patch)
tree5abc0e8171137527e9208293e9510622bd558061 /tests/projects/android/native_app
parent8e63376d62415825aa2836df19ebb7c895aa7a2e (diff)
format code and fix keystore
Diffstat (limited to 'tests/projects/android/native_app')
-rw-r--r--tests/projects/android/native_app/android/debug.jksbin2487 -> 2148 bytes
-rw-r--r--tests/projects/android/native_app/src/main.cpp29
-rw-r--r--tests/projects/android/native_app/xmake.lua3
3 files changed, 13 insertions, 19 deletions
diff --git a/tests/projects/android/native_app/android/debug.jks b/tests/projects/android/native_app/android/debug.jks
index b4eb4f9f2..0a18aa012 100644
--- a/tests/projects/android/native_app/android/debug.jks
+++ b/tests/projects/android/native_app/android/debug.jks
Binary files differ
diff --git a/tests/projects/android/native_app/src/main.cpp b/tests/projects/android/native_app/src/main.cpp
index 4c8253ead..42f5b9a37 100644
--- a/tests/projects/android/native_app/src/main.cpp
+++ b/tests/projects/android/native_app/src/main.cpp
@@ -1,21 +1,16 @@
#include <raylib.h>
-int main() {
- InitWindow(0, 0, "Hello, xmake for raylib android!");
+int main(int argc, char** argv) {
+ InitWindow(0, 0, "Hello, xmake for raylib android!");
+ SetTargetFPS(60);
- SetTargetFPS(60);
+ while (!WindowShouldClose()) {
+ BeginDrawing();
+ ClearBackground(BLACK);
+ DrawText("Hello, xmake for raylib android!", 250, 250, 25, BLUE);
+ EndDrawing();
+ }
- while (!WindowShouldClose()) { // Main game loop
- BeginDrawing();
-
- ClearBackground(BLACK);
-
- DrawText("Hello, xmake for raylib android!", 250, 250, 25, BLUE);
-
- EndDrawing();
- }
-
- CloseWindow();
-
- return 0;
-} \ No newline at end of file
+ CloseWindow();
+ return 0;
+}
diff --git a/tests/projects/android/native_app/xmake.lua b/tests/projects/android/native_app/xmake.lua
index 81ac545e5..e959fdf32 100644
--- a/tests/projects/android/native_app/xmake.lua
+++ b/tests/projects/android/native_app/xmake.lua
@@ -5,9 +5,8 @@ add_requires("raylib 5.5.0")
target("raydemo_android")
set_kind("binary")
set_languages("c++17")
- add_files("src/main.cpp")
+ add_files("src/main.cpp")
add_packages("raylib")
-
add_rules("android.native_app", {
android_sdk_version = "35",
android_manifest = "android/AndroidManifest.xml",