diff options
| author | ruki <[email protected]> | 2025-12-16 23:25:49 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-12-16 23:25:49 +0800 |
| commit | c9ede56339f7faf96bb6ed105fd60dfcaf01655f (patch) | |
| tree | 5abc0e8171137527e9208293e9510622bd558061 /tests/projects/android/native_app | |
| parent | 8e63376d62415825aa2836df19ebb7c895aa7a2e (diff) | |
format code and fix keystore
Diffstat (limited to 'tests/projects/android/native_app')
| -rw-r--r-- | tests/projects/android/native_app/android/debug.jks | bin | 2487 -> 2148 bytes | |||
| -rw-r--r-- | tests/projects/android/native_app/src/main.cpp | 29 | ||||
| -rw-r--r-- | tests/projects/android/native_app/xmake.lua | 3 |
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 Binary files differindex b4eb4f9f2..0a18aa012 100644 --- a/tests/projects/android/native_app/android/debug.jks +++ b/tests/projects/android/native_app/android/debug.jks 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", |
