NexacroN v24 프로젝트 추가

This commit is contained in:
techAdmin 2023-09-18 15:18:52 +09:00
parent 63da6bd8d3
commit f1a56f00ee
82 changed files with 2122 additions and 0 deletions

BIN
.DS_Store vendored

Binary file not shown.

BIN
NexacroN_V24/.DS_Store vendored Normal file

Binary file not shown.

BIN
NexacroN_V24/Android/.DS_Store vendored Normal file

Binary file not shown.

View File

@ -0,0 +1,111 @@
<h1 align="center">Hello Nexacro Android Webview</h1>
안드로이드 하이브리드 버전을 테스트 하기 위한 앱 입니다.
### 테스트 사전 단계
- 빌드된 *.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 파일에 등록합니다. -->
plugin.xml
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="StatusBar">
<param name="android-package" value="org.apache.cordova.statusbar.StatusBar" />
<param name="onload" value="true" />
</feature>
<preference name="StatusBarOverlaysWebView" value="true" />
</config-file>
</platform>
==>
plugin_config.xml
<plugin name="StatusBar" class="org.apache.cordova.statusbar.StatusBar" onload="true"/>
<preference name="StatusBarOverlaysWebView" value="true" />
코르도바의 config.xml은 넥사크로의 plugin_config.xml 파일과 동일한 역할을 합니다.
```
2. 앱의 AndroidManifest.xml 에 권한 및 기타 정보 추가
- uses-permission, uses-feature
3. 플러그인의 종류에 따라서 이외의 작업이 있을수 있습니다.
4. 빌드.
## 프로젝트 구성 참고 사항
- notification을 사용하는 경우 (notification enable="true") firebase를 통해 google service 설정이 필요합니다.
- 테마에서 액션바를 제거하였습니다. (NoActionBar)
- AndroidManifest.xml 에서 필수적인 권한을 추가하였습니다.

View File

@ -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"])
}

View File

@ -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"
}

View File

@ -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

View File

@ -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

View File

@ -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 <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@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());
}
}

View File

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.HelloNexacroAndroid"
android:usesCleartextTraffic="true"
tools:targetApi="31">
<activity
android:name=".MainActivity"
android:configChanges="orientation|screenSize|keyboardHidden"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="OPEN_NEXACRO_ACTIVITY_EXAMPLE" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>

View File

@ -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");
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

View File

@ -0,0 +1,30 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path android:pathData="M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z">
<aapt:attr name="android:fillColor">
<gradient
android:endX="85.84757"
android:endY="92.4963"
android:startX="42.9492"
android:startY="49.59793"
android:type="linear">
<item
android:color="#44000000"
android:offset="0.0" />
<item
android:color="#00000000"
android:offset="1.0" />
</gradient>
</aapt:attr>
</path>
<path
android:fillColor="#FFFFFF"
android:fillType="nonZero"
android:pathData="M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
</vector>

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

View File

@ -0,0 +1,170 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:fillColor="#3DDC84"
android:pathData="M0,0h108v108h-108z" />
<path
android:fillColor="#00000000"
android:pathData="M9,0L9,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,0L19,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,0L29,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,0L39,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,0L49,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,0L59,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,0L69,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,0L79,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M89,0L89,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M99,0L99,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,9L108,9"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,19L108,19"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,29L108,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,39L108,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,49L108,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,59L108,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,69L108,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,79L108,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,89L108,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,99L108,99"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,29L89,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,39L89,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,49L89,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,59L89,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,69L89,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,79L89,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,19L29,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,19L39,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,19L49,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,19L59,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,19L69,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,19L79,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
</vector>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 982 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

View File

@ -0,0 +1,16 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.HelloNexacroAndroid" parent="Theme.MaterialComponents.DayNight.NoActionBar">
<!-- Primary brand color. -->
<item name="colorPrimary">@color/purple_200</item>
<item name="colorPrimaryVariant">@color/purple_700</item>
<item name="colorOnPrimary">@color/black</item>
<!-- Secondary brand color. -->
<item name="colorSecondary">@color/teal_200</item>
<item name="colorSecondaryVariant">@color/teal_200</item>
<item name="colorOnSecondary">@color/black</item>
<!-- Status bar color. -->
<item name="android:statusBarColor">?attr/colorPrimaryVariant</item>
<!-- Customize your theme here. -->
</style>
</resources>

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="purple_200">#FFBB86FC</color>
<color name="purple_500">#FF6200EE</color>
<color name="purple_700">#FF3700B3</color>
<color name="teal_200">#FF03DAC5</color>
<color name="teal_700">#FF018786</color>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
</resources>

View File

@ -0,0 +1,3 @@
<resources>
<string name="app_name">HelloNexacroAndroid</string>
</resources>

View File

@ -0,0 +1,16 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.HelloNexacroAndroid" parent="Theme.MaterialComponents.DayNight.NoActionBar">
<!-- Primary brand color. -->
<item name="colorPrimary">@color/purple_500</item>
<item name="colorPrimaryVariant">@color/purple_700</item>
<item name="colorOnPrimary">@color/white</item>
<!-- Secondary brand color. -->
<item name="colorSecondary">@color/teal_200</item>
<item name="colorSecondaryVariant">@color/teal_700</item>
<item name="colorOnSecondary">@color/black</item>
<!-- Status bar color. -->
<item name="android:statusBarColor">?attr/colorPrimaryVariant</item>
<!-- Customize your theme here. -->
</style>
</resources>

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?><!--
Sample backup rules file; uncomment and customize as necessary.
See https://developer.android.com/guide/topics/data/autobackup
for details.
Note: This file is ignored for devices older that API 31
See https://developer.android.com/about/versions/12/backup-restore
-->
<full-backup-content>
<!--
<include domain="sharedpref" path="."/>
<exclude domain="sharedpref" path="device.xml"/>
-->
</full-backup-content>

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?><!--
Sample data extraction rules file; uncomment and customize as necessary.
See https://developer.android.com/about/versions/12/backup-restore#xml-changes
for details.
-->
<data-extraction-rules>
<cloud-backup>
<!-- TODO: Use <include> and <exclude> to control what is backed up.
<include .../>
<exclude .../>
-->
</cloud-backup>
<!--
<device-transfer>
<include .../>
<exclude .../>
</device-transfer>
-->
</data-extraction-rules>

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<nexacro-config>
<application style="default" dialog-position="bottom" file-logging="true" quiet="false" loglevel="debug" tracemode="none" traceduration="-1"/>
<!--<application dialog-position="center"/>-->
<notification enable="true" handler="com.nexacro.notification.DefaultHandler"/>
<xpush-server request-missing-message="false" sender-id="1234567890"/>
<updator cancelable="true" force="false" restart="false" errormsg="true" quiet="false"/>
<log filepath="%SD_CARD%nreLog.log" filesize="408960" backupfilecount="5"/>
<!-- <splash scaletype="auto" background-color="#afe3ff" />-->
<!-- 하기 config는 보류 상태임 -->
<!--splash-message languages="ko_KR,ja_JP"/-->
</nexacro-config>

View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin-config>
<plugin name="Network" class="com.nexacro.deviceapi.Network" onload="false"/>
<plugin name="Geolocation" class="com.nexacro.deviceapi.Geolocation" onload="false"/>
<plugin name="Acceleration" class="com.nexacro.deviceapi.Acceleration" onload="false"/>
<plugin name="Sound" class="com.nexacro.deviceapi.AudioPlayer" onload="false"/>
<plugin name="AudioRecorder" class="com.nexacro.deviceapi.AudioRecorder" onload="false"/>
<plugin name="Camera" class="com.nexacro.deviceapi.Camera" onload="false"/>
<plugin name="ImagePicker" class="com.nexacro.deviceapi.ImagePicker" onload="false"/>
<plugin name="ExternalAPI" class="com.nexacro.deviceapi.ExternalAPI" onload="false"/>
<plugin name="Vibrator" class="com.nexacro.deviceapi.Vibrate" onload="false"/>
<plugin name="Call" class="com.nexacro.deviceapi.Phone" onload="false"/>
<plugin name="Sms" class="com.nexacro.deviceapi.SmsManager" onload="false"/>
<plugin name="ContactSet" class="com.nexacro.deviceapi.Contact" onload="false"/>
<plugin name="SQLStatement" class="com.nexacro.deviceapi.LiteDBStatement" onload="false"/>
<plugin name="SQLConnection" class="com.nexacro.deviceapi.LiteDBConnection" onload="false"/>
<!-- BluetoothLE는 Activity onCreate 때 서비스 바인드 하는 부분이 있어서 onload 플래그를 true 로 줘서 0000 id의 객체를 최초 한번 생성하게 한다. -->
<plugin name="BluetoothLE" class="com.nexacro.deviceapi.BluetoothLE" onload="true"/>
<plugin name="XPush" class="com.nexacro.deviceapi.XPush" onload="true"/>
<plugin name="SocialSharing" class="nl.xservices.plugins.SocialSharing" onload="false"/>
<!-- 플러그인의 전역 설정값을 사용할때 preference의 name-value 쌍으로 지정 합니다. -->
<!-- <preference name="" value="" /> -->
</plugin-config>

View File

@ -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 <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() {
assertEquals(4, 2 + 2);
}
}

View File

@ -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
}

View File

@ -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

View File

@ -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

View File

@ -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" "$@"

View File

@ -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

View File

@ -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'

View File

@ -0,0 +1,255 @@
<h1 align="center">Nexacro N WebView for Android</h1>
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 파일에 등록합니다. -->
plugin.xml
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="StatusBar">
<param name="android-package" value="org.apache.cordova.statusbar.StatusBar" />
<param name="onload" value="true" />
</feature>
<preference name="StatusBarOverlaysWebView" value="true" />
</config-file>
</platform>
==>
plugin_config.xml
<plugin name="StatusBar" class="org.apache.cordova.statusbar.StatusBar" onload="true"/>
<preference name="StatusBarOverlaysWebView" value="true" />
코르도바의 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;
...
}
```

BIN
NexacroN_V24/iOS/.DS_Store vendored Normal file

Binary file not shown.

Binary file not shown.

View File

@ -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 = "<group>"; };
617AF5902A78D6BF0093A60F /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/LaunchScreen.strings"; sourceTree = "<group>"; };
617AF5912A78D6C60093A60F /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/LaunchScreen.strings; sourceTree = "<group>"; };
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 = "<group>"; };
619C57372A5CF7A00065ABF5 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
619C573C2A5CF7A00065ABF5 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
619C573D2A5CF7A00065ABF5 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
619C57422A5CF7A40065ABF5 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
619C57452A5CF7A40065ABF5 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
619C57472A5CF7A40065ABF5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
619C57482A5CF7A40065ABF5 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
619C57502A5CF9830065ABF5 /* NXNetwork.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = NXNetwork.xcframework; sourceTree = "<group>"; };
619C57512A5CF9830065ABF5 /* NXCamera.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = NXCamera.xcframework; sourceTree = "<group>"; };
619C57522A5CF9830065ABF5 /* NXExternalAPI.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = NXExternalAPI.xcframework; sourceTree = "<group>"; };
619C57532A5CF9830065ABF5 /* NXAcceleration.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = NXAcceleration.xcframework; sourceTree = "<group>"; };
619C57542A5CF9840065ABF5 /* NXBluetoothLE.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = NXBluetoothLE.xcframework; sourceTree = "<group>"; };
619C57552A5CF9840065ABF5 /* NXLiteDB.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = NXLiteDB.xcframework; sourceTree = "<group>"; };
619C57562A5CF9850065ABF5 /* NXSms.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = NXSms.xcframework; sourceTree = "<group>"; };
619C57572A5CF9850065ABF5 /* NXVibrator.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = NXVibrator.xcframework; sourceTree = "<group>"; };
619C57582A5CF9860065ABF5 /* NXPush.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = NXPush.xcframework; sourceTree = "<group>"; };
619C57592A5CF9860065ABF5 /* NXContact.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = NXContact.xcframework; sourceTree = "<group>"; };
619C575A2A5CF9860065ABF5 /* NXAudioPlayer.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = NXAudioPlayer.xcframework; sourceTree = "<group>"; };
619C575B2A5CF9860065ABF5 /* nexacro.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = nexacro.xcframework; sourceTree = "<group>"; };
619C575C2A5CF9870065ABF5 /* NXGeolocation.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = NXGeolocation.xcframework; sourceTree = "<group>"; };
619C57862A5D0CD30065ABF5 /* splashimage_pad_landscape.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = splashimage_pad_landscape.png; sourceTree = "<group>"; };
619C57872A5D0CD40065ABF5 /* splashimage_pad_portrait.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = splashimage_pad_portrait.png; sourceTree = "<group>"; };
619C57882A5D0CD40065ABF5 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = "<group>"; };
619C57892A5D0CD40065ABF5 /* splashimage_phone_landscape.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = splashimage_phone_landscape.png; sourceTree = "<group>"; };
619C578A2A5D0CD50065ABF5 /* Default-Portrait@2x~ipad.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-Portrait@2x~ipad.png"; sourceTree = "<group>"; };
619C578B2A5D0CD50065ABF5 /* Default-Portrait~ipad.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-Portrait~ipad.png"; sourceTree = "<group>"; };
619C578C2A5D0CD50065ABF5 /* splashimage_phone_portrait.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = splashimage_phone_portrait.png; sourceTree = "<group>"; };
619C57972A5D18AE0065ABF5 /* data */ = {isa = PBXFileReference; lastKnownFileType = folder; path = data; sourceTree = "<group>"; };
/* 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 = "<group>";
};
619C57342A5CF7A00065ABF5 /* Products */ = {
isa = PBXGroup;
children = (
619C57332A5CF7A00065ABF5 /* HelloNexacroIos.app */,
);
name = Products;
sourceTree = "<group>";
};
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 = "<group>";
};
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 = "<group>";
};
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 = "<group>";
};
/* 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 = "<group>";
};
/* 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 */;
}

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:">
</FileRef>
</Workspace>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

View File

@ -0,0 +1,15 @@
//
// AppDelegate.h
// HelloNexacroIos
//
// Created by JaeHwan Kim on 2023/07/11.
//
#import <UIKit/UIKit.h>
#import <nexacro/NXAppDelegate.h>
@interface AppDelegate : NXAppDelegate
@end

View File

@ -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

View File

@ -0,0 +1,11 @@
{
"colors" : [
{
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@ -0,0 +1,14 @@
{
"images" : [
{
"filename" : "ui-2.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 KiB

View File

@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="EHf-IW-A2E">
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
</scene>
</scenes>
</document>

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleURLTypes</key>
<array>
<dict/>
</array>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
<false/>
</dict>
<key>UIViewControllerBasedStatusBarAppearance</key>
<true/>
</dict>
</plist>

View File

@ -0,0 +1,15 @@
//
// ViewController.h
// HelloNexacroIos
//
// Created by JaeHwan Kim on 2023/07/11.
//
#import <UIKit/UIKit.h>
#import <nexacro/NXViewController.h>
@interface ViewController : NXViewController
@end

View File

@ -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

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<nexacro-config>
<!-- application dialog-position: 업데이트 진행정보 출력 위치(top, center, bottom) -->
<!-- application file-logging: 초기 로딩 에러 정보를 파일로 떨구지 여부, 파일은 iTunes 를 통해서 확인 가능 -->
<!-- application quiet: iOS에서는 Android와는 다르게 html로 부트스트랩 정보를 읽어 들이므로 사용하지 않는 속성임. 다만 quite를 true로 설정시 updator quiet="true" 한것과 동일하게 동작하게 맞추어 놓음 -->
<application dialog-position="bottom" file-logging="true" quiet="false"/>
<!-- notification enable: 노티피케이션 기능을 사용하지 여부 -->
<!-- notification handler: 사용자 정의 노티피케이션 핸들명 -->
<notification enable="true" handler="UserNotificationHandler"/>
<!-- updator force: start_ios.json 정보로 부터 업데이트 파일 존재시 팝업창 표시 여부, true 시 팝업 창으로 확인 없어 강제 업데이트 진행 -->
<!-- updator cancelable: start_ios.json 정보로 부터 업데이트 파일 존재시 팝업창이 표시될때 취소 버튼 표시 여부, 취소 클릭시 앱이 종료됨 -->
<!-- updator errormsg: 초기로딩중 로딩에 실패했을때 에러 정보 팝업을 출력할지 여부, 최종 사용자 한테는 불필요한 정보이므로 배포시에는 false 로 할것 -->
<!-- updator quiet: 업데이트 확인중 메시지를 숨길지 여부, true로 하더라도 업데이트 존재시 업데이트 수행중의 단계숫자는 출력됨 -->
<updator force="false" cancelable="true" errormsg="true" quiet="false" failpass="false"/>
<!-- splashimage scaletype(stretch, cover, contain, auto) 과 backgroundcolor 지원 -->
<!-- <splash classname="" scaletype="contain" background-color="#ffe3ff"/>-->
</nexacro-config>

View File

@ -0,0 +1,18 @@
//
// main.m
// HelloNexacroIos
//
// Created by JaeHwan Kim on 2023/07/11.
//
#import <UIKit/UIKit.h>
#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);
}

View File

@ -0,0 +1,104 @@
<h1 align="center">Hello Nexacro iOS Webview</h1>
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 파일에 등록합니다. -->
plugin.xml
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="StatusBar">
<param name="ios-package" value="CDVStatusBar" />
<param name="onload" value="true" />
</feature>
<preference name="StatusBarOverlaysWebView" value="true" />
<preference name="StatusBarStyle" value="lightcontent" />
</config-file>
</platform>
==>
plugin_config.xml
<plugin name="StatusBar" class="CDVStatusBar" onload="true"/>
<preference name="StatusBarOverlaysWebView" value="true" />
<preference name="StatusBarStyle" value="lightcontent" />
코르도바의 config.xml은 넥사크로의 plugin_config.xml 파일과 동일한 역할을 합니다.
```
2. Xcode 를 통한 Cordova 플러그인 파일 추가 및 수정.
- 넥사크로 프로젝트 경로에 복사된 플러그인 소스를 앱 프로젝트에 복사한후 Xcode 에서 빌드되도록 소스를 추가합니다.
- 추가한 플러그인 소스에서 Cordova 관련 import 경로를 아래와 같이 변경합니다.
```
<Cordova/CDV.h> // 변경 전
<nexacro/Cordova/CDV.h> // 변경 후
```
3. 플러그인의 종류에 따라서 이외의 작업이 있을수 있습니다.
4. 빌드.
## 프로젝트 구성시 참고 사항
- Xcode로 iOS app 프로젝트를 생성한후 Scene 과 관련된 모든 파일을 제거 해야 합니다.

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB