diff --git a/.DS_Store b/.DS_Store index aba8c58..70851af 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/NexacroN_V24/.DS_Store b/NexacroN_V24/.DS_Store new file mode 100644 index 0000000..4e84705 Binary files /dev/null and b/NexacroN_V24/.DS_Store differ diff --git a/NexacroN_V24/Android/.DS_Store b/NexacroN_V24/Android/.DS_Store new file mode 100644 index 0000000..4e64f4f Binary files /dev/null and b/NexacroN_V24/Android/.DS_Store differ diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/README.md b/NexacroN_V24/Android/HelloNexacroAndroid/README.md new file mode 100644 index 0000000..3fb402f --- /dev/null +++ b/NexacroN_V24/Android/HelloNexacroAndroid/README.md @@ -0,0 +1,111 @@ +

Hello Nexacro Android Webview

+안드로이드 하이브리드 버전을 테스트 하기 위한 앱 입니다. + +### 테스트 사전 단계 +- 빌드된 *.aar 라이브러를 아래의 경로에 추가합니다. + ```sh + Hybrid/example/HelloNexacroAndroid/app/libs/Acceleration-release.aar + + Hybrid/example/HelloNexacroAndroid/app/libs/AudioPlayer-release.aar + + Hybrid/example/HelloNexacroAndroid/app/libs/BluetoothLE-release.aar + + Hybrid/example/HelloNexacroAndroid/app/libs/Camera-release.aar + + Hybrid/example/HelloNexacroAndroid/app/libs/Contact-release.aar + + Hybrid/example/HelloNexacroAndroid/app/libs/ExternalAPI-release.aar + + Hybrid/example/HelloNexacroAndroid/app/libs/Geolocation-release.aar + + Hybrid/example/HelloNexacroAndroid/app/libs/ImagePicker-release.aar + + Hybrid/example/HelloNexacroAndroid/app/libs/LiteDB-release.aar + + Hybrid/example/HelloNexacroAndroid/app/libs/Network-release.aar + + Hybrid/example/HelloNexacroAndroid/app/libs/NexacroLib-release.aar + + Hybrid/example/HelloNexacroAndroid/app/libs/Phone-release.aar + + Hybrid/example/HelloNexacroAndroid/app/libs/Sms-release.aar + + Hybrid/example/HelloNexacroAndroid/app/libs/Vibrate-release.aar + + Hybrid/example/HelloNexacroAndroid/app/libs/XPush-release.aar + ``` + +## 빌드에 필요한 추가 의존 라이브러리 +- DeviceAPI 및 nexacro.aar 에서 사용 됩니다. + ```sh + implementation "androidx.room:room-runtime:2.4.3" + implementation 'androidx.exifinterface:exifinterface:1.3.4' + implementation 'com.google.firebase:firebase-core:21.1.1' + implementation 'com.google.firebase:firebase-messaging:23.1.2' + implementation 'com.squareup.okhttp3:okhttp:4.10.0' + implementation 'org.slf4j:slf4j-api:1.7.36' + annotationProcessor "androidx.room:room-compiler:2.4.3" + + implementation fileTree(dir: "libs", include: ["*.aar"]) + ``` + +## 테스트 방법 +- Nexacro N Runtime for Android 와 거의 동일한 방법으로 구동합니다. +- NexacroActivity 클래스를 상속받은 MainActivity.java 의 onCreate 함수 안에서 deploy 된 주소를 입력합니다. +- 서버, 업데이트, 로컬 방식을 지원 합니다. +```sh +public class MainActivity extends NexacroActivity { +... + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + // 업데이트 or 서버 방식 + setProjectURL("http://.../_android_/"); + setBootstrapURL("http://.../_android_/start_android.json"); + + // 로컬 방식 (디플로이된 컨텐츠는 assets/archive 폴더에 위치 시킨다) + setBootstrapURL("file:///android_asset/archive/start_android.json"); + } +... +} +``` + +## 코르도바 플러그인 추가 방법 +- (개발중인) 코르도바 제네레이터를 사용합니다. + - 코르도바 플러그인 모듈이 생성됩니다. + - 넥사크로 프로젝트 하위 경로로 필요한 플러그인 소스가 복사되어 배치됩니다. + - 넥사크로 프로젝트에 배치된 소스가 앱 프로젝트에 복사됩니다. +- 코르도바 제네레이터가 하지 못하는 작업은 plugin.xml 정보를 바탕으로 아래와 같이 직접 수정합니다. + 1. 넥사크로 plugin_config.xml 파일에 코르도바 플러그인을 다음과 같이 등록 + ```sh + + + plugin.xml + + + + + + + + + + + ==> + + plugin_config.xml + + + + 코르도바의 config.xml은 넥사크로의 plugin_config.xml 파일과 동일한 역할을 합니다. + ``` + 2. 앱의 AndroidManifest.xml 에 권한 및 기타 정보 추가 + - uses-permission, uses-feature + 3. 플러그인의 종류에 따라서 이외의 작업이 있을수 있습니다. + 4. 빌드. + +## 프로젝트 구성 참고 사항 +- notification을 사용하는 경우 (notification enable="true") firebase를 통해 google service 설정이 필요합니다. +- 테마에서 액션바를 제거하였습니다. (NoActionBar) +- AndroidManifest.xml 에서 필수적인 권한을 추가하였습니다. diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/build.gradle b/NexacroN_V24/Android/HelloNexacroAndroid/app/build.gradle new file mode 100644 index 0000000..1aded1d --- /dev/null +++ b/NexacroN_V24/Android/HelloNexacroAndroid/app/build.gradle @@ -0,0 +1,48 @@ +plugins { + id 'com.android.application' + id 'com.google.gms.google-services' +} + +android { + namespace 'com.tobesoft.example' + compileSdk 33 + + defaultConfig { + applicationId "com.tobesoft.example" + minSdk 21 + targetSdk 33 + versionCode 1 + versionName "1.0" + + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } +} + +dependencies { + + implementation 'androidx.appcompat:appcompat:1.6.1' + implementation 'com.google.android.material:material:1.9.0' + testImplementation 'junit:junit:4.13.2' + androidTestImplementation 'androidx.test.ext:junit:1.1.5' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' + + implementation "androidx.room:room-runtime:2.5.2" + implementation 'androidx.exifinterface:exifinterface:1.3.6' + implementation 'com.google.firebase:firebase-core:21.1.1' + implementation 'com.google.firebase:firebase-messaging:23.1.2' + implementation 'com.squareup.okhttp3:okhttp:4.10.0' + implementation 'org.slf4j:slf4j-api:1.7.36' + + implementation fileTree(dir: "libs", include: ["*.aar"]) +} diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/google-services.json b/NexacroN_V24/Android/HelloNexacroAndroid/app/google-services.json new file mode 100644 index 0000000..62be7d2 --- /dev/null +++ b/NexacroN_V24/Android/HelloNexacroAndroid/app/google-services.json @@ -0,0 +1,82 @@ +{ + "project_info": { + "project_number": "550520206407", + "project_id": "hellonexacro-702a3", + "storage_bucket": "hellonexacro-702a3.appspot.com" + }, + "client": [ + { + "client_info": { + "mobilesdk_app_id": "1:550520206407:android:bff23716b488fbaa69ad62", + "android_client_info": { + "package_name": "com.example.nexcrotest" + } + }, + "oauth_client": [ + { + "client_id": "550520206407-o341h1k9tjt4abf6ape24ouee1rkcfn3.apps.googleusercontent.com", + "client_type": 3 + } + ], + "api_key": [ + { + "current_key": "AIzaSyB1ntAeEMuq3jgLQCTJcx3Do0yeU7-EMQc" + } + ], + "services": { + "appinvite_service": { + "other_platform_oauth_client": [ + { + "client_id": "550520206407-o341h1k9tjt4abf6ape24ouee1rkcfn3.apps.googleusercontent.com", + "client_type": 3 + }, + { + "client_id": "550520206407-k0rcthbm2io309r4dh34flujduagst5m.apps.googleusercontent.com", + "client_type": 2, + "ios_info": { + "bundle_id": "com.tobesoft.helloNexacro" + } + } + ] + } + } + }, + { + "client_info": { + "mobilesdk_app_id": "1:550520206407:android:dc0c6cdd2ebc4f6769ad62", + "android_client_info": { + "package_name": "com.tobesoft.example" + } + }, + "oauth_client": [ + { + "client_id": "550520206407-o341h1k9tjt4abf6ape24ouee1rkcfn3.apps.googleusercontent.com", + "client_type": 3 + } + ], + "api_key": [ + { + "current_key": "AIzaSyB1ntAeEMuq3jgLQCTJcx3Do0yeU7-EMQc" + } + ], + "services": { + "appinvite_service": { + "other_platform_oauth_client": [ + { + "client_id": "550520206407-o341h1k9tjt4abf6ape24ouee1rkcfn3.apps.googleusercontent.com", + "client_type": 3 + }, + { + "client_id": "550520206407-k0rcthbm2io309r4dh34flujduagst5m.apps.googleusercontent.com", + "client_type": 2, + "ios_info": { + "bundle_id": "com.tobesoft.helloNexacro" + } + } + ] + } + } + } + ], + "configuration_version": "1" +} \ No newline at end of file diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/libs/.keep b/NexacroN_V24/Android/HelloNexacroAndroid/app/libs/.keep new file mode 100644 index 0000000..5a655a4 --- /dev/null +++ b/NexacroN_V24/Android/HelloNexacroAndroid/app/libs/.keep @@ -0,0 +1,31 @@ +이 폴더에 아래의 라이브러리를 추가합니다. + +Hybrid/example/HelloNexacroAndroid/app/libs/Acceleration-release.aar + +Hybrid/example/HelloNexacroAndroid/app/libs/AudioPlayer-release.aar + +Hybrid/example/HelloNexacroAndroid/app/libs/BluetoothLE-release.aar + +Hybrid/example/HelloNexacroAndroid/app/libs/Camera-release.aar + +Hybrid/example/HelloNexacroAndroid/app/libs/Contact-release.aar + +Hybrid/example/HelloNexacroAndroid/app/libs/ExternalAPI-release.aar + +Hybrid/example/HelloNexacroAndroid/app/libs/Geolocation-release.aar + +Hybrid/example/HelloNexacroAndroid/app/libs/ImagePicker-release.aar + +Hybrid/example/HelloNexacroAndroid/app/libs/LiteDB-release.aar + +Hybrid/example/HelloNexacroAndroid/app/libs/Network-release.aar + +Hybrid/example/HelloNexacroAndroid/app/libs/NexacroLib-release.aar + +Hybrid/example/HelloNexacroAndroid/app/libs/Phone-release.aar + +Hybrid/example/HelloNexacroAndroid/app/libs/Sms-release.aar + +Hybrid/example/HelloNexacroAndroid/app/libs/Vibrate-release.aar + +Hybrid/example/HelloNexacroAndroid/app/libs/XPush-release.aar \ No newline at end of file diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/proguard-rules.pro b/NexacroN_V24/Android/HelloNexacroAndroid/app/proguard-rules.pro new file mode 100644 index 0000000..481bb43 --- /dev/null +++ b/NexacroN_V24/Android/HelloNexacroAndroid/app/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/androidTest/java/com/tobesoft/example/ExampleInstrumentedTest.java b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/androidTest/java/com/tobesoft/example/ExampleInstrumentedTest.java new file mode 100644 index 0000000..63cf6e1 --- /dev/null +++ b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/androidTest/java/com/tobesoft/example/ExampleInstrumentedTest.java @@ -0,0 +1,26 @@ +package com.tobesoft.example; + +import android.content.Context; + +import androidx.test.platform.app.InstrumentationRegistry; +import androidx.test.ext.junit.runners.AndroidJUnit4; + +import org.junit.Test; +import org.junit.runner.RunWith; + +import static org.junit.Assert.*; + +/** + * Instrumented test, which will execute on an Android device. + * + * @see Testing documentation + */ +@RunWith(AndroidJUnit4.class) +public class ExampleInstrumentedTest { + @Test + public void useAppContext() { + // Context of the app under test. + Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); + assertEquals("com.tobesoft.example", appContext.getPackageName()); + } +} \ No newline at end of file diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/AndroidManifest.xml b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..41ed9b0 --- /dev/null +++ b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/AndroidManifest.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/java/com/tobesoft/example/MainActivity.java b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/java/com/tobesoft/example/MainActivity.java new file mode 100644 index 0000000..45921e5 --- /dev/null +++ b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/java/com/tobesoft/example/MainActivity.java @@ -0,0 +1,15 @@ +package com.tobesoft.example; + +import android.os.Bundle; + +import com.nexacro.NexacroActivity; + +public class MainActivity extends NexacroActivity { + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + setProjectURL("http://.../_android_/"); + setBootstrapURL("http://.../_android_/start_android.json"); + } +} diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-hdpi/splashimage_phone_landscape.png b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-hdpi/splashimage_phone_landscape.png new file mode 100644 index 0000000..5d70b1a Binary files /dev/null and b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-hdpi/splashimage_phone_landscape.png differ diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-hdpi/splashimage_phone_portrait.png b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-hdpi/splashimage_phone_portrait.png new file mode 100644 index 0000000..33458cc Binary files /dev/null and b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-hdpi/splashimage_phone_portrait.png differ diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-mdpi/splashimage_phone_landscape.png b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-mdpi/splashimage_phone_landscape.png new file mode 100644 index 0000000..4cc8035 Binary files /dev/null and b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-mdpi/splashimage_phone_landscape.png differ diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-mdpi/splashimage_phone_portrait.png b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-mdpi/splashimage_phone_portrait.png new file mode 100644 index 0000000..33458cc Binary files /dev/null and b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-mdpi/splashimage_phone_portrait.png differ diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 0000000..2b068d1 --- /dev/null +++ b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-xhdpi/splashimage_phone_landscape.png b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-xhdpi/splashimage_phone_landscape.png new file mode 100644 index 0000000..56463e6 Binary files /dev/null and b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-xhdpi/splashimage_phone_landscape.png differ diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-xhdpi/splashimage_phone_portrait.png b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-xhdpi/splashimage_phone_portrait.png new file mode 100644 index 0000000..33458cc Binary files /dev/null and b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-xhdpi/splashimage_phone_portrait.png differ diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-xxhdpi/splashimage_phone_landscape.png b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-xxhdpi/splashimage_phone_landscape.png new file mode 100644 index 0000000..56463e6 Binary files /dev/null and b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-xxhdpi/splashimage_phone_landscape.png differ diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-xxhdpi/splashimage_phone_portrait.png b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-xxhdpi/splashimage_phone_portrait.png new file mode 100644 index 0000000..33458cc Binary files /dev/null and b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-xxhdpi/splashimage_phone_portrait.png differ diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-xxxhdpi/splashimage_phone_landscape.png b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-xxxhdpi/splashimage_phone_landscape.png new file mode 100644 index 0000000..56463e6 Binary files /dev/null and b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-xxxhdpi/splashimage_phone_landscape.png differ diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-xxxhdpi/splashimage_phone_portrait.png b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-xxxhdpi/splashimage_phone_portrait.png new file mode 100644 index 0000000..33458cc Binary files /dev/null and b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable-xxxhdpi/splashimage_phone_portrait.png differ diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable/ic_launcher_background.xml b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000..07d5da9 --- /dev/null +++ b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 0000000..6f3b755 --- /dev/null +++ b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 0000000..6f3b755 --- /dev/null +++ b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-hdpi/ic_launcher.webp b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-hdpi/ic_launcher.webp new file mode 100644 index 0000000..c209e78 Binary files /dev/null and b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-hdpi/ic_launcher.webp differ diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp new file mode 100644 index 0000000..b2dfe3d Binary files /dev/null and b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp differ diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-mdpi/ic_launcher.webp b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-mdpi/ic_launcher.webp new file mode 100644 index 0000000..4f0f1d6 Binary files /dev/null and b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-mdpi/ic_launcher.webp differ diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp new file mode 100644 index 0000000..62b611d Binary files /dev/null and b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp differ diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-xhdpi/ic_launcher.webp b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-xhdpi/ic_launcher.webp new file mode 100644 index 0000000..948a307 Binary files /dev/null and b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-xhdpi/ic_launcher.webp differ diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp new file mode 100644 index 0000000..1b9a695 Binary files /dev/null and b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp differ diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp new file mode 100644 index 0000000..28d4b77 Binary files /dev/null and b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp differ diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp new file mode 100644 index 0000000..9287f50 Binary files /dev/null and b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp differ diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp new file mode 100644 index 0000000..aa7d642 Binary files /dev/null and b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp differ diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp new file mode 100644 index 0000000..9126ae3 Binary files /dev/null and b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp differ diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/values-night/themes.xml b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/values-night/themes.xml new file mode 100644 index 0000000..19913e2 --- /dev/null +++ b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/values-night/themes.xml @@ -0,0 +1,16 @@ + + + + \ No newline at end of file diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/values/colors.xml b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/values/colors.xml new file mode 100644 index 0000000..f8c6127 --- /dev/null +++ b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/values/colors.xml @@ -0,0 +1,10 @@ + + + #FFBB86FC + #FF6200EE + #FF3700B3 + #FF03DAC5 + #FF018786 + #FF000000 + #FFFFFFFF + \ No newline at end of file diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/values/strings.xml b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/values/strings.xml new file mode 100644 index 0000000..0e5186a --- /dev/null +++ b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + HelloNexacroAndroid + \ No newline at end of file diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/values/themes.xml b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/values/themes.xml new file mode 100644 index 0000000..cc45a25 --- /dev/null +++ b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/values/themes.xml @@ -0,0 +1,16 @@ + + + + \ No newline at end of file diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/xml/backup_rules.xml b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/xml/backup_rules.xml new file mode 100644 index 0000000..fa0f996 --- /dev/null +++ b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/xml/backup_rules.xml @@ -0,0 +1,13 @@ + + + + \ No newline at end of file diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/xml/data_extraction_rules.xml b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/xml/data_extraction_rules.xml new file mode 100644 index 0000000..9ee9997 --- /dev/null +++ b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/xml/data_extraction_rules.xml @@ -0,0 +1,19 @@ + + + + + + + \ No newline at end of file diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/xml/nexacro_config.xml b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/xml/nexacro_config.xml new file mode 100644 index 0000000..772af11 --- /dev/null +++ b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/xml/nexacro_config.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/xml/plugin_config.xml b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/xml/plugin_config.xml new file mode 100644 index 0000000..73999a0 --- /dev/null +++ b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/main/res/xml/plugin_config.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/app/src/test/java/com/tobesoft/example/ExampleUnitTest.java b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/test/java/com/tobesoft/example/ExampleUnitTest.java new file mode 100644 index 0000000..847b272 --- /dev/null +++ b/NexacroN_V24/Android/HelloNexacroAndroid/app/src/test/java/com/tobesoft/example/ExampleUnitTest.java @@ -0,0 +1,17 @@ +package com.tobesoft.example; + +import org.junit.Test; + +import static org.junit.Assert.*; + +/** + * Example local unit test, which will execute on the development machine (host). + * + * @see Testing documentation + */ +public class ExampleUnitTest { + @Test + public void addition_isCorrect() { + assertEquals(4, 2 + 2); + } +} \ No newline at end of file diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/build.gradle b/NexacroN_V24/Android/HelloNexacroAndroid/build.gradle new file mode 100644 index 0000000..6ea3e42 --- /dev/null +++ b/NexacroN_V24/Android/HelloNexacroAndroid/build.gradle @@ -0,0 +1,6 @@ +// Top-level build file where you can add configuration options common to all sub-projects/modules. +plugins { + id 'com.android.application' version '8.0.2' apply false + id 'com.android.library' version '8.0.2' apply false + id 'com.google.gms.google-services' version '4.3.15' apply false +} \ No newline at end of file diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/gradle.properties b/NexacroN_V24/Android/HelloNexacroAndroid/gradle.properties new file mode 100644 index 0000000..3e927b1 --- /dev/null +++ b/NexacroN_V24/Android/HelloNexacroAndroid/gradle.properties @@ -0,0 +1,21 @@ +# Project-wide Gradle settings. +# IDE (e.g. Android Studio) users: +# Gradle settings configured through the IDE *will override* +# any settings specified in this file. +# For more details on how to configure your build environment visit +# http://www.gradle.org/docs/current/userguide/build_environment.html +# Specifies the JVM arguments used for the daemon process. +# The setting is particularly useful for tweaking memory settings. +org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 +# When configured, Gradle will run in incubating parallel mode. +# This option should only be used with decoupled projects. More details, visit +# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects +# org.gradle.parallel=true +# AndroidX package structure to make it clearer which packages are bundled with the +# Android operating system, and which are packaged with your app's APK +# https://developer.android.com/topic/libraries/support-library/androidx-rn +android.useAndroidX=true +# Enables namespacing of each library's R class so that its R class includes only the +# resources declared in the library itself and none from the library's dependencies, +# thereby reducing the size of the R class for that library +android.nonTransitiveRClass=true \ No newline at end of file diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/gradle/wrapper/gradle-wrapper.jar b/NexacroN_V24/Android/HelloNexacroAndroid/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000..e708b1c Binary files /dev/null and b/NexacroN_V24/Android/HelloNexacroAndroid/gradle/wrapper/gradle-wrapper.jar differ diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/gradle/wrapper/gradle-wrapper.properties b/NexacroN_V24/Android/HelloNexacroAndroid/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..4e6f24e --- /dev/null +++ b/NexacroN_V24/Android/HelloNexacroAndroid/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Mon Jul 10 16:56:10 KST 2023 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/gradlew b/NexacroN_V24/Android/HelloNexacroAndroid/gradlew new file mode 100644 index 0000000..4f906e0 --- /dev/null +++ b/NexacroN_V24/Android/HelloNexacroAndroid/gradlew @@ -0,0 +1,185 @@ +#!/usr/bin/env sh + +# +# Copyright 2015 the original author or authors. +# +# 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 +# +# https://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. +# + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn () { + echo "$*" +} + +die () { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; + NONSTOP* ) + nonstop=true + ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin or MSYS, switch paths to Windows format before running java +if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=`expr $i + 1` + done + case $i in + 0) set -- ;; + 1) set -- "$args0" ;; + 2) set -- "$args0" "$args1" ;; + 3) set -- "$args0" "$args1" "$args2" ;; + 4) set -- "$args0" "$args1" "$args2" "$args3" ;; + 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Escape application args +save () { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " +} +APP_ARGS=`save "$@"` + +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" + +exec "$JAVACMD" "$@" diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/gradlew.bat b/NexacroN_V24/Android/HelloNexacroAndroid/gradlew.bat new file mode 100644 index 0000000..107acd3 --- /dev/null +++ b/NexacroN_V24/Android/HelloNexacroAndroid/gradlew.bat @@ -0,0 +1,89 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/NexacroN_V24/Android/HelloNexacroAndroid/settings.gradle b/NexacroN_V24/Android/HelloNexacroAndroid/settings.gradle new file mode 100644 index 0000000..f1ae942 --- /dev/null +++ b/NexacroN_V24/Android/HelloNexacroAndroid/settings.gradle @@ -0,0 +1,16 @@ +pluginManagement { + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} +dependencyResolutionManagement { + repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) + repositories { + google() + mavenCentral() + } +} +rootProject.name = "HelloNexacroAndroid" +include ':app' diff --git a/NexacroN_V24/Android/README.md b/NexacroN_V24/Android/README.md new file mode 100644 index 0000000..31670f9 --- /dev/null +++ b/NexacroN_V24/Android/README.md @@ -0,0 +1,255 @@ +

Nexacro N WebView for Android

+Nexacro N Runtime for Android 버전을 WebView 베이스로 바꾼 버전 입니다. + +## Nexacro N Runtime for Android 버전 대비 차이점 +- v8, skia, curl 등 네이티브 모듈이 제거 되었습니다. 그리고 현재 까지 구현된 코드에서는 네이티브 코드(c/c++) 하나도 없습니다. +- NexacroUpdatorActivity 가 하던 동작을 NexacroAcitivity 로 이동 시킨후 NexacroUpdatorActivity 를 제거하였습니다. +- start_android.json 을 파싱 하는 로직을 제외한 초기 로딩은 새롭게 구현하였습니다. +- 컨텐츠의 버전 관리를 archiveinfo.xml 대신 Room 을 이용한 DB 로 변경 하였습니다. +- archivefiles.js 생성에 필요한 resource.xml 도 Room 을 이용한 DB 로 변경하였습니다. +- DeviceAPI 가 별도로 배포될수 있도록 nexacroLib 에서 분리하여 프로젝트를 구성하였습니다. +- 일부 DeviceAPI 모듈 및 기존 기능 중 일부(ApkInstall...)에 대해서 리팩토링을 하였습니다. +- [Cordova WebView](https://github.com/apache/cordova-android) 엔진 구조를 참고하여 개발하였습니다. + +## 개선사항 +- 사용자가 만든 SplashView 를 사용할 수 있게 인터페이스를 추가하였습니다. +- 앱 설치 후에도 Update Type을 server or update, local 변경이 자유롭게 가능하도록 변경하였습니다. +- Cordova 관련 플러그인 인터페이스를 내장시켜 사용성을 개선하였습니다. + +## 테스트 환경 +`NEXACRO Studio` +- 툴 작업은 아직 되어 있지 않습니다. 대신 iOS 로 디플로이한 프로젝트를 수정없이 사용 가능합니다. +- 프레임워크로 사용되는 nexacrolib는 [FEATURE/FEATURE_ANDROID_WEBVIEW](https://tfs2.tobesoft.com:9443/tfs/XPLATFORM/WORK800/_git/WORK800) 브랜치에서 개발되고 있습니다. + +`Android Studio` +- Android Studio Electric Eel | 2022.1.1 Patch 1 이상 최신 안드로이드 스튜디오 버전을 권장합니다. +```sh + classpath 'com.android.tools.build:gradle:7.4.1' + classpath 'com.google.gms:google-services:4.3.15' +``` + +## 사양 +- 안드로이드 5.0 롤리팝 (API Level 21) 이상 +- 안드로이드 13.0 티라미수 (API Level 33) 타겟팅 + +## 의존 라이브러리 +- firebase 라이브러리를 NRE 대비 최신 버전으로 업그레이드를 하면서 신규 API 에 맞는 인터페이스로 변경하였습니다. +```sh + implementation 'com.google.firebase:firebase-core:21.1.1' + implementation 'com.google.firebase:firebase-messaging:23.0.8' +``` +- 일부 디바이스API에서 C++를 java로 포팅하는 과정중에 okhttp3 라이브러리를 사용하게 되었습니다. +```sh + implementation 'com.squareup.okhttp3:okhttp:4.10.0' +``` +- XPUSH 를 사용하는 경우 +```sh + implementation 'org.slf4j:slf4j-api:1.7.36' +``` +- 전체 의존 라이브러리 리스트 +```sh + implementation 'androidx.appcompat:appcompat:1.5.1' + implementation 'com.google.android.material:material:1.6.1' + implementation 'androidx.constraintlayout:constraintlayout:2.1.4' + implementation "androidx.room:room-runtime:2.4.3" + implementation 'androidx.exifinterface:exifinterface:1.3.4' + implementation 'com.google.firebase:firebase-core:21.1.1' + implementation 'com.google.firebase:firebase-messaging:23.0.8' + implementation 'com.squareup.okhttp3:okhttp:4.10.0' + implementation 'org.slf4j:slf4j-api:1.7.36' + annotationProcessor "androidx.room:room-compiler:2.4.3" +``` + +## 테스트 방법 +- Nexacro N Runtime for Android 와 거의 동일한 방법으로 구동합니다. +- NexacroActivity 클래스를 상속받은 [MainActivity.java](http://172.10.12.65:22080/nre/Droid-WebView/src/commit/39986984c6528194720724357439532d14f9d456/app/src/main/java/com/example/nexacro/webview/MainActivity.java) 의 onCreate 함수 안에서 deploy 된 주소를 입력합니다. +- 서버, 업데이트, 로컬 방식을 지원 합니다. +```sh +public class MainActivity extends NexacroActivity { +... + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + // 업데이트 or 서버 방식 + setProjectURL("http://172.10.12.59:8080/nexacroN/DroidWebviewSample/_ios_/"); + setBootstrapURL("http://172.10.12.59:8080/nexacroN/DroidWebviewSample/_ios_/start_ios.json"); + + // 로컬 방식 (디플로이된 컨텐츠는 assets/archive 폴더에 위치 시킨다) + setBootstrapURL("file:///android_asset/archive/start_android.json"); + } +... +} +``` + +## 사용자 Splash View 변경 방법 +- SplashView.java 를 상속 받아서 개발합니다. (http://172.10.12.65:22080/nre/Droid-WebView/commit/0893991ef48b4fc7e7ba53f19f2d2eacaa645e2a) +- 진행 상황과 메시지를 setMessage, setProgress 이벤트를 통해서 확인 할수 있습니다. +```sh +public class MySplashViewExample extends ConstraintLayout implements SplashView { +... + + @Override + public void setMessage(String message) { + TextView textView = getRootView().findViewById(R.id.my_message); + textView.setText(message); + } + + @Override + public void setProgress(int progress) { + ProgressBar progressBar = getRootView().findViewById(R.id.my_progressBar); + progressBar.setProgress(progress); + } +} +``` + + +## 넥사크로 플러그인 개발 +- NexacroPlugin을 상속받은 후 필수 함수를 정의하여 개발합니다. +```sh +public class Camera extends NexacroPlugin { + + @Override + public void init(JSONObject paramObject) { + // JavaScript에서 exec를 호출할때 method 가 constructor 일때 호출됩니다. + } + + @Override + public void release(JSONObject paramObject) { + // JavaScript에서 exec를 호출할때 method 가 destroy 일때 호출됩니다. + } + + @Override + public void execute(String method, JSONObject paramObject) { + // JavaScript에서 exec를 호출할때 method 가 constructor, destroy 이외일때 호출됩니다. + } +} +``` + +- 결과값 리턴은 아래와 같은 방식으로 개발합니다. +```sh +// JavaScript 에서 호출한 함수에 대한 리턴값을 즉시 전달할때 ex) TCPClientSocket +{ + String resultValue = "문자로된 리턴값"; + setReturnValue(resultValue); +} + +// JavaScript 에서 호출한 함수에 대한 리턴값을 PluginResult 클래스로 콜백 전달할때 +{ + // PluginResult(String callbackId, String eventName, String parameters) + PluginResult result = new PluginResult(objectId, "_onsuccess", "JSON 형식의 문자열"); + + webView.sendPluginResult(result); // sendPluginResult(PluginResult pluginResult); +} + +// JavaScript 에서 호출한 함수에 대한 리턴값을 문자열로 콜백 전달할때 +{ + String script = "nexacro.Device.keyEvent(4)"; // KEYCODE_BACK + webView.sendPluginResult(script); // sendPluginResult(String script); +} +``` + +- 호출한 액티비티로부터 결과를 받아오는 방법 +```sh +public class Sample extends NexacroPlugin { + // 액티비티 호출 + { + Intent intent = new Intent(); + intent.setAction(MediaStore.ACTION_IMAGE_CAPTURE); + + nexacro.startActivityForResult(this, intent, REQUEST_CODE); + } + + // 결과 받기 + @Override + public void onActivityResult(int requestCode, int resultCode, Intent data) { + if (resultCode == Activity.RESULT_OK) { + // code here + } else if (resultCode == Activity.RESULT_CANCELED) { + // code here + } + } +} +``` + +- 권한이 허가 되어 있는지 확인 +```sh +PermissionHelper.hasPermission(this, Manifest.permission.CAMERA); // 카메라 접근 권한 확인 +``` + +- 권한 요청 하기 +```sh +public class Sample extends NexacroPlugin { + // 권한 요청 + { + String[] permissions = {}; + permissions = new String[]{ + Manifest.permission.CAMERA, + Manifest.permission.READ_EXTERNAL_STORAGE, + Manifest.permission.WRITE_EXTERNAL_STORAGE}; + PermissionHelper.requestPermissions(this, ACCESS_CAMERA, permissions); + } + + // 권한 확인 + @Override + public void onRequestPermissionResult(int requestCode, + String[] permissions, + int[] grantResults) throws JSONException { + for (int r : grantResults) { + if (r == PackageManager.PERMISSION_DENIED) { + // permission error + return; + } + } + + if (requestCode == ACCESS_CAMERA) { + executeCamera(this.method, this.paramObject); + } + } +} +``` + +## 코르도바 플러그인 추가 방법 +- (개발중인) 코르도바 제네레이터를 사용합니다. + - 코르도바 플러그인 모듈이 생성됩니다. + - 넥사크로 프로젝트 하위 경로로 필요한 플러그인 소스가 복사되어 배치됩니다. + - 넥사크로 프로젝트에 배치된 소스가 앱 프로젝트에 복사됩니다. +- 코르도바 제네레이터가 하지 못하는 작업은 plugin.xml 정보를 바탕으로 아래와 같이 직접 수정합니다. + 1. 넥사크로 plugin_config.xml 파일에 코르도바 플러그인을 다음과 같이 등록 + ```sh + + + plugin.xml + + + + + + + + + + + ==> + + plugin_config.xml + + + + 코르도바의 config.xml은 넥사크로의 plugin_config.xml 파일과 동일한 역할을 합니다. + ``` + 2. 앱의 AndroidManifest.xml 에 권한 및 기타 정보 추가 + - uses-permission, uses-feature + 3. 플러그인의 종류에 따라서 이외의 작업이 있을수 있습니다. + 4. 빌드. + +## 개발 편의 기능 +1. 주소창을 추가하여 폼 이동을 빠르게 할 수 있습니다. +2. 시작 프로젝트를 동적으로 선택할 수 있습니다. +```sh +public class MainActivity extends NexacroActivity { + boolean dev_ShowAddressBar = true; + boolean dev_ShowProjectSelector = true; + ... +} +``` \ No newline at end of file diff --git a/NexacroN_V24/iOS/.DS_Store b/NexacroN_V24/iOS/.DS_Store new file mode 100644 index 0000000..79223cb Binary files /dev/null and b/NexacroN_V24/iOS/.DS_Store differ diff --git a/NexacroN_V24/iOS/HelloNexacroIos/.DS_Store b/NexacroN_V24/iOS/HelloNexacroIos/.DS_Store new file mode 100644 index 0000000..56c825d Binary files /dev/null and b/NexacroN_V24/iOS/HelloNexacroIos/.DS_Store differ diff --git a/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos.xcodeproj/project.pbxproj b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos.xcodeproj/project.pbxproj new file mode 100644 index 0000000..8f5db04 --- /dev/null +++ b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos.xcodeproj/project.pbxproj @@ -0,0 +1,509 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + 619C57382A5CF7A00065ABF5 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 619C57372A5CF7A00065ABF5 /* AppDelegate.m */; }; + 619C573E2A5CF7A00065ABF5 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 619C573D2A5CF7A00065ABF5 /* ViewController.m */; }; + 619C57432A5CF7A40065ABF5 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 619C57422A5CF7A40065ABF5 /* Assets.xcassets */; }; + 619C57462A5CF7A40065ABF5 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 619C57442A5CF7A40065ABF5 /* LaunchScreen.storyboard */; }; + 619C57492A5CF7A40065ABF5 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 619C57482A5CF7A40065ABF5 /* main.m */; }; + 619C576A2A5CF98E0065ABF5 /* nexacro.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 619C575B2A5CF9860065ABF5 /* nexacro.xcframework */; }; + 619C576B2A5CF98F0065ABF5 /* nexacro.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 619C575B2A5CF9860065ABF5 /* nexacro.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 619C576D2A5CF9910065ABF5 /* NXAcceleration.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 619C57532A5CF9830065ABF5 /* NXAcceleration.xcframework */; }; + 619C576E2A5CF9920065ABF5 /* NXAcceleration.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 619C57532A5CF9830065ABF5 /* NXAcceleration.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 619C576F2A5CF9950065ABF5 /* NXAudioPlayer.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 619C575A2A5CF9860065ABF5 /* NXAudioPlayer.xcframework */; }; + 619C57702A5CF9950065ABF5 /* NXAudioPlayer.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 619C575A2A5CF9860065ABF5 /* NXAudioPlayer.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 619C57712A5CF9980065ABF5 /* NXBluetoothLE.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 619C57542A5CF9840065ABF5 /* NXBluetoothLE.xcframework */; }; + 619C57722A5CF9980065ABF5 /* NXBluetoothLE.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 619C57542A5CF9840065ABF5 /* NXBluetoothLE.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 619C57732A5CF99B0065ABF5 /* NXCamera.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 619C57512A5CF9830065ABF5 /* NXCamera.xcframework */; }; + 619C57742A5CF99B0065ABF5 /* NXCamera.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 619C57512A5CF9830065ABF5 /* NXCamera.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 619C57752A5CF99E0065ABF5 /* NXContact.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 619C57592A5CF9860065ABF5 /* NXContact.xcframework */; }; + 619C57762A5CF99F0065ABF5 /* NXContact.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 619C57592A5CF9860065ABF5 /* NXContact.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 619C57772A5CF9A10065ABF5 /* NXExternalAPI.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 619C57522A5CF9830065ABF5 /* NXExternalAPI.xcframework */; }; + 619C57782A5CF9A20065ABF5 /* NXExternalAPI.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 619C57522A5CF9830065ABF5 /* NXExternalAPI.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 619C57792A5CF9A40065ABF5 /* NXGeolocation.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 619C575C2A5CF9870065ABF5 /* NXGeolocation.xcframework */; }; + 619C577A2A5CF9A50065ABF5 /* NXGeolocation.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 619C575C2A5CF9870065ABF5 /* NXGeolocation.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 619C577B2A5CF9A80065ABF5 /* NXLiteDB.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 619C57552A5CF9840065ABF5 /* NXLiteDB.xcframework */; }; + 619C577C2A5CF9A80065ABF5 /* NXLiteDB.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 619C57552A5CF9840065ABF5 /* NXLiteDB.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 619C577D2A5CF9AB0065ABF5 /* NXNetwork.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 619C57502A5CF9830065ABF5 /* NXNetwork.xcframework */; }; + 619C577E2A5CF9AB0065ABF5 /* NXNetwork.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 619C57502A5CF9830065ABF5 /* NXNetwork.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 619C577F2A5CF9AE0065ABF5 /* NXPush.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 619C57582A5CF9860065ABF5 /* NXPush.xcframework */; }; + 619C57802A5CF9AF0065ABF5 /* NXPush.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 619C57582A5CF9860065ABF5 /* NXPush.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 619C57812A5CF9B20065ABF5 /* NXSms.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 619C57562A5CF9850065ABF5 /* NXSms.xcframework */; }; + 619C57822A5CF9B20065ABF5 /* NXSms.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 619C57562A5CF9850065ABF5 /* NXSms.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 619C57832A5CF9B50065ABF5 /* NXVibrator.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 619C57572A5CF9850065ABF5 /* NXVibrator.xcframework */; }; + 619C57842A5CF9B60065ABF5 /* NXVibrator.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 619C57572A5CF9850065ABF5 /* NXVibrator.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 619C578D2A5D0CD60065ABF5 /* splashimage_pad_landscape.png in Resources */ = {isa = PBXBuildFile; fileRef = 619C57862A5D0CD30065ABF5 /* splashimage_pad_landscape.png */; }; + 619C578E2A5D0CD60065ABF5 /* splashimage_pad_portrait.png in Resources */ = {isa = PBXBuildFile; fileRef = 619C57872A5D0CD40065ABF5 /* splashimage_pad_portrait.png */; }; + 619C578F2A5D0CD60065ABF5 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 619C57882A5D0CD40065ABF5 /* Default-568h@2x.png */; }; + 619C57902A5D0CD60065ABF5 /* splashimage_phone_landscape.png in Resources */ = {isa = PBXBuildFile; fileRef = 619C57892A5D0CD40065ABF5 /* splashimage_phone_landscape.png */; }; + 619C57912A5D0CD60065ABF5 /* Default-Portrait@2x~ipad.png in Resources */ = {isa = PBXBuildFile; fileRef = 619C578A2A5D0CD50065ABF5 /* Default-Portrait@2x~ipad.png */; }; + 619C57922A5D0CD60065ABF5 /* Default-Portrait~ipad.png in Resources */ = {isa = PBXBuildFile; fileRef = 619C578B2A5D0CD50065ABF5 /* Default-Portrait~ipad.png */; }; + 619C57932A5D0CD60065ABF5 /* splashimage_phone_portrait.png in Resources */ = {isa = PBXBuildFile; fileRef = 619C578C2A5D0CD50065ABF5 /* splashimage_phone_portrait.png */; }; + 619C57982A5D18AE0065ABF5 /* data in Resources */ = {isa = PBXBuildFile; fileRef = 619C57972A5D18AE0065ABF5 /* data */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 619C576C2A5CF98F0065ABF5 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + 619C57842A5CF9B60065ABF5 /* NXVibrator.xcframework in Embed Frameworks */, + 619C576B2A5CF98F0065ABF5 /* nexacro.xcframework in Embed Frameworks */, + 619C57822A5CF9B20065ABF5 /* NXSms.xcframework in Embed Frameworks */, + 619C57722A5CF9980065ABF5 /* NXBluetoothLE.xcframework in Embed Frameworks */, + 619C577A2A5CF9A50065ABF5 /* NXGeolocation.xcframework in Embed Frameworks */, + 619C57762A5CF99F0065ABF5 /* NXContact.xcframework in Embed Frameworks */, + 619C576E2A5CF9920065ABF5 /* NXAcceleration.xcframework in Embed Frameworks */, + 619C57802A5CF9AF0065ABF5 /* NXPush.xcframework in Embed Frameworks */, + 619C57702A5CF9950065ABF5 /* NXAudioPlayer.xcframework in Embed Frameworks */, + 619C577C2A5CF9A80065ABF5 /* NXLiteDB.xcframework in Embed Frameworks */, + 619C57782A5CF9A20065ABF5 /* NXExternalAPI.xcframework in Embed Frameworks */, + 619C577E2A5CF9AB0065ABF5 /* NXNetwork.xcframework in Embed Frameworks */, + 619C57742A5CF99B0065ABF5 /* NXCamera.xcframework in Embed Frameworks */, + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 617AF58F2A78D6B90093A60F /* ko */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ko; path = ko.lproj/LaunchScreen.strings; sourceTree = ""; }; + 617AF5902A78D6BF0093A60F /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/LaunchScreen.strings"; sourceTree = ""; }; + 617AF5912A78D6C60093A60F /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/LaunchScreen.strings; sourceTree = ""; }; + 619C57332A5CF7A00065ABF5 /* HelloNexacroIos.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HelloNexacroIos.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 619C57362A5CF7A00065ABF5 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 619C57372A5CF7A00065ABF5 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 619C573C2A5CF7A00065ABF5 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; + 619C573D2A5CF7A00065ABF5 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; + 619C57422A5CF7A40065ABF5 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 619C57452A5CF7A40065ABF5 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 619C57472A5CF7A40065ABF5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 619C57482A5CF7A40065ABF5 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 619C57502A5CF9830065ABF5 /* NXNetwork.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = NXNetwork.xcframework; sourceTree = ""; }; + 619C57512A5CF9830065ABF5 /* NXCamera.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = NXCamera.xcframework; sourceTree = ""; }; + 619C57522A5CF9830065ABF5 /* NXExternalAPI.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = NXExternalAPI.xcframework; sourceTree = ""; }; + 619C57532A5CF9830065ABF5 /* NXAcceleration.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = NXAcceleration.xcframework; sourceTree = ""; }; + 619C57542A5CF9840065ABF5 /* NXBluetoothLE.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = NXBluetoothLE.xcframework; sourceTree = ""; }; + 619C57552A5CF9840065ABF5 /* NXLiteDB.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = NXLiteDB.xcframework; sourceTree = ""; }; + 619C57562A5CF9850065ABF5 /* NXSms.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = NXSms.xcframework; sourceTree = ""; }; + 619C57572A5CF9850065ABF5 /* NXVibrator.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = NXVibrator.xcframework; sourceTree = ""; }; + 619C57582A5CF9860065ABF5 /* NXPush.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = NXPush.xcframework; sourceTree = ""; }; + 619C57592A5CF9860065ABF5 /* NXContact.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = NXContact.xcframework; sourceTree = ""; }; + 619C575A2A5CF9860065ABF5 /* NXAudioPlayer.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = NXAudioPlayer.xcframework; sourceTree = ""; }; + 619C575B2A5CF9860065ABF5 /* nexacro.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = nexacro.xcframework; sourceTree = ""; }; + 619C575C2A5CF9870065ABF5 /* NXGeolocation.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = NXGeolocation.xcframework; sourceTree = ""; }; + 619C57862A5D0CD30065ABF5 /* splashimage_pad_landscape.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = splashimage_pad_landscape.png; sourceTree = ""; }; + 619C57872A5D0CD40065ABF5 /* splashimage_pad_portrait.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = splashimage_pad_portrait.png; sourceTree = ""; }; + 619C57882A5D0CD40065ABF5 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = ""; }; + 619C57892A5D0CD40065ABF5 /* splashimage_phone_landscape.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = splashimage_phone_landscape.png; sourceTree = ""; }; + 619C578A2A5D0CD50065ABF5 /* Default-Portrait@2x~ipad.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-Portrait@2x~ipad.png"; sourceTree = ""; }; + 619C578B2A5D0CD50065ABF5 /* Default-Portrait~ipad.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-Portrait~ipad.png"; sourceTree = ""; }; + 619C578C2A5D0CD50065ABF5 /* splashimage_phone_portrait.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = splashimage_phone_portrait.png; sourceTree = ""; }; + 619C57972A5D18AE0065ABF5 /* data */ = {isa = PBXFileReference; lastKnownFileType = folder; path = data; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 619C57302A5CF7A00065ABF5 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 619C57832A5CF9B50065ABF5 /* NXVibrator.xcframework in Frameworks */, + 619C57712A5CF9980065ABF5 /* NXBluetoothLE.xcframework in Frameworks */, + 619C57812A5CF9B20065ABF5 /* NXSms.xcframework in Frameworks */, + 619C577F2A5CF9AE0065ABF5 /* NXPush.xcframework in Frameworks */, + 619C576F2A5CF9950065ABF5 /* NXAudioPlayer.xcframework in Frameworks */, + 619C57772A5CF9A10065ABF5 /* NXExternalAPI.xcframework in Frameworks */, + 619C576A2A5CF98E0065ABF5 /* nexacro.xcframework in Frameworks */, + 619C57732A5CF99B0065ABF5 /* NXCamera.xcframework in Frameworks */, + 619C577B2A5CF9A80065ABF5 /* NXLiteDB.xcframework in Frameworks */, + 619C57752A5CF99E0065ABF5 /* NXContact.xcframework in Frameworks */, + 619C576D2A5CF9910065ABF5 /* NXAcceleration.xcframework in Frameworks */, + 619C577D2A5CF9AB0065ABF5 /* NXNetwork.xcframework in Frameworks */, + 619C57792A5CF9A40065ABF5 /* NXGeolocation.xcframework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 619C572A2A5CF7A00065ABF5 = { + isa = PBXGroup; + children = ( + 619C574F2A5CF87C0065ABF5 /* libs */, + 619C57852A5D0BF10065ABF5 /* resources */, + 619C57352A5CF7A00065ABF5 /* HelloNexacroIos */, + 619C57342A5CF7A00065ABF5 /* Products */, + ); + sourceTree = ""; + }; + 619C57342A5CF7A00065ABF5 /* Products */ = { + isa = PBXGroup; + children = ( + 619C57332A5CF7A00065ABF5 /* HelloNexacroIos.app */, + ); + name = Products; + sourceTree = ""; + }; + 619C57352A5CF7A00065ABF5 /* HelloNexacroIos */ = { + isa = PBXGroup; + children = ( + 619C57972A5D18AE0065ABF5 /* data */, + 619C57362A5CF7A00065ABF5 /* AppDelegate.h */, + 619C57372A5CF7A00065ABF5 /* AppDelegate.m */, + 619C573C2A5CF7A00065ABF5 /* ViewController.h */, + 619C573D2A5CF7A00065ABF5 /* ViewController.m */, + 619C57422A5CF7A40065ABF5 /* Assets.xcassets */, + 619C57442A5CF7A40065ABF5 /* LaunchScreen.storyboard */, + 619C57472A5CF7A40065ABF5 /* Info.plist */, + 619C57482A5CF7A40065ABF5 /* main.m */, + ); + path = HelloNexacroIos; + sourceTree = ""; + }; + 619C574F2A5CF87C0065ABF5 /* libs */ = { + isa = PBXGroup; + children = ( + 619C575B2A5CF9860065ABF5 /* nexacro.xcframework */, + 619C57532A5CF9830065ABF5 /* NXAcceleration.xcframework */, + 619C575A2A5CF9860065ABF5 /* NXAudioPlayer.xcframework */, + 619C57542A5CF9840065ABF5 /* NXBluetoothLE.xcframework */, + 619C57512A5CF9830065ABF5 /* NXCamera.xcframework */, + 619C57592A5CF9860065ABF5 /* NXContact.xcframework */, + 619C57522A5CF9830065ABF5 /* NXExternalAPI.xcframework */, + 619C575C2A5CF9870065ABF5 /* NXGeolocation.xcframework */, + 619C57552A5CF9840065ABF5 /* NXLiteDB.xcframework */, + 619C57502A5CF9830065ABF5 /* NXNetwork.xcframework */, + 619C57582A5CF9860065ABF5 /* NXPush.xcframework */, + 619C57562A5CF9850065ABF5 /* NXSms.xcframework */, + 619C57572A5CF9850065ABF5 /* NXVibrator.xcframework */, + ); + path = libs; + sourceTree = ""; + }; + 619C57852A5D0BF10065ABF5 /* resources */ = { + isa = PBXGroup; + children = ( + 619C57882A5D0CD40065ABF5 /* Default-568h@2x.png */, + 619C578A2A5D0CD50065ABF5 /* Default-Portrait@2x~ipad.png */, + 619C578B2A5D0CD50065ABF5 /* Default-Portrait~ipad.png */, + 619C57862A5D0CD30065ABF5 /* splashimage_pad_landscape.png */, + 619C57872A5D0CD40065ABF5 /* splashimage_pad_portrait.png */, + 619C57892A5D0CD40065ABF5 /* splashimage_phone_landscape.png */, + 619C578C2A5D0CD50065ABF5 /* splashimage_phone_portrait.png */, + ); + path = resources; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 619C57322A5CF7A00065ABF5 /* HelloNexacroIos */ = { + isa = PBXNativeTarget; + buildConfigurationList = 619C574C2A5CF7A40065ABF5 /* Build configuration list for PBXNativeTarget "HelloNexacroIos" */; + buildPhases = ( + 619C572F2A5CF7A00065ABF5 /* Sources */, + 619C57302A5CF7A00065ABF5 /* Frameworks */, + 619C57312A5CF7A00065ABF5 /* Resources */, + 619C576C2A5CF98F0065ABF5 /* Embed Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = HelloNexacroIos; + productName = HelloNexacroIos; + productReference = 619C57332A5CF7A00065ABF5 /* HelloNexacroIos.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 619C572B2A5CF7A00065ABF5 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastUpgradeCheck = 1430; + TargetAttributes = { + 619C57322A5CF7A00065ABF5 = { + CreatedOnToolsVersion = 14.3.1; + }; + }; + }; + buildConfigurationList = 619C572E2A5CF7A00065ABF5 /* Build configuration list for PBXProject "HelloNexacroIos" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ko, + "zh-Hans", + ja, + ); + mainGroup = 619C572A2A5CF7A00065ABF5; + productRefGroup = 619C57342A5CF7A00065ABF5 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 619C57322A5CF7A00065ABF5 /* HelloNexacroIos */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 619C57312A5CF7A00065ABF5 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 619C57932A5D0CD60065ABF5 /* splashimage_phone_portrait.png in Resources */, + 619C578D2A5D0CD60065ABF5 /* splashimage_pad_landscape.png in Resources */, + 619C57462A5CF7A40065ABF5 /* LaunchScreen.storyboard in Resources */, + 619C57432A5CF7A40065ABF5 /* Assets.xcassets in Resources */, + 619C57982A5D18AE0065ABF5 /* data in Resources */, + 619C578E2A5D0CD60065ABF5 /* splashimage_pad_portrait.png in Resources */, + 619C57912A5D0CD60065ABF5 /* Default-Portrait@2x~ipad.png in Resources */, + 619C57922A5D0CD60065ABF5 /* Default-Portrait~ipad.png in Resources */, + 619C57902A5D0CD60065ABF5 /* splashimage_phone_landscape.png in Resources */, + 619C578F2A5D0CD60065ABF5 /* Default-568h@2x.png in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 619C572F2A5CF7A00065ABF5 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 619C573E2A5CF7A00065ABF5 /* ViewController.m in Sources */, + 619C57382A5CF7A00065ABF5 /* AppDelegate.m in Sources */, + 619C57492A5CF7A40065ABF5 /* main.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 619C57442A5CF7A40065ABF5 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 619C57452A5CF7A40065ABF5 /* Base */, + 617AF58F2A78D6B90093A60F /* ko */, + 617AF5902A78D6BF0093A60F /* zh-Hans */, + 617AF5912A78D6C60093A60F /* ja */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 619C574A2A5CF7A40065ABF5 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 16.4; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + 619C574B2A5CF7A40065ABF5 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 16.4; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 619C574D2A5CF7A40065ABF5 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = HelloNexacroIos/Info.plist; + INFOPLIST_KEY_NSBluetoothAlwaysUsageDescription = "블루투스에 접근하기 위해 사용됩니다."; + INFOPLIST_KEY_NSBluetoothPeripheralUsageDescription = "블루투스에 접근하기 위해 사용됩니다."; + INFOPLIST_KEY_NSCameraUsageDescription = "카메라에 접근하기 위해 사용됩니다."; + INFOPLIST_KEY_NSContactsUsageDescription = "연락처를 조회하고 추가 하는데 사용됩니다."; + INFOPLIST_KEY_NSLocationAlwaysUsageDescription = "Google Map 사용자 위치 서비스에 사용됩니다."; + INFOPLIST_KEY_NSLocationWhenInUseUsageDescription = "Google Map 사용자 위치 서비스에 사용됩니다."; + INFOPLIST_KEY_NSPhotoLibraryAddUsageDescription = "앨범에 접근하기 위해 사용됩니다."; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.tobesoft.example.HelloNexacroIos; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 619C574E2A5CF7A40065ABF5 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = HelloNexacroIos/Info.plist; + INFOPLIST_KEY_NSBluetoothAlwaysUsageDescription = "블루투스에 접근하기 위해 사용됩니다."; + INFOPLIST_KEY_NSBluetoothPeripheralUsageDescription = "블루투스에 접근하기 위해 사용됩니다."; + INFOPLIST_KEY_NSCameraUsageDescription = "카메라에 접근하기 위해 사용됩니다."; + INFOPLIST_KEY_NSContactsUsageDescription = "연락처를 조회하고 추가 하는데 사용됩니다."; + INFOPLIST_KEY_NSLocationAlwaysUsageDescription = "Google Map 사용자 위치 서비스에 사용됩니다."; + INFOPLIST_KEY_NSLocationWhenInUseUsageDescription = "Google Map 사용자 위치 서비스에 사용됩니다."; + INFOPLIST_KEY_NSPhotoLibraryAddUsageDescription = "앨범에 접근하기 위해 사용됩니다."; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.tobesoft.example.HelloNexacroIos; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 619C572E2A5CF7A00065ABF5 /* Build configuration list for PBXProject "HelloNexacroIos" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 619C574A2A5CF7A40065ABF5 /* Debug */, + 619C574B2A5CF7A40065ABF5 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 619C574C2A5CF7A40065ABF5 /* Build configuration list for PBXNativeTarget "HelloNexacroIos" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 619C574D2A5CF7A40065ABF5 /* Debug */, + 619C574E2A5CF7A40065ABF5 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 619C572B2A5CF7A00065ABF5 /* Project object */; +} diff --git a/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/AppDelegate.h b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/AppDelegate.h new file mode 100644 index 0000000..9985848 --- /dev/null +++ b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/AppDelegate.h @@ -0,0 +1,15 @@ +// +// AppDelegate.h +// HelloNexacroIos +// +// Created by JaeHwan Kim on 2023/07/11. +// + +#import +#import + +@interface AppDelegate : NXAppDelegate + + +@end + diff --git a/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/AppDelegate.m b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/AppDelegate.m new file mode 100644 index 0000000..ff098bd --- /dev/null +++ b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/AppDelegate.m @@ -0,0 +1,31 @@ +// +// AppDelegate.m +// HelloNexacroIos +// +// Created by JaeHwan Kim on 2023/07/11. +// + +#import "AppDelegate.h" +#import "ViewController.h" + +@interface AppDelegate () + +@end + +@implementation AppDelegate + + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + self.viewController = [[ViewController alloc] init]; + + // server 및 update 모드 구동 방법 + self.viewController.projectUrl = @"http:://.../_ios_/"; + self.viewController.bootstrapUrl = @"http://.../_ios_/start_ios.json"; + + // local 모드 구동 방법 + // self.viewController.bootstrapUrl = @"file:///ios_asset/archive/start_ios.json"; + + return [super application:application didFinishLaunchingWithOptions:launchOptions]; +} + +@end diff --git a/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/Assets.xcassets/AccentColor.colorset/Contents.json b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/Assets.xcassets/AppIcon.appiconset/Contents.json b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..22d255d --- /dev/null +++ b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,14 @@ +{ + "images" : [ + { + "filename" : "ui-2.png", + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/Assets.xcassets/AppIcon.appiconset/ui-2.png b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/Assets.xcassets/AppIcon.appiconset/ui-2.png new file mode 100644 index 0000000..c17802a Binary files /dev/null and b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/Assets.xcassets/AppIcon.appiconset/ui-2.png differ diff --git a/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/Assets.xcassets/Contents.json b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/Base.lproj/LaunchScreen.storyboard b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..865e932 --- /dev/null +++ b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/Info.plist b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/Info.plist new file mode 100644 index 0000000..a662d71 --- /dev/null +++ b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleURLTypes + + + + NSAppTransportSecurity + + NSAllowsArbitraryLoads + + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + + UIViewControllerBasedStatusBarAppearance + + + diff --git a/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/ViewController.h b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/ViewController.h new file mode 100644 index 0000000..9c316a1 --- /dev/null +++ b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/ViewController.h @@ -0,0 +1,15 @@ +// +// ViewController.h +// HelloNexacroIos +// +// Created by JaeHwan Kim on 2023/07/11. +// + +#import +#import + +@interface ViewController : NXViewController + + +@end + diff --git a/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/ViewController.m b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/ViewController.m new file mode 100644 index 0000000..35898cd --- /dev/null +++ b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/ViewController.m @@ -0,0 +1,22 @@ +// +// ViewController.m +// HelloNexacroIos +// +// Created by JaeHwan Kim on 2023/07/11. +// + +#import "ViewController.h" + +@interface ViewController () + +@end + +@implementation ViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + // Do any additional setup after loading the view. +} + + +@end diff --git a/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/data/nexacro_config.xml b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/data/nexacro_config.xml new file mode 100644 index 0000000..36f8392 --- /dev/null +++ b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/data/nexacro_config.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/ja.lproj/LaunchScreen.strings b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/ja.lproj/LaunchScreen.strings new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/ja.lproj/LaunchScreen.strings @@ -0,0 +1 @@ + diff --git a/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/ko.lproj/LaunchScreen.strings b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/ko.lproj/LaunchScreen.strings new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/ko.lproj/LaunchScreen.strings @@ -0,0 +1 @@ + diff --git a/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/main.m b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/main.m new file mode 100644 index 0000000..94dde18 --- /dev/null +++ b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/main.m @@ -0,0 +1,18 @@ +// +// main.m +// HelloNexacroIos +// +// Created by JaeHwan Kim on 2023/07/11. +// + +#import +#import "AppDelegate.h" + +int main(int argc, char * argv[]) { + NSString * appDelegateClassName; + @autoreleasepool { + // Setup code that might create autoreleased objects goes here. + appDelegateClassName = NSStringFromClass([AppDelegate class]); + } + return UIApplicationMain(argc, argv, nil, appDelegateClassName); +} diff --git a/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/zh-Hans.lproj/LaunchScreen.strings b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/zh-Hans.lproj/LaunchScreen.strings new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/NexacroN_V24/iOS/HelloNexacroIos/HelloNexacroIos/zh-Hans.lproj/LaunchScreen.strings @@ -0,0 +1 @@ + diff --git a/NexacroN_V24/iOS/HelloNexacroIos/README.md b/NexacroN_V24/iOS/HelloNexacroIos/README.md new file mode 100644 index 0000000..e5b84a7 --- /dev/null +++ b/NexacroN_V24/iOS/HelloNexacroIos/README.md @@ -0,0 +1,104 @@ +

Hello Nexacro iOS Webview

+iOS 하이브리드 버전을 테스트 하기 위한 앱 입니다. + +### 테스트 사전 단계 +- 빌드된 *.xcframework 라이브러를 아래의 경로에 추가합니다. + ```sh + Hybrid/example/HelloNexacroIos/libs/nexacro.xcframework + + Hybrid/example/HelloNexacroIos/libs/NXAcceleration.xcframework + + Hybrid/example/HelloNexacroIos/libs/NXAudioPlayer.xcframework + + Hybrid/example/HelloNexacroIos/libs/NXBluetoothLE.xcframework + + Hybrid/example/HelloNexacroIos/libs/NXCamera.xcframework + + Hybrid/example/HelloNexacroIos/libs/NXContact.xcframework + + Hybrid/example/HelloNexacroIos/libs/NXGeolocation.xcframework + + Hybrid/example/HelloNexacroIos/libs/NXLiteDB.xcframework + + Hybrid/example/HelloNexacroIos/libs/NXNetwork.xcframework + + Hybrid/example/HelloNexacroIos/libs/NXSms.xcframework + + Hybrid/example/HelloNexacroIos/libs/NXVibrator.xcframework + + Hybrid/example/HelloNexacroIos/libs/NXPush.xcframework + ``` + +## 빌드에 필요한 추가 의존 라이브러리 +- 없음. + +## 테스트 방법 +- 상속 클래스 + ```sh + @interface ViewController : NXViewController + @interface AppDelegate : NXAppDelegate + ``` + +- 부트스트랩 주소를 선언하는 오버라이딩 대상 메소드 및 설정방법 + ```sh + @implementation AppDelegate + - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions + { + self.viewController = [[ViewController alloc] init]; + + // server 및 update 모드 구동 방법 + self.viewController.projectUrl = @"http://.../_ios_/"; + self.viewController.bootstrapUrl = @"http://.../_ios_/start_ios.json"; + + // local 모드 구동 방법 + // self.viewController.bootstrapUrl = @"file:///ios_asset/archive/start_ios.json"; + + return [super application:application didFinishLaunchingWithOptions:launchOptions]; + } + @end + ``` + +## Cordova 플러그인 추가 방법 +- (개발중인) 코르도바 제네레이터를 사용합니다. + - 코르도바 플러그인 모듈이 생성됩니다. + - 넥사크로 프로젝트 하위 경로로 필요한 플러그인 소스가 복사되어 배치됩니다. + - 넥사크로 프로젝트에 배치된 소스가 앱 프로젝트에 복사됩니다. +- 코르도바 제네레이터가 하지 못하는 작업은 plugin.xml 정보를 바탕으로 아래와 같이 직접 수정합니다. + 1. 넥사크로 plugin_config.xml 파일에 코르도바 플러그인을 다음과 같이 등록 + ```sh + + + plugin.xml + + + + + + + + + + + + ==> + + plugin_config.xml + + + + + 코르도바의 config.xml은 넥사크로의 plugin_config.xml 파일과 동일한 역할을 합니다. + ``` + 2. Xcode 를 통한 Cordova 플러그인 파일 추가 및 수정. + - 넥사크로 프로젝트 경로에 복사된 플러그인 소스를 앱 프로젝트에 복사한후 Xcode 에서 빌드되도록 소스를 추가합니다. + - 추가한 플러그인 소스에서 Cordova 관련 import 경로를 아래와 같이 변경합니다. + ``` + // 변경 전 + + // 변경 후 + ``` + 3. 플러그인의 종류에 따라서 이외의 작업이 있을수 있습니다. + 4. 빌드. + +## 프로젝트 구성시 참고 사항 +- Xcode로 iOS app 프로젝트를 생성한후 Scene 과 관련된 모든 파일을 제거 해야 합니다. diff --git a/NexacroN_V24/iOS/HelloNexacroIos/libs/.keep b/NexacroN_V24/iOS/HelloNexacroIos/libs/.keep new file mode 100644 index 0000000..e69de29 diff --git a/NexacroN_V24/iOS/HelloNexacroIos/resources/Default-568h@2x.png b/NexacroN_V24/iOS/HelloNexacroIos/resources/Default-568h@2x.png new file mode 100644 index 0000000..0049855 Binary files /dev/null and b/NexacroN_V24/iOS/HelloNexacroIos/resources/Default-568h@2x.png differ diff --git a/NexacroN_V24/iOS/HelloNexacroIos/resources/Default-Portrait@2x~ipad.png b/NexacroN_V24/iOS/HelloNexacroIos/resources/Default-Portrait@2x~ipad.png new file mode 100644 index 0000000..c4cf0a7 Binary files /dev/null and b/NexacroN_V24/iOS/HelloNexacroIos/resources/Default-Portrait@2x~ipad.png differ diff --git a/NexacroN_V24/iOS/HelloNexacroIos/resources/Default-Portrait~ipad.png b/NexacroN_V24/iOS/HelloNexacroIos/resources/Default-Portrait~ipad.png new file mode 100644 index 0000000..c4cf0a7 Binary files /dev/null and b/NexacroN_V24/iOS/HelloNexacroIos/resources/Default-Portrait~ipad.png differ diff --git a/NexacroN_V24/iOS/HelloNexacroIos/resources/splashimage_pad_landscape.png b/NexacroN_V24/iOS/HelloNexacroIos/resources/splashimage_pad_landscape.png new file mode 100644 index 0000000..366d5ab Binary files /dev/null and b/NexacroN_V24/iOS/HelloNexacroIos/resources/splashimage_pad_landscape.png differ diff --git a/NexacroN_V24/iOS/HelloNexacroIos/resources/splashimage_pad_portrait.png b/NexacroN_V24/iOS/HelloNexacroIos/resources/splashimage_pad_portrait.png new file mode 100644 index 0000000..c4cf0a7 Binary files /dev/null and b/NexacroN_V24/iOS/HelloNexacroIos/resources/splashimage_pad_portrait.png differ diff --git a/NexacroN_V24/iOS/HelloNexacroIos/resources/splashimage_phone_landscape.png b/NexacroN_V24/iOS/HelloNexacroIos/resources/splashimage_phone_landscape.png new file mode 100644 index 0000000..c586763 Binary files /dev/null and b/NexacroN_V24/iOS/HelloNexacroIos/resources/splashimage_phone_landscape.png differ diff --git a/NexacroN_V24/iOS/HelloNexacroIos/resources/splashimage_phone_portrait.png b/NexacroN_V24/iOS/HelloNexacroIos/resources/splashimage_phone_portrait.png new file mode 100644 index 0000000..f152448 Binary files /dev/null and b/NexacroN_V24/iOS/HelloNexacroIos/resources/splashimage_phone_portrait.png differ diff --git a/NexacroN_V24/README.md b/NexacroN_V24/iOS/README.md similarity index 100% rename from NexacroN_V24/README.md rename to NexacroN_V24/iOS/README.md