0031619: Samples - update JNI sample to use Android Studio
authorkgv <kgv@opencascade.com>
Fri, 19 Jun 2020 23:14:51 +0000 (02:14 +0300)
committerkgv <kgv@opencascade.com>
Mon, 22 Jun 2020 06:19:06 +0000 (09:19 +0300)
commitbbe85f2b40ca7c2fdd08247b0c68f6d4b56bd1c2
tree1d154b26e8e6574b77a374b8841fbca3185b09b2
parentef779ae0da0ded44c5045762768fe5f5eaff6b04
0031619: Samples - update JNI sample to use Android Studio

Project structure and project files have been updated to use Android Studio 4.0, gradle and CMake.
Redundant OcctJni_Window has been replaced by Aspect_NeutralWindow.
SD Card permissions are not dynamically requested for compatibility with Android API level 26+.
50 files changed:
samples/java/jniviewer/.classpath [deleted file]
samples/java/jniviewer/.externalToolBuilders/C++ Builder.launch [deleted file]
samples/java/jniviewer/.gitattributes [new file with mode: 0644]
samples/java/jniviewer/.gitignore
samples/java/jniviewer/.project [deleted file]
samples/java/jniviewer/.settings/org.eclipse.jdt.core.prefs [deleted file]
samples/java/jniviewer/ReadMe.md
samples/java/jniviewer/app/build.gradle [new file with mode: 0644]
samples/java/jniviewer/app/src/main/AndroidManifest.xml [moved from samples/java/jniviewer/AndroidManifest.xml with 97% similarity]
samples/java/jniviewer/app/src/main/java/com/opencascade/jnisample/OcctJniActivity.java [moved from samples/java/jniviewer/src/com/opencascade/jnisample/OcctJniActivity.java with 87% similarity]
samples/java/jniviewer/app/src/main/java/com/opencascade/jnisample/OcctJniFileDialog.java [moved from samples/java/jniviewer/src/com/opencascade/jnisample/OcctJniFileDialog.java with 100% similarity]
samples/java/jniviewer/app/src/main/java/com/opencascade/jnisample/OcctJniLogger.java [moved from samples/java/jniviewer/src/com/opencascade/jnisample/OcctJniLogger.java with 100% similarity]
samples/java/jniviewer/app/src/main/java/com/opencascade/jnisample/OcctJniRenderer.java [moved from samples/java/jniviewer/src/com/opencascade/jnisample/OcctJniRenderer.java with 100% similarity]
samples/java/jniviewer/app/src/main/java/com/opencascade/jnisample/OcctJniView.java [moved from samples/java/jniviewer/src/com/opencascade/jnisample/OcctJniView.java with 100% similarity]
samples/java/jniviewer/app/src/main/jni/CMakeLists.txt [new file with mode: 0644]
samples/java/jniviewer/app/src/main/jni/OcctJni_MsgPrinter.cxx [moved from samples/java/jniviewer/jni/OcctJni_MsgPrinter.cxx with 98% similarity]
samples/java/jniviewer/app/src/main/jni/OcctJni_MsgPrinter.hxx [moved from samples/java/jniviewer/jni/OcctJni_MsgPrinter.hxx with 95% similarity]
samples/java/jniviewer/app/src/main/jni/OcctJni_Viewer.cxx [moved from samples/java/jniviewer/jni/OcctJni_Viewer.cxx with 96% similarity]
samples/java/jniviewer/app/src/main/jni/OcctJni_Viewer.hxx [moved from samples/java/jniviewer/jni/OcctJni_Viewer.hxx with 98% similarity]
samples/java/jniviewer/app/src/main/res/drawable-hdpi/close_l.png [moved from samples/java/jniviewer/res/drawable-hdpi/close_l.png with 100% similarity]
samples/java/jniviewer/app/src/main/res/drawable-hdpi/close_p.png [moved from samples/java/jniviewer/res/drawable-hdpi/close_p.png with 100% similarity]
samples/java/jniviewer/app/src/main/res/drawable-hdpi/fit.png [moved from samples/java/jniviewer/res/drawable-hdpi/fit.png with 100% similarity]
samples/java/jniviewer/app/src/main/res/drawable-hdpi/ic_launcher.png [moved from samples/java/jniviewer/res/drawable-hdpi/ic_launcher.png with 100% similarity, mode: 0644]
samples/java/jniviewer/app/src/main/res/drawable-hdpi/info.png [moved from samples/java/jniviewer/res/drawable-hdpi/info.png with 100% similarity]
samples/java/jniviewer/app/src/main/res/drawable-hdpi/info_image.png [moved from samples/java/jniviewer/res/drawable-hdpi/info_image.png with 100% similarity]
samples/java/jniviewer/app/src/main/res/drawable-hdpi/message.png [moved from samples/java/jniviewer/res/drawable-hdpi/message.png with 100% similarity]
samples/java/jniviewer/app/src/main/res/drawable-hdpi/open.png [moved from samples/java/jniviewer/res/drawable-hdpi/open.png with 100% similarity]
samples/java/jniviewer/app/src/main/res/drawable-hdpi/open_l.png [moved from samples/java/jniviewer/res/drawable-hdpi/open_l.png with 100% similarity]
samples/java/jniviewer/app/src/main/res/drawable-hdpi/open_p.png [moved from samples/java/jniviewer/res/drawable-hdpi/open_p.png with 100% similarity]
samples/java/jniviewer/app/src/main/res/drawable-hdpi/proj_back.png [moved from samples/java/jniviewer/res/drawable-hdpi/proj_back.png with 100% similarity, mode: 0644]
samples/java/jniviewer/app/src/main/res/drawable-hdpi/proj_bottom.png [moved from samples/java/jniviewer/res/drawable-hdpi/proj_bottom.png with 100% similarity, mode: 0644]
samples/java/jniviewer/app/src/main/res/drawable-hdpi/proj_front.png [moved from samples/java/jniviewer/res/drawable-hdpi/proj_front.png with 100% similarity, mode: 0644]
samples/java/jniviewer/app/src/main/res/drawable-hdpi/proj_left.png [moved from samples/java/jniviewer/res/drawable-hdpi/proj_left.png with 100% similarity, mode: 0644]
samples/java/jniviewer/app/src/main/res/drawable-hdpi/proj_right.png [moved from samples/java/jniviewer/res/drawable-hdpi/proj_right.png with 100% similarity, mode: 0644]
samples/java/jniviewer/app/src/main/res/drawable-hdpi/proj_top.png [moved from samples/java/jniviewer/res/drawable-hdpi/proj_top.png with 100% similarity, mode: 0644]
samples/java/jniviewer/app/src/main/res/drawable-hdpi/view.png [moved from samples/java/jniviewer/res/drawable-hdpi/view.png with 100% similarity]
samples/java/jniviewer/app/src/main/res/drawable-mdpi/ic_launcher.png [moved from samples/java/jniviewer/res/drawable-mdpi/ic_launcher.png with 100% similarity, mode: 0644]
samples/java/jniviewer/app/src/main/res/drawable-xhdpi/ic_launcher.png [moved from samples/java/jniviewer/res/drawable-xhdpi/ic_launcher.png with 100% similarity, mode: 0644]
samples/java/jniviewer/app/src/main/res/drawable-xxhdpi/ic_launcher.png [moved from samples/java/jniviewer/res/drawable-xxhdpi/ic_launcher.png with 100% similarity, mode: 0644]
samples/java/jniviewer/app/src/main/res/layout/activity_main.xml [moved from samples/java/jniviewer/res/layout/activity_main.xml with 100% similarity]
samples/java/jniviewer/app/src/main/res/values/id.xml [moved from samples/java/jniviewer/res/values/id.xml with 100% similarity]
samples/java/jniviewer/app/src/main/res/values/strings.xml [moved from samples/java/jniviewer/res/values/strings.xml with 100% similarity]
samples/java/jniviewer/build.gradle [new file with mode: 0644]
samples/java/jniviewer/gradle.properties.template [new file with mode: 0644]
samples/java/jniviewer/jni/Android.mk [deleted file]
samples/java/jniviewer/jni/Application.mk [deleted file]
samples/java/jniviewer/jni/OcctJni_Window.cxx [deleted file]
samples/java/jniviewer/jni/OcctJni_Window.hxx [deleted file]
samples/java/jniviewer/project.properties [deleted file]
samples/java/jniviewer/settings.gradle [new file with mode: 0644]