diff --git a/examples/android/android_app.mk b/examples/android/android_app.mk index a69be166..f217a74f 100644 --- a/examples/android/android_app.mk +++ b/examples/android/android_app.mk @@ -5,7 +5,6 @@ LOCAL_MODULE=dlangui-activity # applicatino source files LOCAL_SRC_FILES="\ -jni/main.d \ jni/app.d \ " diff --git a/examples/android/jni/main.d b/src/dlangui/platforms/android/androidapp.d similarity index 94% rename from examples/android/jni/main.d rename to src/dlangui/platforms/android/androidapp.d index 26616982..0a04d69f 100644 --- a/examples/android/jni/main.d +++ b/src/dlangui/platforms/android/androidapp.d @@ -1,21 +1,6 @@ -/* - * Copyright (C) 2010 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +module dlangui.platforms.android.androidapp; -//version(Android): +version(Android): import core.stdc.stdlib : malloc; import core.stdc.string : memset; @@ -25,12 +10,8 @@ import dlangui.widgets.styles; import dlangui.graphics.drawbuf; import dlangui.graphics.gldrawbuf; import dlangui.graphics.glsupport; -//import dlangui.widgets.widget; import dlangui.platforms.common.platform; -//import EGL.eglplatform : EGLint; -//import EGL.egl, GLES.gl; - import android.input, android.looper : ALooper_pollAll; import android.native_window : ANativeWindow_setBuffersGeometry; import android.sensor, android.log, android.android_native_app_glue;