Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
android:versionCode="1"
android:versionName="1.0">

<uses-sdk android:minSdkVersion="9" />
<uses-sdk android:minSdkVersion="23" />
<uses-feature android:glEsVersion="0x00020000" android:required="true" />

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="18" />
Expand Down
2 changes: 1 addition & 1 deletion jni/Application.mk
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# https://developer.android.com/ndk/guides/application_mk.html

NDK_TOOLCHAIN_VERSION := clang
APP_PLATFORM := android-10
APP_PLATFORM := android-23
APP_OPTIM := release
APP_ABI := armeabi-v7a # arm64-v8a x86

Expand Down
4 changes: 2 additions & 2 deletions jni/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#include <android/asset_manager.h>
#include <android_native_app_glue.h>

#include <string.h>

#define LOG(...) ((void)__android_log_print(ANDROID_LOG_INFO, "NativeExample", __VA_ARGS__))

struct engine
Expand Down Expand Up @@ -243,8 +245,6 @@ static void engine_handle_cmd(struct android_app* app, int32_t cmd)

void android_main(struct android_app* state)
{
app_dummy();

struct engine engine;
memset(&engine, 0, sizeof(engine));

Expand Down