├── .babelrc ├── .buckconfig ├── .flowconfig ├── .gitattributes ├── .gitignore ├── .watchmanconfig ├── App.js ├── README.md ├── __tests__ └── App.js ├── android ├── app │ ├── BUCK │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── kotlinchat │ │ │ ├── MainActivity.java │ │ │ └── MainApplication.java │ │ └── res │ │ ├── mipmap-hdpi │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ └── ic_launcher.png │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── keystores │ ├── BUCK │ └── debug.keystore.properties └── settings.gradle ├── app.json ├── build.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── index.js ├── ios ├── kotlinchat-tvOS │ └── Info.plist ├── kotlinchat-tvOSTests │ └── Info.plist ├── kotlinchat.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── kotlinchat-tvOS.xcscheme │ │ └── kotlinchat.xcscheme ├── kotlinchat │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── Contents.json │ ├── Info.plist │ ├── SharedDataModule.h │ ├── SharedDataModule.m │ └── main.m └── kotlinchatTests │ ├── Info.plist │ └── kotlinchatTests.m ├── package.json ├── shared ├── build.gradle └── src │ └── main │ └── Data.kt ├── src ├── app │ ├── App.kt │ ├── SendButton.kt │ ├── TextComposer.kt │ └── messages.kt ├── index.kt ├── reactnative │ ├── ReactNative.kt │ └── ReactNativeChat.kt └── ts │ ├── globals.d.ts │ └── rn.d.ts ├── webpack.haul.js └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["react-native"] 3 | } 4 | -------------------------------------------------------------------------------- /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | ; We fork some components by platform 3 | .*/*[.]android.js 4 | 5 | ; Ignore "BUCK" generated dirs 6 | /\.buckd/ 7 | 8 | ; Ignore unexpected extra "@providesModule" 9 | .*/node_modules/.*/node_modules/fbjs/.* 10 | 11 | ; Ignore duplicate module providers 12 | ; For RN Apps installed via npm, "Libraries" folder is inside 13 | ; "node_modules/react-native" but in the source repo it is in the root 14 | .*/Libraries/react-native/React.js 15 | 16 | ; Ignore polyfills 17 | .*/Libraries/polyfills/.* 18 | 19 | ; Ignore metro 20 | .*/node_modules/metro/.* 21 | 22 | [include] 23 | 24 | [libs] 25 | node_modules/react-native/Libraries/react-native/react-native-interface.js 26 | node_modules/react-native/flow/ 27 | node_modules/react-native/flow-github/ 28 | 29 | [options] 30 | emoji=true 31 | 32 | module.system=haste 33 | 34 | munge_underscores=true 35 | 36 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub' 37 | 38 | module.file_ext=.js 39 | module.file_ext=.jsx 40 | module.file_ext=.json 41 | module.file_ext=.native.js 42 | 43 | suppress_type=$FlowIssue 44 | suppress_type=$FlowFixMe 45 | suppress_type=$FlowFixMeProps 46 | suppress_type=$FlowFixMeState 47 | 48 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 49 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 50 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 51 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError 52 | 53 | [version] 54 | ^0.65.0 55 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | project.xcworkspace 24 | 25 | # Android/IntelliJ 26 | # 27 | build/ 28 | .idea 29 | .gradle 30 | local.properties 31 | *.iml 32 | 33 | # node.js 34 | # 35 | node_modules/ 36 | npm-debug.log 37 | yarn-error.log 38 | 39 | # BUCK 40 | buck-out/ 41 | \.buckd/ 42 | *.keystore 43 | 44 | # fastlane 45 | # 46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 47 | # screenshots whenever they are needed. 48 | # For more information about the recommended setup visit: 49 | # https://docs.fastlane.tools/best-practices/source-control/ 50 | 51 | */fastlane/report.xml 52 | */fastlane/Preview.html 53 | */fastlane/screenshots 54 | 55 | # Haul 56 | # 57 | haul-debug.log 58 | kotlin_build 59 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /App.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | * @flow 5 | */ 6 | 7 | import React, { Component } from 'react'; 8 | import { 9 | Platform, 10 | StyleSheet, 11 | Text, 12 | View 13 | } from 'react-native'; 14 | 15 | const instructions = Platform.select({ 16 | ios: 'Press Cmd+R to reload,\n' + 17 | 'Cmd+D or shake for dev menu', 18 | android: 'Double tap R on your keyboard to reload,\n' + 19 | 'Shake or press menu button for dev menu', 20 | }); 21 | 22 | type Props = {}; 23 | export default class App extends Component { 24 | render() { 25 | return ( 26 | 27 | 28 | Welcome to React Native! 29 | 30 | 31 | To get started, edit App.js 32 | 33 | 34 | {instructions} 35 | 36 | 37 | ); 38 | } 39 | } 40 | 41 | const styles = StyleSheet.create({ 42 | container: { 43 | flex: 1, 44 | justifyContent: 'center', 45 | alignItems: 'center', 46 | backgroundColor: '#F5FCFF', 47 | }, 48 | welcome: { 49 | fontSize: 20, 50 | textAlign: 'center', 51 | margin: 10, 52 | }, 53 | instructions: { 54 | textAlign: 'center', 55 | color: '#333333', 56 | marginBottom: 5, 57 | }, 58 | }); 59 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Kotlin react-native 2 | 3 | * [x] Using Kotlin.js inside React Native JSC using third-party libraries (Gifted Chat) 4 | * [x] Using Kotlin/Native and React Native Bridge to pass data from Kotlin/Native -> Kotlin.js 5 | 6 | 1. Install [haul](https://github.com/callstack/haul/) 7 | 2. run `yarn haul start --platform ios` 8 | 9 | ![mar-05-2018 16-24-10](https://user-images.githubusercontent.com/1004115/36977303-b980046c-2091-11e8-85f6-318182815a3d.gif) 10 | -------------------------------------------------------------------------------- /__tests__/App.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import App from '../App'; 4 | 5 | // Note: test renderer must be required after react-native. 6 | import renderer from 'react-test-renderer'; 7 | 8 | it('renders correctly', () => { 9 | const tree = renderer.create( 10 | 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /android/app/BUCK: -------------------------------------------------------------------------------- 1 | # To learn about Buck see [Docs](https://buckbuild.com/). 2 | # To run your application with Buck: 3 | # - install Buck 4 | # - `npm start` - to start the packager 5 | # - `cd android` 6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 8 | # - `buck install -r android/app` - compile, install and run application 9 | # 10 | 11 | lib_deps = [] 12 | 13 | for jarfile in glob(['libs/*.jar']): 14 | name = 'jars__' + jarfile[jarfile.rindex('/') + 1: jarfile.rindex('.jar')] 15 | lib_deps.append(':' + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | 21 | for aarfile in glob(['libs/*.aar']): 22 | name = 'aars__' + aarfile[aarfile.rindex('/') + 1: aarfile.rindex('.aar')] 23 | lib_deps.append(':' + name) 24 | android_prebuilt_aar( 25 | name = name, 26 | aar = aarfile, 27 | ) 28 | 29 | android_library( 30 | name = "all-libs", 31 | exported_deps = lib_deps, 32 | ) 33 | 34 | android_library( 35 | name = "app-code", 36 | srcs = glob([ 37 | "src/main/java/**/*.java", 38 | ]), 39 | deps = [ 40 | ":all-libs", 41 | ":build_config", 42 | ":res", 43 | ], 44 | ) 45 | 46 | android_build_config( 47 | name = "build_config", 48 | package = "com.kotlinchat", 49 | ) 50 | 51 | android_resource( 52 | name = "res", 53 | package = "com.kotlinchat", 54 | res = "src/main/res", 55 | ) 56 | 57 | android_binary( 58 | name = "app", 59 | keystore = "//android/keystores:debug", 60 | manifest = "src/main/AndroidManifest.xml", 61 | package_type = "debug", 62 | deps = [ 63 | ":app-code", 64 | ], 65 | ) 66 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | import com.android.build.OutputFile 4 | 5 | /** 6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 7 | * and bundleReleaseJsAndAssets). 8 | * These basically call `react-native bundle` with the correct arguments during the Android build 9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 10 | * bundle directly from the development server. Below you can see all the possible configurations 11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 12 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 13 | * 14 | * project.ext.react = [ 15 | * // the name of the generated asset file containing your JS bundle 16 | * bundleAssetName: "index.android.bundle", 17 | * 18 | * // the entry file for bundle generation 19 | * entryFile: "index.android.js", 20 | * 21 | * // whether to bundle JS and assets in debug mode 22 | * bundleInDebug: false, 23 | * 24 | * // whether to bundle JS and assets in release mode 25 | * bundleInRelease: true, 26 | * 27 | * // whether to bundle JS and assets in another build variant (if configured). 28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 29 | * // The configuration property can be in the following formats 30 | * // 'bundleIn${productFlavor}${buildType}' 31 | * // 'bundleIn${buildType}' 32 | * // bundleInFreeDebug: true, 33 | * // bundleInPaidRelease: true, 34 | * // bundleInBeta: true, 35 | * 36 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 37 | * // for example: to disable dev mode in the staging build type (if configured) 38 | * devDisabledInStaging: true, 39 | * // The configuration property can be in the following formats 40 | * // 'devDisabledIn${productFlavor}${buildType}' 41 | * // 'devDisabledIn${buildType}' 42 | * 43 | * // the root of your project, i.e. where "package.json" lives 44 | * root: "../../", 45 | * 46 | * // where to put the JS bundle asset in debug mode 47 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 48 | * 49 | * // where to put the JS bundle asset in release mode 50 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 51 | * 52 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 53 | * // require('./image.png')), in debug mode 54 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 55 | * 56 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 57 | * // require('./image.png')), in release mode 58 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 59 | * 60 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 61 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 62 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 63 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 64 | * // for example, you might want to remove it from here. 65 | * inputExcludes: ["android/**", "ios/**"], 66 | * 67 | * // override which node gets called and with what additional arguments 68 | * nodeExecutableAndArgs: ["node"], 69 | * 70 | * // supply additional arguments to the packager 71 | * extraPackagerArgs: [] 72 | * ] 73 | */ 74 | 75 | project.ext.react = [ 76 | entryFile: "index.js" 77 | ] 78 | 79 | project.ext.react = [ 80 | cliPath: "node_modules/haul/bin/cli.js" 81 | ] 82 | 83 | apply from: "../../node_modules/react-native/react.gradle" 84 | 85 | /** 86 | * Set this to true to create two separate APKs instead of one: 87 | * - An APK that only works on ARM devices 88 | * - An APK that only works on x86 devices 89 | * The advantage is the size of the APK is reduced by about 4MB. 90 | * Upload all the APKs to the Play Store and people will download 91 | * the correct one based on the CPU architecture of their device. 92 | */ 93 | def enableSeparateBuildPerCPUArchitecture = false 94 | 95 | /** 96 | * Run Proguard to shrink the Java bytecode in release builds. 97 | */ 98 | def enableProguardInReleaseBuilds = false 99 | 100 | android { 101 | compileSdkVersion 23 102 | buildToolsVersion "23.0.1" 103 | 104 | defaultConfig { 105 | applicationId "com.kotlinchat" 106 | minSdkVersion 16 107 | targetSdkVersion 22 108 | versionCode 1 109 | versionName "1.0" 110 | ndk { 111 | abiFilters "armeabi-v7a", "x86" 112 | } 113 | } 114 | splits { 115 | abi { 116 | reset() 117 | enable enableSeparateBuildPerCPUArchitecture 118 | universalApk false // If true, also generate a universal APK 119 | include "armeabi-v7a", "x86" 120 | } 121 | } 122 | buildTypes { 123 | release { 124 | minifyEnabled enableProguardInReleaseBuilds 125 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 126 | } 127 | } 128 | // applicationVariants are e.g. debug, release 129 | applicationVariants.all { variant -> 130 | variant.outputs.each { output -> 131 | // For each separate APK per architecture, set a unique version code as described here: 132 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits 133 | def versionCodes = ["armeabi-v7a":1, "x86":2] 134 | def abi = output.getFilter(OutputFile.ABI) 135 | if (abi != null) { // null for the universal-debug, universal-release variants 136 | output.versionCodeOverride = 137 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 138 | } 139 | } 140 | } 141 | } 142 | 143 | dependencies { 144 | compile fileTree(dir: "libs", include: ["*.jar"]) 145 | compile "com.android.support:appcompat-v7:23.0.1" 146 | compile "com.facebook.react:react-native:+" // From node_modules 147 | } 148 | 149 | // Run this once to be able to run the application with BUCK 150 | // puts all compile dependencies into folder libs for BUCK to use 151 | task copyDownloadableDepsToLibs(type: Copy) { 152 | from configurations.compile 153 | into 'libs' 154 | } 155 | -------------------------------------------------------------------------------- /android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Disabling obfuscation is useful if you collect stack traces from production crashes 20 | # (unless you are using a system that supports de-obfuscate the stack traces). 21 | -dontobfuscate 22 | 23 | # React Native 24 | 25 | # Keep our interfaces so they can be used by other ProGuard rules. 26 | # See http://sourceforge.net/p/proguard/bugs/466/ 27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip 28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters 29 | -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip 30 | 31 | # Do not strip any method/class that is annotated with @DoNotStrip 32 | -keep @com.facebook.proguard.annotations.DoNotStrip class * 33 | -keep @com.facebook.common.internal.DoNotStrip class * 34 | -keepclassmembers class * { 35 | @com.facebook.proguard.annotations.DoNotStrip *; 36 | @com.facebook.common.internal.DoNotStrip *; 37 | } 38 | 39 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * { 40 | void set*(***); 41 | *** get*(); 42 | } 43 | 44 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; } 45 | -keep class * extends com.facebook.react.bridge.NativeModule { *; } 46 | -keepclassmembers,includedescriptorclasses class * { native ; } 47 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; } 48 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; } 49 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; } 50 | 51 | -dontwarn com.facebook.react.** 52 | 53 | # TextLayoutBuilder uses a non-public Android constructor within StaticLayout. 54 | # See libs/proxy/src/main/java/com/facebook/fbui/textlayoutbuilder/proxy for details. 55 | -dontwarn android.text.StaticLayout 56 | 57 | # okhttp 58 | 59 | -keepattributes Signature 60 | -keepattributes *Annotation* 61 | -keep class okhttp3.** { *; } 62 | -keep interface okhttp3.** { *; } 63 | -dontwarn okhttp3.** 64 | 65 | # okio 66 | 67 | -keep class sun.misc.Unsafe { *; } 68 | -dontwarn java.nio.file.* 69 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement 70 | -dontwarn okio.** 71 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 13 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/kotlinchat/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.kotlinchat; 2 | 3 | import com.facebook.react.ReactActivity; 4 | 5 | public class MainActivity extends ReactActivity { 6 | 7 | /** 8 | * Returns the name of the main component registered from JavaScript. 9 | * This is used to schedule rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "kotlinchat"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/kotlinchat/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.kotlinchat; 2 | 3 | import android.app.Application; 4 | 5 | import com.facebook.react.ReactApplication; 6 | import com.facebook.react.ReactNativeHost; 7 | import com.facebook.react.ReactPackage; 8 | import com.facebook.react.shell.MainReactPackage; 9 | import com.facebook.soloader.SoLoader; 10 | 11 | import java.util.Arrays; 12 | import java.util.List; 13 | 14 | public class MainApplication extends Application implements ReactApplication { 15 | 16 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 17 | @Override 18 | public boolean getUseDeveloperSupport() { 19 | return BuildConfig.DEBUG; 20 | } 21 | 22 | @Override 23 | protected List getPackages() { 24 | return Arrays.asList( 25 | new MainReactPackage() 26 | ); 27 | } 28 | 29 | @Override 30 | protected String getJSMainModuleName() { 31 | return "index"; 32 | } 33 | }; 34 | 35 | @Override 36 | public ReactNativeHost getReactNativeHost() { 37 | return mReactNativeHost; 38 | } 39 | 40 | @Override 41 | public void onCreate() { 42 | super.onCreate(); 43 | SoLoader.init(this, /* native exopackage */ false); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptmt/kotlin-react-native-example/17054602fd50bd48de54d98afdafdf839e90a7be/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptmt/kotlin-react-native-example/17054602fd50bd48de54d98afdafdf839e90a7be/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptmt/kotlin-react-native-example/17054602fd50bd48de54d98afdafdf839e90a7be/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptmt/kotlin-react-native-example/17054602fd50bd48de54d98afdafdf839e90a7be/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | kotlinchat 3 | 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:2.2.3' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | mavenLocal() 18 | jcenter() 19 | maven { 20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 21 | url "$rootDir/../node_modules/react-native/android" 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | android.useDeprecatedNdk=true 21 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptmt/kotlin-react-native-example/17054602fd50bd48de54d98afdafdf839e90a7be/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip 6 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # For Cygwin, ensure paths are in UNIX format before anything is touched. 46 | if $cygwin ; then 47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 48 | fi 49 | 50 | # Attempt to set APP_HOME 51 | # Resolve links: $0 may be a link 52 | PRG="$0" 53 | # Need this for relative symlinks. 54 | while [ -h "$PRG" ] ; do 55 | ls=`ls -ld "$PRG"` 56 | link=`expr "$ls" : '.*-> \(.*\)$'` 57 | if expr "$link" : '/.*' > /dev/null; then 58 | PRG="$link" 59 | else 60 | PRG=`dirname "$PRG"`"/$link" 61 | fi 62 | done 63 | SAVED="`pwd`" 64 | cd "`dirname \"$PRG\"`/" >&- 65 | APP_HOME="`pwd -P`" 66 | cd "$SAVED" >&- 67 | 68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 69 | 70 | # Determine the Java command to use to start the JVM. 71 | if [ -n "$JAVA_HOME" ] ; then 72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 73 | # IBM's JDK on AIX uses strange locations for the executables 74 | JAVACMD="$JAVA_HOME/jre/sh/java" 75 | else 76 | JAVACMD="$JAVA_HOME/bin/java" 77 | fi 78 | if [ ! -x "$JAVACMD" ] ; then 79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 80 | 81 | Please set the JAVA_HOME variable in your environment to match the 82 | location of your Java installation." 83 | fi 84 | else 85 | JAVACMD="java" 86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 87 | 88 | Please set the JAVA_HOME variable in your environment to match the 89 | location of your Java installation." 90 | fi 91 | 92 | # Increase the maximum file descriptors if we can. 93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 94 | MAX_FD_LIMIT=`ulimit -H -n` 95 | if [ $? -eq 0 ] ; then 96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 97 | MAX_FD="$MAX_FD_LIMIT" 98 | fi 99 | ulimit -n $MAX_FD 100 | if [ $? -ne 0 ] ; then 101 | warn "Could not set maximum file descriptor limit: $MAX_FD" 102 | fi 103 | else 104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 105 | fi 106 | fi 107 | 108 | # For Darwin, add options to specify how the application appears in the dock 109 | if $darwin; then 110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 111 | fi 112 | 113 | # For Cygwin, switch paths to Windows format before running java 114 | if $cygwin ; then 115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 158 | function splitJvmOpts() { 159 | JVM_OPTS=("$@") 160 | } 161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 163 | 164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 165 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = "debug", 3 | properties = "debug.keystore.properties", 4 | store = "debug.keystore", 5 | visibility = [ 6 | "PUBLIC", 7 | ], 8 | ) 9 | -------------------------------------------------------------------------------- /android/keystores/debug.keystore.properties: -------------------------------------------------------------------------------- 1 | key.store=debug.keystore 2 | key.alias=androiddebugkey 3 | key.store.password=android 4 | key.alias.password=android 5 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'kotlinchat' 2 | 3 | include ':app' 4 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "kotlinchat", 3 | "displayName": "kotlinchat" 4 | } -------------------------------------------------------------------------------- /build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | mavenCentral() 4 | maven { 5 | url "https://dl.bintray.com/jetbrains/kotlin-native-dependencies" 6 | } 7 | } 8 | 9 | dependencies { 10 | classpath "org.jetbrains.kotlin:kotlin-native-gradle-plugin:+" 11 | } 12 | } 13 | 14 | apply plugin: 'konan' 15 | 16 | konan.targets = ['iphone', 'iphone_sim'] 17 | 18 | konanArtifacts { 19 | framework('SharedData') { 20 | srcDir 'shared/src/main' 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptmt/kotlin-react-native-example/17054602fd50bd48de54d98afdafdf839e90a7be/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.5-bin.zip 6 | -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Attempt to set APP_HOME 10 | # Resolve links: $0 may be a link 11 | PRG="$0" 12 | # Need this for relative symlinks. 13 | while [ -h "$PRG" ] ; do 14 | ls=`ls -ld "$PRG"` 15 | link=`expr "$ls" : '.*-> \(.*\)$'` 16 | if expr "$link" : '/.*' > /dev/null; then 17 | PRG="$link" 18 | else 19 | PRG=`dirname "$PRG"`"/$link" 20 | fi 21 | done 22 | SAVED="`pwd`" 23 | cd "`dirname \"$PRG\"`/" >/dev/null 24 | APP_HOME="`pwd -P`" 25 | cd "$SAVED" >/dev/null 26 | 27 | APP_NAME="Gradle" 28 | APP_BASE_NAME=`basename "$0"` 29 | 30 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 31 | DEFAULT_JVM_OPTS="" 32 | 33 | # Use the maximum available, or set MAX_FD != -1 to use that value. 34 | MAX_FD="maximum" 35 | 36 | warn () { 37 | echo "$*" 38 | } 39 | 40 | die () { 41 | echo 42 | echo "$*" 43 | echo 44 | exit 1 45 | } 46 | 47 | # OS specific support (must be 'true' or 'false'). 48 | cygwin=false 49 | msys=false 50 | darwin=false 51 | nonstop=false 52 | case "`uname`" in 53 | CYGWIN* ) 54 | cygwin=true 55 | ;; 56 | Darwin* ) 57 | darwin=true 58 | ;; 59 | MINGW* ) 60 | msys=true 61 | ;; 62 | NONSTOP* ) 63 | nonstop=true 64 | ;; 65 | esac 66 | 67 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 68 | 69 | # Determine the Java command to use to start the JVM. 70 | if [ -n "$JAVA_HOME" ] ; then 71 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 72 | # IBM's JDK on AIX uses strange locations for the executables 73 | JAVACMD="$JAVA_HOME/jre/sh/java" 74 | else 75 | JAVACMD="$JAVA_HOME/bin/java" 76 | fi 77 | if [ ! -x "$JAVACMD" ] ; then 78 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 79 | 80 | Please set the JAVA_HOME variable in your environment to match the 81 | location of your Java installation." 82 | fi 83 | else 84 | JAVACMD="java" 85 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 86 | 87 | Please set the JAVA_HOME variable in your environment to match the 88 | location of your Java installation." 89 | fi 90 | 91 | # Increase the maximum file descriptors if we can. 92 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 93 | MAX_FD_LIMIT=`ulimit -H -n` 94 | if [ $? -eq 0 ] ; then 95 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 96 | MAX_FD="$MAX_FD_LIMIT" 97 | fi 98 | ulimit -n $MAX_FD 99 | if [ $? -ne 0 ] ; then 100 | warn "Could not set maximum file descriptor limit: $MAX_FD" 101 | fi 102 | else 103 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 104 | fi 105 | fi 106 | 107 | # For Darwin, add options to specify how the application appears in the dock 108 | if $darwin; then 109 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 110 | fi 111 | 112 | # For Cygwin, switch paths to Windows format before running java 113 | if $cygwin ; then 114 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 115 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 116 | JAVACMD=`cygpath --unix "$JAVACMD"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Escape application args 158 | save () { 159 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 160 | echo " " 161 | } 162 | APP_ARGS=$(save "$@") 163 | 164 | # Collect all arguments for the java command, following the shell quoting and substitution rules 165 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 166 | 167 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong 168 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then 169 | cd "$(dirname "$0")" 170 | fi 171 | 172 | exec "$JAVACMD" "$@" 173 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | set DIRNAME=%~dp0 12 | if "%DIRNAME%" == "" set DIRNAME=. 13 | set APP_BASE_NAME=%~n0 14 | set APP_HOME=%DIRNAME% 15 | 16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 17 | set DEFAULT_JVM_OPTS= 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windows variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | 53 | :win9xME_args 54 | @rem Slurp the command line arguments. 55 | set CMD_LINE_ARGS= 56 | set _SKIP=2 57 | 58 | :win9xME_args_slurp 59 | if "x%~1" == "x" goto execute 60 | 61 | set CMD_LINE_ARGS=%* 62 | 63 | :execute 64 | @rem Setup the command line 65 | 66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 67 | 68 | @rem Execute Gradle 69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 70 | 71 | :end 72 | @rem End local scope for the variables with windows NT shell 73 | if "%ERRORLEVEL%"=="0" goto mainEnd 74 | 75 | :fail 76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 77 | rem the _cmd.exe /c_ return code! 78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 79 | exit /b 1 80 | 81 | :mainEnd 82 | if "%OS%"=="Windows_NT" endlocal 83 | 84 | :omega 85 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | import { AppRegistry } from 'react-native'; 2 | import App from './App'; 3 | 4 | AppRegistry.registerComponent('kotlinchat', () => App); 5 | -------------------------------------------------------------------------------- /ios/kotlinchat-tvOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UIViewControllerBasedStatusBarAppearance 38 | 39 | NSLocationWhenInUseUsageDescription 40 | 41 | NSAppTransportSecurity 42 | 43 | 44 | NSExceptionDomains 45 | 46 | localhost 47 | 48 | NSExceptionAllowsInsecureHTTPLoads 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /ios/kotlinchat-tvOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/kotlinchat.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; }; 11 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; }; 12 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; }; 13 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; }; 14 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; }; 15 | 00E356F31AD99517003FC87E /* kotlinchatTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* kotlinchatTests.m */; }; 16 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 17 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 18 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 19 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 20 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 21 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 22 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 23 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 24 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 25 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 26 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 27 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 28 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 29 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */; }; 30 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */; }; 31 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */; }; 32 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */; }; 33 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */; }; 34 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */; }; 35 | 2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D16E6891FA4F8E400B85C8A /* libReact.a */; }; 36 | 2DCD954D1E0B4F2C00145EB5 /* kotlinchatTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* kotlinchatTests.m */; }; 37 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 38 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 39 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */; }; 40 | D446A09E204D64A80016D9C6 /* SharedDataModule.m in Sources */ = {isa = PBXBuildFile; fileRef = D446A09C204D64A80016D9C6 /* SharedDataModule.m */; }; 41 | D446A09F204D64AA0016D9C6 /* SharedDataModule.m in Sources */ = {isa = PBXBuildFile; fileRef = D446A09C204D64A80016D9C6 /* SharedDataModule.m */; }; 42 | D446A0AC204D6C600016D9C6 /* SharedData.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D446A0AB204D6C600016D9C6 /* SharedData.framework */; }; 43 | D446A0AD204D6C670016D9C6 /* SharedData.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D446A0AB204D6C600016D9C6 /* SharedData.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 44 | /* End PBXBuildFile section */ 45 | 46 | /* Begin PBXContainerItemProxy section */ 47 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 48 | isa = PBXContainerItemProxy; 49 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 50 | proxyType = 2; 51 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 52 | remoteInfo = RCTActionSheet; 53 | }; 54 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 55 | isa = PBXContainerItemProxy; 56 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 57 | proxyType = 2; 58 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 59 | remoteInfo = RCTGeolocation; 60 | }; 61 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 62 | isa = PBXContainerItemProxy; 63 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 64 | proxyType = 2; 65 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 66 | remoteInfo = RCTImage; 67 | }; 68 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 69 | isa = PBXContainerItemProxy; 70 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 71 | proxyType = 2; 72 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 73 | remoteInfo = RCTNetwork; 74 | }; 75 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 76 | isa = PBXContainerItemProxy; 77 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 78 | proxyType = 2; 79 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 80 | remoteInfo = RCTVibration; 81 | }; 82 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 83 | isa = PBXContainerItemProxy; 84 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 85 | proxyType = 1; 86 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 87 | remoteInfo = kotlinchat; 88 | }; 89 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 90 | isa = PBXContainerItemProxy; 91 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 92 | proxyType = 2; 93 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 94 | remoteInfo = RCTSettings; 95 | }; 96 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 97 | isa = PBXContainerItemProxy; 98 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 99 | proxyType = 2; 100 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 101 | remoteInfo = RCTWebSocket; 102 | }; 103 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 104 | isa = PBXContainerItemProxy; 105 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 106 | proxyType = 2; 107 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 108 | remoteInfo = React; 109 | }; 110 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 111 | isa = PBXContainerItemProxy; 112 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 113 | proxyType = 1; 114 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 115 | remoteInfo = "kotlinchat-tvOS"; 116 | }; 117 | 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 118 | isa = PBXContainerItemProxy; 119 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 120 | proxyType = 2; 121 | remoteGlobalIDString = ADD01A681E09402E00F6D226; 122 | remoteInfo = "RCTBlob-tvOS"; 123 | }; 124 | 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 125 | isa = PBXContainerItemProxy; 126 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 127 | proxyType = 2; 128 | remoteGlobalIDString = 3DBE0D001F3B181A0099AA32; 129 | remoteInfo = fishhook; 130 | }; 131 | 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 132 | isa = PBXContainerItemProxy; 133 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 134 | proxyType = 2; 135 | remoteGlobalIDString = 3DBE0D0D1F3B181C0099AA32; 136 | remoteInfo = "fishhook-tvOS"; 137 | }; 138 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = { 139 | isa = PBXContainerItemProxy; 140 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 141 | proxyType = 2; 142 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D; 143 | remoteInfo = "RCTImage-tvOS"; 144 | }; 145 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = { 146 | isa = PBXContainerItemProxy; 147 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 148 | proxyType = 2; 149 | remoteGlobalIDString = 2D2A28471D9B043800D4039D; 150 | remoteInfo = "RCTLinking-tvOS"; 151 | }; 152 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 153 | isa = PBXContainerItemProxy; 154 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 155 | proxyType = 2; 156 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D; 157 | remoteInfo = "RCTNetwork-tvOS"; 158 | }; 159 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 160 | isa = PBXContainerItemProxy; 161 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 162 | proxyType = 2; 163 | remoteGlobalIDString = 2D2A28611D9B046600D4039D; 164 | remoteInfo = "RCTSettings-tvOS"; 165 | }; 166 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = { 167 | isa = PBXContainerItemProxy; 168 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 169 | proxyType = 2; 170 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D; 171 | remoteInfo = "RCTText-tvOS"; 172 | }; 173 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = { 174 | isa = PBXContainerItemProxy; 175 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 176 | proxyType = 2; 177 | remoteGlobalIDString = 2D2A28881D9B049200D4039D; 178 | remoteInfo = "RCTWebSocket-tvOS"; 179 | }; 180 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = { 181 | isa = PBXContainerItemProxy; 182 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 183 | proxyType = 2; 184 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D; 185 | remoteInfo = "React-tvOS"; 186 | }; 187 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = { 188 | isa = PBXContainerItemProxy; 189 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 190 | proxyType = 2; 191 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA; 192 | remoteInfo = yoga; 193 | }; 194 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = { 195 | isa = PBXContainerItemProxy; 196 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 197 | proxyType = 2; 198 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA; 199 | remoteInfo = "yoga-tvOS"; 200 | }; 201 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = { 202 | isa = PBXContainerItemProxy; 203 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 204 | proxyType = 2; 205 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4; 206 | remoteInfo = cxxreact; 207 | }; 208 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 209 | isa = PBXContainerItemProxy; 210 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 211 | proxyType = 2; 212 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4; 213 | remoteInfo = "cxxreact-tvOS"; 214 | }; 215 | 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 216 | isa = PBXContainerItemProxy; 217 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 218 | proxyType = 2; 219 | remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4; 220 | remoteInfo = jschelpers; 221 | }; 222 | 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 223 | isa = PBXContainerItemProxy; 224 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 225 | proxyType = 2; 226 | remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4; 227 | remoteInfo = "jschelpers-tvOS"; 228 | }; 229 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 230 | isa = PBXContainerItemProxy; 231 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 232 | proxyType = 2; 233 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 234 | remoteInfo = RCTAnimation; 235 | }; 236 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 237 | isa = PBXContainerItemProxy; 238 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 239 | proxyType = 2; 240 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D; 241 | remoteInfo = "RCTAnimation-tvOS"; 242 | }; 243 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 244 | isa = PBXContainerItemProxy; 245 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 246 | proxyType = 2; 247 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 248 | remoteInfo = RCTLinking; 249 | }; 250 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 251 | isa = PBXContainerItemProxy; 252 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 253 | proxyType = 2; 254 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 255 | remoteInfo = RCTText; 256 | }; 257 | ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */ = { 258 | isa = PBXContainerItemProxy; 259 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 260 | proxyType = 2; 261 | remoteGlobalIDString = 358F4ED71D1E81A9004DF814; 262 | remoteInfo = RCTBlob; 263 | }; 264 | D446A05B204D2AD30016D9C6 /* PBXContainerItemProxy */ = { 265 | isa = PBXContainerItemProxy; 266 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 267 | proxyType = 2; 268 | remoteGlobalIDString = EBF21BDC1FC498900052F4D5; 269 | remoteInfo = jsinspector; 270 | }; 271 | D446A05D204D2AD30016D9C6 /* PBXContainerItemProxy */ = { 272 | isa = PBXContainerItemProxy; 273 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 274 | proxyType = 2; 275 | remoteGlobalIDString = EBF21BFA1FC4989A0052F4D5; 276 | remoteInfo = "jsinspector-tvOS"; 277 | }; 278 | D446A05F204D2AD30016D9C6 /* PBXContainerItemProxy */ = { 279 | isa = PBXContainerItemProxy; 280 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 281 | proxyType = 2; 282 | remoteGlobalIDString = 139D7ECE1E25DB7D00323FB7; 283 | remoteInfo = "third-party"; 284 | }; 285 | D446A061204D2AD30016D9C6 /* PBXContainerItemProxy */ = { 286 | isa = PBXContainerItemProxy; 287 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 288 | proxyType = 2; 289 | remoteGlobalIDString = 3D383D3C1EBD27B6005632C8; 290 | remoteInfo = "third-party-tvOS"; 291 | }; 292 | D446A063204D2AD30016D9C6 /* PBXContainerItemProxy */ = { 293 | isa = PBXContainerItemProxy; 294 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 295 | proxyType = 2; 296 | remoteGlobalIDString = 139D7E881E25C6D100323FB7; 297 | remoteInfo = "double-conversion"; 298 | }; 299 | D446A065204D2AD30016D9C6 /* PBXContainerItemProxy */ = { 300 | isa = PBXContainerItemProxy; 301 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 302 | proxyType = 2; 303 | remoteGlobalIDString = 3D383D621EBD27B9005632C8; 304 | remoteInfo = "double-conversion-tvOS"; 305 | }; 306 | D446A067204D2AD30016D9C6 /* PBXContainerItemProxy */ = { 307 | isa = PBXContainerItemProxy; 308 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 309 | proxyType = 2; 310 | remoteGlobalIDString = 9936F3131F5F2E4B0010BF04; 311 | remoteInfo = privatedata; 312 | }; 313 | D446A069204D2AD30016D9C6 /* PBXContainerItemProxy */ = { 314 | isa = PBXContainerItemProxy; 315 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 316 | proxyType = 2; 317 | remoteGlobalIDString = 9936F32F1F5F2E5B0010BF04; 318 | remoteInfo = "privatedata-tvOS"; 319 | }; 320 | /* End PBXContainerItemProxy section */ 321 | 322 | /* Begin PBXCopyFilesBuildPhase section */ 323 | D446A0A4204D69980016D9C6 /* Embed Frameworks */ = { 324 | isa = PBXCopyFilesBuildPhase; 325 | buildActionMask = 12; 326 | dstPath = ""; 327 | dstSubfolderSpec = 10; 328 | files = ( 329 | D446A0AD204D6C670016D9C6 /* SharedData.framework in Embed Frameworks */, 330 | ); 331 | name = "Embed Frameworks"; 332 | runOnlyForDeploymentPostprocessing = 0; 333 | }; 334 | /* End PBXCopyFilesBuildPhase section */ 335 | 336 | /* Begin PBXFileReference section */ 337 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 338 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 339 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 340 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 341 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 342 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 343 | 00E356EE1AD99517003FC87E /* kotlinchatTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = kotlinchatTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 344 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 345 | 00E356F21AD99517003FC87E /* kotlinchatTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = kotlinchatTests.m; sourceTree = ""; }; 346 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 347 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 348 | 13B07F961A680F5B00A75B9A /* kotlinchat.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = kotlinchat.app; sourceTree = BUILT_PRODUCTS_DIR; }; 349 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = kotlinchat/AppDelegate.h; sourceTree = ""; }; 350 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = kotlinchat/AppDelegate.m; sourceTree = ""; }; 351 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 352 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = kotlinchat/Images.xcassets; sourceTree = ""; }; 353 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = kotlinchat/Info.plist; sourceTree = ""; }; 354 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = kotlinchat/main.m; sourceTree = ""; }; 355 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 356 | 2D02E47B1E0B4A5D006451C7 /* kotlinchat-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "kotlinchat-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 357 | 2D02E4901E0B4A5D006451C7 /* kotlinchat-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "kotlinchat-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 358 | 2D16E6891FA4F8E400B85C8A /* libReact.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libReact.a; sourceTree = BUILT_PRODUCTS_DIR; }; 359 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; 360 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 361 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 362 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTBlob.xcodeproj; path = "../node_modules/react-native/Libraries/Blob/RCTBlob.xcodeproj"; sourceTree = ""; }; 363 | D446A09C204D64A80016D9C6 /* SharedDataModule.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SharedDataModule.m; path = kotlinchat/SharedDataModule.m; sourceTree = ""; }; 364 | D446A09D204D64A80016D9C6 /* SharedDataModule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SharedDataModule.h; path = kotlinchat/SharedDataModule.h; sourceTree = ""; }; 365 | D446A0AB204D6C600016D9C6 /* SharedData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SharedData.framework; path = ../build/konan/bin/iphone_sim/SharedData.framework; sourceTree = ""; }; 366 | /* End PBXFileReference section */ 367 | 368 | /* Begin PBXFrameworksBuildPhase section */ 369 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 370 | isa = PBXFrameworksBuildPhase; 371 | buildActionMask = 2147483647; 372 | files = ( 373 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, 374 | ); 375 | runOnlyForDeploymentPostprocessing = 0; 376 | }; 377 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 378 | isa = PBXFrameworksBuildPhase; 379 | buildActionMask = 2147483647; 380 | files = ( 381 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */, 382 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 383 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 384 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 385 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 386 | D446A0AC204D6C600016D9C6 /* SharedData.framework in Frameworks */, 387 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 388 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 389 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 390 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 391 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 392 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 393 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 394 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 395 | ); 396 | runOnlyForDeploymentPostprocessing = 0; 397 | }; 398 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 399 | isa = PBXFrameworksBuildPhase; 400 | buildActionMask = 2147483647; 401 | files = ( 402 | 2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */, 403 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */, 404 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */, 405 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */, 406 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */, 407 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */, 408 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */, 409 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */, 410 | ); 411 | runOnlyForDeploymentPostprocessing = 0; 412 | }; 413 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 414 | isa = PBXFrameworksBuildPhase; 415 | buildActionMask = 2147483647; 416 | files = ( 417 | ); 418 | runOnlyForDeploymentPostprocessing = 0; 419 | }; 420 | /* End PBXFrameworksBuildPhase section */ 421 | 422 | /* Begin PBXGroup section */ 423 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 424 | isa = PBXGroup; 425 | children = ( 426 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 427 | ); 428 | name = Products; 429 | sourceTree = ""; 430 | }; 431 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 432 | isa = PBXGroup; 433 | children = ( 434 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 435 | ); 436 | name = Products; 437 | sourceTree = ""; 438 | }; 439 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 440 | isa = PBXGroup; 441 | children = ( 442 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 443 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */, 444 | ); 445 | name = Products; 446 | sourceTree = ""; 447 | }; 448 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 449 | isa = PBXGroup; 450 | children = ( 451 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 452 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */, 453 | ); 454 | name = Products; 455 | sourceTree = ""; 456 | }; 457 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 458 | isa = PBXGroup; 459 | children = ( 460 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 461 | ); 462 | name = Products; 463 | sourceTree = ""; 464 | }; 465 | 00E356EF1AD99517003FC87E /* kotlinchatTests */ = { 466 | isa = PBXGroup; 467 | children = ( 468 | 00E356F21AD99517003FC87E /* kotlinchatTests.m */, 469 | 00E356F01AD99517003FC87E /* Supporting Files */, 470 | ); 471 | path = kotlinchatTests; 472 | sourceTree = ""; 473 | }; 474 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 475 | isa = PBXGroup; 476 | children = ( 477 | 00E356F11AD99517003FC87E /* Info.plist */, 478 | ); 479 | name = "Supporting Files"; 480 | sourceTree = ""; 481 | }; 482 | 139105B71AF99BAD00B5F7CC /* Products */ = { 483 | isa = PBXGroup; 484 | children = ( 485 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 486 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */, 487 | ); 488 | name = Products; 489 | sourceTree = ""; 490 | }; 491 | 139FDEE71B06529A00C62182 /* Products */ = { 492 | isa = PBXGroup; 493 | children = ( 494 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 495 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */, 496 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */, 497 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */, 498 | ); 499 | name = Products; 500 | sourceTree = ""; 501 | }; 502 | 13B07FAE1A68108700A75B9A /* kotlinchat */ = { 503 | isa = PBXGroup; 504 | children = ( 505 | D446A09D204D64A80016D9C6 /* SharedDataModule.h */, 506 | D446A09C204D64A80016D9C6 /* SharedDataModule.m */, 507 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 508 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 509 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 510 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 511 | 13B07FB61A68108700A75B9A /* Info.plist */, 512 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 513 | 13B07FB71A68108700A75B9A /* main.m */, 514 | ); 515 | name = kotlinchat; 516 | sourceTree = ""; 517 | }; 518 | 146834001AC3E56700842450 /* Products */ = { 519 | isa = PBXGroup; 520 | children = ( 521 | 146834041AC3E56700842450 /* libReact.a */, 522 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */, 523 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */, 524 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */, 525 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */, 526 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */, 527 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */, 528 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */, 529 | D446A05C204D2AD30016D9C6 /* libjsinspector.a */, 530 | D446A05E204D2AD30016D9C6 /* libjsinspector-tvOS.a */, 531 | D446A060204D2AD30016D9C6 /* libthird-party.a */, 532 | D446A062204D2AD30016D9C6 /* libthird-party.a */, 533 | D446A064204D2AD30016D9C6 /* libdouble-conversion.a */, 534 | D446A066204D2AD30016D9C6 /* libdouble-conversion.a */, 535 | D446A068204D2AD30016D9C6 /* libprivatedata.a */, 536 | D446A06A204D2AD30016D9C6 /* libprivatedata-tvOS.a */, 537 | ); 538 | name = Products; 539 | sourceTree = ""; 540 | }; 541 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 542 | isa = PBXGroup; 543 | children = ( 544 | D446A0AB204D6C600016D9C6 /* SharedData.framework */, 545 | 2D16E6891FA4F8E400B85C8A /* libReact.a */, 546 | ); 547 | name = Frameworks; 548 | sourceTree = ""; 549 | }; 550 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = { 551 | isa = PBXGroup; 552 | children = ( 553 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */, 554 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */, 555 | ); 556 | name = Products; 557 | sourceTree = ""; 558 | }; 559 | 78C398B11ACF4ADC00677621 /* Products */ = { 560 | isa = PBXGroup; 561 | children = ( 562 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 563 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */, 564 | ); 565 | name = Products; 566 | sourceTree = ""; 567 | }; 568 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 569 | isa = PBXGroup; 570 | children = ( 571 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */, 572 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 573 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 574 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */, 575 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 576 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 577 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 578 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 579 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 580 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 581 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 582 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 583 | ); 584 | name = Libraries; 585 | sourceTree = ""; 586 | }; 587 | 832341B11AAA6A8300B99B32 /* Products */ = { 588 | isa = PBXGroup; 589 | children = ( 590 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 591 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */, 592 | ); 593 | name = Products; 594 | sourceTree = ""; 595 | }; 596 | 83CBB9F61A601CBA00E9B192 = { 597 | isa = PBXGroup; 598 | children = ( 599 | 13B07FAE1A68108700A75B9A /* kotlinchat */, 600 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 601 | 00E356EF1AD99517003FC87E /* kotlinchatTests */, 602 | 83CBBA001A601CBA00E9B192 /* Products */, 603 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 604 | ); 605 | indentWidth = 2; 606 | sourceTree = ""; 607 | tabWidth = 2; 608 | usesTabs = 0; 609 | }; 610 | 83CBBA001A601CBA00E9B192 /* Products */ = { 611 | isa = PBXGroup; 612 | children = ( 613 | 13B07F961A680F5B00A75B9A /* kotlinchat.app */, 614 | 00E356EE1AD99517003FC87E /* kotlinchatTests.xctest */, 615 | 2D02E47B1E0B4A5D006451C7 /* kotlinchat-tvOS.app */, 616 | 2D02E4901E0B4A5D006451C7 /* kotlinchat-tvOSTests.xctest */, 617 | ); 618 | name = Products; 619 | sourceTree = ""; 620 | }; 621 | ADBDB9201DFEBF0600ED6528 /* Products */ = { 622 | isa = PBXGroup; 623 | children = ( 624 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */, 625 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */, 626 | ); 627 | name = Products; 628 | sourceTree = ""; 629 | }; 630 | /* End PBXGroup section */ 631 | 632 | /* Begin PBXNativeTarget section */ 633 | 00E356ED1AD99517003FC87E /* kotlinchatTests */ = { 634 | isa = PBXNativeTarget; 635 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "kotlinchatTests" */; 636 | buildPhases = ( 637 | 00E356EA1AD99517003FC87E /* Sources */, 638 | 00E356EB1AD99517003FC87E /* Frameworks */, 639 | 00E356EC1AD99517003FC87E /* Resources */, 640 | ); 641 | buildRules = ( 642 | ); 643 | dependencies = ( 644 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 645 | ); 646 | name = kotlinchatTests; 647 | productName = kotlinchatTests; 648 | productReference = 00E356EE1AD99517003FC87E /* kotlinchatTests.xctest */; 649 | productType = "com.apple.product-type.bundle.unit-test"; 650 | }; 651 | 13B07F861A680F5B00A75B9A /* kotlinchat */ = { 652 | isa = PBXNativeTarget; 653 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "kotlinchat" */; 654 | buildPhases = ( 655 | AD0CE2C91E925489006FC317 /* Integrate Haul with React Native */, 656 | D446A035204D2AD30016D9C6 /* ShellScript */, 657 | 13B07F871A680F5B00A75B9A /* Sources */, 658 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 659 | 13B07F8E1A680F5B00A75B9A /* Resources */, 660 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 661 | D446A0A4204D69980016D9C6 /* Embed Frameworks */, 662 | ); 663 | buildRules = ( 664 | ); 665 | dependencies = ( 666 | ); 667 | name = kotlinchat; 668 | productName = "Hello World"; 669 | productReference = 13B07F961A680F5B00A75B9A /* kotlinchat.app */; 670 | productType = "com.apple.product-type.application"; 671 | }; 672 | 2D02E47A1E0B4A5D006451C7 /* kotlinchat-tvOS */ = { 673 | isa = PBXNativeTarget; 674 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "kotlinchat-tvOS" */; 675 | buildPhases = ( 676 | AD0CE2C91E925489006FC317 /* Integrate Haul with React Native */, 677 | 2D02E4771E0B4A5D006451C7 /* Sources */, 678 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 679 | 2D02E4791E0B4A5D006451C7 /* Resources */, 680 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 681 | ); 682 | buildRules = ( 683 | ); 684 | dependencies = ( 685 | ); 686 | name = "kotlinchat-tvOS"; 687 | productName = "kotlinchat-tvOS"; 688 | productReference = 2D02E47B1E0B4A5D006451C7 /* kotlinchat-tvOS.app */; 689 | productType = "com.apple.product-type.application"; 690 | }; 691 | 2D02E48F1E0B4A5D006451C7 /* kotlinchat-tvOSTests */ = { 692 | isa = PBXNativeTarget; 693 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "kotlinchat-tvOSTests" */; 694 | buildPhases = ( 695 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 696 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 697 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 698 | ); 699 | buildRules = ( 700 | ); 701 | dependencies = ( 702 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 703 | ); 704 | name = "kotlinchat-tvOSTests"; 705 | productName = "kotlinchat-tvOSTests"; 706 | productReference = 2D02E4901E0B4A5D006451C7 /* kotlinchat-tvOSTests.xctest */; 707 | productType = "com.apple.product-type.bundle.unit-test"; 708 | }; 709 | /* End PBXNativeTarget section */ 710 | 711 | /* Begin PBXProject section */ 712 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 713 | isa = PBXProject; 714 | attributes = { 715 | LastUpgradeCheck = 0610; 716 | ORGANIZATIONNAME = Facebook; 717 | TargetAttributes = { 718 | 00E356ED1AD99517003FC87E = { 719 | CreatedOnToolsVersion = 6.2; 720 | TestTargetID = 13B07F861A680F5B00A75B9A; 721 | }; 722 | 2D02E47A1E0B4A5D006451C7 = { 723 | CreatedOnToolsVersion = 8.2.1; 724 | ProvisioningStyle = Automatic; 725 | }; 726 | 2D02E48F1E0B4A5D006451C7 = { 727 | CreatedOnToolsVersion = 8.2.1; 728 | ProvisioningStyle = Automatic; 729 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 730 | }; 731 | }; 732 | }; 733 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "kotlinchat" */; 734 | compatibilityVersion = "Xcode 3.2"; 735 | developmentRegion = English; 736 | hasScannedForEncodings = 0; 737 | knownRegions = ( 738 | en, 739 | Base, 740 | ); 741 | mainGroup = 83CBB9F61A601CBA00E9B192; 742 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 743 | projectDirPath = ""; 744 | projectReferences = ( 745 | { 746 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 747 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 748 | }, 749 | { 750 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */; 751 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 752 | }, 753 | { 754 | ProductGroup = ADBDB9201DFEBF0600ED6528 /* Products */; 755 | ProjectRef = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 756 | }, 757 | { 758 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 759 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 760 | }, 761 | { 762 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 763 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 764 | }, 765 | { 766 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 767 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 768 | }, 769 | { 770 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 771 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 772 | }, 773 | { 774 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 775 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 776 | }, 777 | { 778 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 779 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 780 | }, 781 | { 782 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 783 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 784 | }, 785 | { 786 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 787 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 788 | }, 789 | { 790 | ProductGroup = 146834001AC3E56700842450 /* Products */; 791 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 792 | }, 793 | ); 794 | projectRoot = ""; 795 | targets = ( 796 | 13B07F861A680F5B00A75B9A /* kotlinchat */, 797 | 00E356ED1AD99517003FC87E /* kotlinchatTests */, 798 | 2D02E47A1E0B4A5D006451C7 /* kotlinchat-tvOS */, 799 | 2D02E48F1E0B4A5D006451C7 /* kotlinchat-tvOSTests */, 800 | ); 801 | }; 802 | /* End PBXProject section */ 803 | 804 | /* Begin PBXReferenceProxy section */ 805 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 806 | isa = PBXReferenceProxy; 807 | fileType = archive.ar; 808 | path = libRCTActionSheet.a; 809 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 810 | sourceTree = BUILT_PRODUCTS_DIR; 811 | }; 812 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 813 | isa = PBXReferenceProxy; 814 | fileType = archive.ar; 815 | path = libRCTGeolocation.a; 816 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 817 | sourceTree = BUILT_PRODUCTS_DIR; 818 | }; 819 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 820 | isa = PBXReferenceProxy; 821 | fileType = archive.ar; 822 | path = libRCTImage.a; 823 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 824 | sourceTree = BUILT_PRODUCTS_DIR; 825 | }; 826 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 827 | isa = PBXReferenceProxy; 828 | fileType = archive.ar; 829 | path = libRCTNetwork.a; 830 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 831 | sourceTree = BUILT_PRODUCTS_DIR; 832 | }; 833 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 834 | isa = PBXReferenceProxy; 835 | fileType = archive.ar; 836 | path = libRCTVibration.a; 837 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 838 | sourceTree = BUILT_PRODUCTS_DIR; 839 | }; 840 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 841 | isa = PBXReferenceProxy; 842 | fileType = archive.ar; 843 | path = libRCTSettings.a; 844 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 845 | sourceTree = BUILT_PRODUCTS_DIR; 846 | }; 847 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 848 | isa = PBXReferenceProxy; 849 | fileType = archive.ar; 850 | path = libRCTWebSocket.a; 851 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 852 | sourceTree = BUILT_PRODUCTS_DIR; 853 | }; 854 | 146834041AC3E56700842450 /* libReact.a */ = { 855 | isa = PBXReferenceProxy; 856 | fileType = archive.ar; 857 | path = libReact.a; 858 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 859 | sourceTree = BUILT_PRODUCTS_DIR; 860 | }; 861 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */ = { 862 | isa = PBXReferenceProxy; 863 | fileType = archive.ar; 864 | path = "libRCTBlob-tvOS.a"; 865 | remoteRef = 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */; 866 | sourceTree = BUILT_PRODUCTS_DIR; 867 | }; 868 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */ = { 869 | isa = PBXReferenceProxy; 870 | fileType = archive.ar; 871 | path = libfishhook.a; 872 | remoteRef = 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */; 873 | sourceTree = BUILT_PRODUCTS_DIR; 874 | }; 875 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */ = { 876 | isa = PBXReferenceProxy; 877 | fileType = archive.ar; 878 | path = "libfishhook-tvOS.a"; 879 | remoteRef = 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */; 880 | sourceTree = BUILT_PRODUCTS_DIR; 881 | }; 882 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = { 883 | isa = PBXReferenceProxy; 884 | fileType = archive.ar; 885 | path = "libRCTImage-tvOS.a"; 886 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */; 887 | sourceTree = BUILT_PRODUCTS_DIR; 888 | }; 889 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = { 890 | isa = PBXReferenceProxy; 891 | fileType = archive.ar; 892 | path = "libRCTLinking-tvOS.a"; 893 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */; 894 | sourceTree = BUILT_PRODUCTS_DIR; 895 | }; 896 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = { 897 | isa = PBXReferenceProxy; 898 | fileType = archive.ar; 899 | path = "libRCTNetwork-tvOS.a"; 900 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */; 901 | sourceTree = BUILT_PRODUCTS_DIR; 902 | }; 903 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = { 904 | isa = PBXReferenceProxy; 905 | fileType = archive.ar; 906 | path = "libRCTSettings-tvOS.a"; 907 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */; 908 | sourceTree = BUILT_PRODUCTS_DIR; 909 | }; 910 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = { 911 | isa = PBXReferenceProxy; 912 | fileType = archive.ar; 913 | path = "libRCTText-tvOS.a"; 914 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */; 915 | sourceTree = BUILT_PRODUCTS_DIR; 916 | }; 917 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = { 918 | isa = PBXReferenceProxy; 919 | fileType = archive.ar; 920 | path = "libRCTWebSocket-tvOS.a"; 921 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */; 922 | sourceTree = BUILT_PRODUCTS_DIR; 923 | }; 924 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = { 925 | isa = PBXReferenceProxy; 926 | fileType = archive.ar; 927 | path = libReact.a; 928 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */; 929 | sourceTree = BUILT_PRODUCTS_DIR; 930 | }; 931 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = { 932 | isa = PBXReferenceProxy; 933 | fileType = archive.ar; 934 | path = libyoga.a; 935 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */; 936 | sourceTree = BUILT_PRODUCTS_DIR; 937 | }; 938 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = { 939 | isa = PBXReferenceProxy; 940 | fileType = archive.ar; 941 | path = libyoga.a; 942 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */; 943 | sourceTree = BUILT_PRODUCTS_DIR; 944 | }; 945 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = { 946 | isa = PBXReferenceProxy; 947 | fileType = archive.ar; 948 | path = libcxxreact.a; 949 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */; 950 | sourceTree = BUILT_PRODUCTS_DIR; 951 | }; 952 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = { 953 | isa = PBXReferenceProxy; 954 | fileType = archive.ar; 955 | path = libcxxreact.a; 956 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */; 957 | sourceTree = BUILT_PRODUCTS_DIR; 958 | }; 959 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = { 960 | isa = PBXReferenceProxy; 961 | fileType = archive.ar; 962 | path = libjschelpers.a; 963 | remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */; 964 | sourceTree = BUILT_PRODUCTS_DIR; 965 | }; 966 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = { 967 | isa = PBXReferenceProxy; 968 | fileType = archive.ar; 969 | path = libjschelpers.a; 970 | remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */; 971 | sourceTree = BUILT_PRODUCTS_DIR; 972 | }; 973 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 974 | isa = PBXReferenceProxy; 975 | fileType = archive.ar; 976 | path = libRCTAnimation.a; 977 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 978 | sourceTree = BUILT_PRODUCTS_DIR; 979 | }; 980 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 981 | isa = PBXReferenceProxy; 982 | fileType = archive.ar; 983 | path = libRCTAnimation.a; 984 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 985 | sourceTree = BUILT_PRODUCTS_DIR; 986 | }; 987 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 988 | isa = PBXReferenceProxy; 989 | fileType = archive.ar; 990 | path = libRCTLinking.a; 991 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 992 | sourceTree = BUILT_PRODUCTS_DIR; 993 | }; 994 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 995 | isa = PBXReferenceProxy; 996 | fileType = archive.ar; 997 | path = libRCTText.a; 998 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 999 | sourceTree = BUILT_PRODUCTS_DIR; 1000 | }; 1001 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */ = { 1002 | isa = PBXReferenceProxy; 1003 | fileType = archive.ar; 1004 | path = libRCTBlob.a; 1005 | remoteRef = ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */; 1006 | sourceTree = BUILT_PRODUCTS_DIR; 1007 | }; 1008 | D446A05C204D2AD30016D9C6 /* libjsinspector.a */ = { 1009 | isa = PBXReferenceProxy; 1010 | fileType = archive.ar; 1011 | path = libjsinspector.a; 1012 | remoteRef = D446A05B204D2AD30016D9C6 /* PBXContainerItemProxy */; 1013 | sourceTree = BUILT_PRODUCTS_DIR; 1014 | }; 1015 | D446A05E204D2AD30016D9C6 /* libjsinspector-tvOS.a */ = { 1016 | isa = PBXReferenceProxy; 1017 | fileType = archive.ar; 1018 | path = "libjsinspector-tvOS.a"; 1019 | remoteRef = D446A05D204D2AD30016D9C6 /* PBXContainerItemProxy */; 1020 | sourceTree = BUILT_PRODUCTS_DIR; 1021 | }; 1022 | D446A060204D2AD30016D9C6 /* libthird-party.a */ = { 1023 | isa = PBXReferenceProxy; 1024 | fileType = archive.ar; 1025 | path = "libthird-party.a"; 1026 | remoteRef = D446A05F204D2AD30016D9C6 /* PBXContainerItemProxy */; 1027 | sourceTree = BUILT_PRODUCTS_DIR; 1028 | }; 1029 | D446A062204D2AD30016D9C6 /* libthird-party.a */ = { 1030 | isa = PBXReferenceProxy; 1031 | fileType = archive.ar; 1032 | path = "libthird-party.a"; 1033 | remoteRef = D446A061204D2AD30016D9C6 /* PBXContainerItemProxy */; 1034 | sourceTree = BUILT_PRODUCTS_DIR; 1035 | }; 1036 | D446A064204D2AD30016D9C6 /* libdouble-conversion.a */ = { 1037 | isa = PBXReferenceProxy; 1038 | fileType = archive.ar; 1039 | path = "libdouble-conversion.a"; 1040 | remoteRef = D446A063204D2AD30016D9C6 /* PBXContainerItemProxy */; 1041 | sourceTree = BUILT_PRODUCTS_DIR; 1042 | }; 1043 | D446A066204D2AD30016D9C6 /* libdouble-conversion.a */ = { 1044 | isa = PBXReferenceProxy; 1045 | fileType = archive.ar; 1046 | path = "libdouble-conversion.a"; 1047 | remoteRef = D446A065204D2AD30016D9C6 /* PBXContainerItemProxy */; 1048 | sourceTree = BUILT_PRODUCTS_DIR; 1049 | }; 1050 | D446A068204D2AD30016D9C6 /* libprivatedata.a */ = { 1051 | isa = PBXReferenceProxy; 1052 | fileType = archive.ar; 1053 | path = libprivatedata.a; 1054 | remoteRef = D446A067204D2AD30016D9C6 /* PBXContainerItemProxy */; 1055 | sourceTree = BUILT_PRODUCTS_DIR; 1056 | }; 1057 | D446A06A204D2AD30016D9C6 /* libprivatedata-tvOS.a */ = { 1058 | isa = PBXReferenceProxy; 1059 | fileType = archive.ar; 1060 | path = "libprivatedata-tvOS.a"; 1061 | remoteRef = D446A069204D2AD30016D9C6 /* PBXContainerItemProxy */; 1062 | sourceTree = BUILT_PRODUCTS_DIR; 1063 | }; 1064 | /* End PBXReferenceProxy section */ 1065 | 1066 | /* Begin PBXResourcesBuildPhase section */ 1067 | 00E356EC1AD99517003FC87E /* Resources */ = { 1068 | isa = PBXResourcesBuildPhase; 1069 | buildActionMask = 2147483647; 1070 | files = ( 1071 | ); 1072 | runOnlyForDeploymentPostprocessing = 0; 1073 | }; 1074 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 1075 | isa = PBXResourcesBuildPhase; 1076 | buildActionMask = 2147483647; 1077 | files = ( 1078 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 1079 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 1080 | ); 1081 | runOnlyForDeploymentPostprocessing = 0; 1082 | }; 1083 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 1084 | isa = PBXResourcesBuildPhase; 1085 | buildActionMask = 2147483647; 1086 | files = ( 1087 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 1088 | ); 1089 | runOnlyForDeploymentPostprocessing = 0; 1090 | }; 1091 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 1092 | isa = PBXResourcesBuildPhase; 1093 | buildActionMask = 2147483647; 1094 | files = ( 1095 | ); 1096 | runOnlyForDeploymentPostprocessing = 0; 1097 | }; 1098 | /* End PBXResourcesBuildPhase section */ 1099 | 1100 | /* Begin PBXShellScriptBuildPhase section */ 1101 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 1102 | isa = PBXShellScriptBuildPhase; 1103 | buildActionMask = 2147483647; 1104 | files = ( 1105 | ); 1106 | inputPaths = ( 1107 | ); 1108 | name = "Bundle React Native code and images"; 1109 | outputPaths = ( 1110 | ); 1111 | runOnlyForDeploymentPostprocessing = 0; 1112 | shellPath = /bin/sh; 1113 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 1114 | }; 1115 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 1116 | isa = PBXShellScriptBuildPhase; 1117 | buildActionMask = 2147483647; 1118 | files = ( 1119 | ); 1120 | inputPaths = ( 1121 | ); 1122 | name = "Bundle React Native Code And Images"; 1123 | outputPaths = ( 1124 | ); 1125 | runOnlyForDeploymentPostprocessing = 0; 1126 | shellPath = /bin/sh; 1127 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 1128 | }; 1129 | AD0CE2C91E925489006FC317 /* Integrate Haul with React Native */ = { 1130 | isa = PBXShellScriptBuildPhase; 1131 | buildActionMask = 2147483647; 1132 | files = ( 1133 | ); 1134 | inputPaths = ( 1135 | ); 1136 | name = "Integrate Haul with React Native"; 1137 | outputPaths = ( 1138 | ); 1139 | runOnlyForDeploymentPostprocessing = 0; 1140 | shellPath = /bin/sh; 1141 | shellScript = "bash ../node_modules/haul/src/utils/haul-integrate.sh"; 1142 | }; 1143 | D446A035204D2AD30016D9C6 /* ShellScript */ = { 1144 | isa = PBXShellScriptBuildPhase; 1145 | buildActionMask = 2147483647; 1146 | files = ( 1147 | ); 1148 | inputPaths = ( 1149 | ); 1150 | outputPaths = ( 1151 | ); 1152 | runOnlyForDeploymentPostprocessing = 0; 1153 | shellPath = /bin/sh; 1154 | shellScript = "case \"$PLATFORM_NAME\" in\niphoneos)\nTARGET=iphone\nTASK=complieKonanSharedDataIphone\n;;\niphonesimulator)\nTARGET=iphone_sim\nTASK=compileKonanSharedDataIphone_sim\n;;\n*)\necho \"Unknown platform: $PLATFORM_NAME\"\nexit 1\n;;\nesac\n\nmkdir -p \"$SRCROOT/../build/konan/bin/\"\nrm -f \"$SRCROOT/../build/konan/bin/xcode\"\nln -s \"$TARGET\" \"$SRCROOT/../build/konan/bin/xcode\"\n\nif [ \"$CONFIGURATION\" == \"Debug\" ]; then\nENABLE_DEBUG=true\nelse\nENABLE_DEBUG=false\nfi\n\n\"$SRCROOT/../gradlew\" -p \"$SRCROOT/..\" \"$TASK\" -PenableDebug=$ENABLE_DEBUG"; 1155 | }; 1156 | /* End PBXShellScriptBuildPhase section */ 1157 | 1158 | /* Begin PBXSourcesBuildPhase section */ 1159 | 00E356EA1AD99517003FC87E /* Sources */ = { 1160 | isa = PBXSourcesBuildPhase; 1161 | buildActionMask = 2147483647; 1162 | files = ( 1163 | 00E356F31AD99517003FC87E /* kotlinchatTests.m in Sources */, 1164 | ); 1165 | runOnlyForDeploymentPostprocessing = 0; 1166 | }; 1167 | 13B07F871A680F5B00A75B9A /* Sources */ = { 1168 | isa = PBXSourcesBuildPhase; 1169 | buildActionMask = 2147483647; 1170 | files = ( 1171 | D446A09E204D64A80016D9C6 /* SharedDataModule.m in Sources */, 1172 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 1173 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 1174 | ); 1175 | runOnlyForDeploymentPostprocessing = 0; 1176 | }; 1177 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 1178 | isa = PBXSourcesBuildPhase; 1179 | buildActionMask = 2147483647; 1180 | files = ( 1181 | D446A09F204D64AA0016D9C6 /* SharedDataModule.m in Sources */, 1182 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 1183 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 1184 | ); 1185 | runOnlyForDeploymentPostprocessing = 0; 1186 | }; 1187 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 1188 | isa = PBXSourcesBuildPhase; 1189 | buildActionMask = 2147483647; 1190 | files = ( 1191 | 2DCD954D1E0B4F2C00145EB5 /* kotlinchatTests.m in Sources */, 1192 | ); 1193 | runOnlyForDeploymentPostprocessing = 0; 1194 | }; 1195 | /* End PBXSourcesBuildPhase section */ 1196 | 1197 | /* Begin PBXTargetDependency section */ 1198 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 1199 | isa = PBXTargetDependency; 1200 | target = 13B07F861A680F5B00A75B9A /* kotlinchat */; 1201 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 1202 | }; 1203 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 1204 | isa = PBXTargetDependency; 1205 | target = 2D02E47A1E0B4A5D006451C7 /* kotlinchat-tvOS */; 1206 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 1207 | }; 1208 | /* End PBXTargetDependency section */ 1209 | 1210 | /* Begin PBXVariantGroup section */ 1211 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 1212 | isa = PBXVariantGroup; 1213 | children = ( 1214 | 13B07FB21A68108700A75B9A /* Base */, 1215 | ); 1216 | name = LaunchScreen.xib; 1217 | path = kotlinchat; 1218 | sourceTree = ""; 1219 | }; 1220 | /* End PBXVariantGroup section */ 1221 | 1222 | /* Begin XCBuildConfiguration section */ 1223 | 00E356F61AD99517003FC87E /* Debug */ = { 1224 | isa = XCBuildConfiguration; 1225 | buildSettings = { 1226 | BUNDLE_LOADER = "$(TEST_HOST)"; 1227 | GCC_PREPROCESSOR_DEFINITIONS = ( 1228 | "DEBUG=1", 1229 | "$(inherited)", 1230 | ); 1231 | INFOPLIST_FILE = kotlinchatTests/Info.plist; 1232 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1233 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1234 | OTHER_LDFLAGS = ( 1235 | "-ObjC", 1236 | "-lc++", 1237 | ); 1238 | PRODUCT_NAME = "$(TARGET_NAME)"; 1239 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/kotlinchat.app/kotlinchat"; 1240 | }; 1241 | name = Debug; 1242 | }; 1243 | 00E356F71AD99517003FC87E /* Release */ = { 1244 | isa = XCBuildConfiguration; 1245 | buildSettings = { 1246 | BUNDLE_LOADER = "$(TEST_HOST)"; 1247 | COPY_PHASE_STRIP = NO; 1248 | INFOPLIST_FILE = kotlinchatTests/Info.plist; 1249 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1250 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1251 | OTHER_LDFLAGS = ( 1252 | "-ObjC", 1253 | "-lc++", 1254 | ); 1255 | PRODUCT_NAME = "$(TARGET_NAME)"; 1256 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/kotlinchat.app/kotlinchat"; 1257 | }; 1258 | name = Release; 1259 | }; 1260 | 13B07F941A680F5B00A75B9A /* Debug */ = { 1261 | isa = XCBuildConfiguration; 1262 | buildSettings = { 1263 | ALWAYS_SEARCH_USER_PATHS = YES; 1264 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1265 | CURRENT_PROJECT_VERSION = 1; 1266 | DEAD_CODE_STRIPPING = NO; 1267 | FRAMEWORK_SEARCH_PATHS = ( 1268 | "$(inherited)", 1269 | "$(PROJECT_DIR)/../build/konan/bin/iphone_sim/**", 1270 | ); 1271 | INFOPLIST_FILE = kotlinchat/Info.plist; 1272 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1273 | OTHER_LDFLAGS = ( 1274 | "$(inherited)", 1275 | "-ObjC", 1276 | "-lc++", 1277 | ); 1278 | PRODUCT_NAME = kotlinchat; 1279 | VERSIONING_SYSTEM = "apple-generic"; 1280 | }; 1281 | name = Debug; 1282 | }; 1283 | 13B07F951A680F5B00A75B9A /* Release */ = { 1284 | isa = XCBuildConfiguration; 1285 | buildSettings = { 1286 | ALWAYS_SEARCH_USER_PATHS = YES; 1287 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1288 | CURRENT_PROJECT_VERSION = 1; 1289 | FRAMEWORK_SEARCH_PATHS = ( 1290 | "$(inherited)", 1291 | "$(PROJECT_DIR)/../build/konan/bin/iphone_sim/**", 1292 | ); 1293 | INFOPLIST_FILE = kotlinchat/Info.plist; 1294 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1295 | OTHER_LDFLAGS = ( 1296 | "$(inherited)", 1297 | "-ObjC", 1298 | "-lc++", 1299 | ); 1300 | PRODUCT_NAME = kotlinchat; 1301 | VERSIONING_SYSTEM = "apple-generic"; 1302 | }; 1303 | name = Release; 1304 | }; 1305 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 1306 | isa = XCBuildConfiguration; 1307 | buildSettings = { 1308 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1309 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1310 | CLANG_ANALYZER_NONNULL = YES; 1311 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1312 | CLANG_WARN_INFINITE_RECURSION = YES; 1313 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1314 | DEBUG_INFORMATION_FORMAT = dwarf; 1315 | ENABLE_TESTABILITY = YES; 1316 | GCC_NO_COMMON_BLOCKS = YES; 1317 | INFOPLIST_FILE = "kotlinchat-tvOS/Info.plist"; 1318 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1319 | OTHER_LDFLAGS = ( 1320 | "-ObjC", 1321 | "-lc++", 1322 | ); 1323 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.kotlinchat-tvOS"; 1324 | PRODUCT_NAME = "$(TARGET_NAME)"; 1325 | SDKROOT = appletvos; 1326 | TARGETED_DEVICE_FAMILY = 3; 1327 | TVOS_DEPLOYMENT_TARGET = 9.2; 1328 | }; 1329 | name = Debug; 1330 | }; 1331 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 1332 | isa = XCBuildConfiguration; 1333 | buildSettings = { 1334 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1335 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1336 | CLANG_ANALYZER_NONNULL = YES; 1337 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1338 | CLANG_WARN_INFINITE_RECURSION = YES; 1339 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1340 | COPY_PHASE_STRIP = NO; 1341 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1342 | GCC_NO_COMMON_BLOCKS = YES; 1343 | INFOPLIST_FILE = "kotlinchat-tvOS/Info.plist"; 1344 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1345 | OTHER_LDFLAGS = ( 1346 | "-ObjC", 1347 | "-lc++", 1348 | ); 1349 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.kotlinchat-tvOS"; 1350 | PRODUCT_NAME = "$(TARGET_NAME)"; 1351 | SDKROOT = appletvos; 1352 | TARGETED_DEVICE_FAMILY = 3; 1353 | TVOS_DEPLOYMENT_TARGET = 9.2; 1354 | }; 1355 | name = Release; 1356 | }; 1357 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 1358 | isa = XCBuildConfiguration; 1359 | buildSettings = { 1360 | BUNDLE_LOADER = "$(TEST_HOST)"; 1361 | CLANG_ANALYZER_NONNULL = YES; 1362 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1363 | CLANG_WARN_INFINITE_RECURSION = YES; 1364 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1365 | DEBUG_INFORMATION_FORMAT = dwarf; 1366 | ENABLE_TESTABILITY = YES; 1367 | GCC_NO_COMMON_BLOCKS = YES; 1368 | INFOPLIST_FILE = "kotlinchat-tvOSTests/Info.plist"; 1369 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1370 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.kotlinchat-tvOSTests"; 1371 | PRODUCT_NAME = "$(TARGET_NAME)"; 1372 | SDKROOT = appletvos; 1373 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/kotlinchat-tvOS.app/kotlinchat-tvOS"; 1374 | TVOS_DEPLOYMENT_TARGET = 10.1; 1375 | }; 1376 | name = Debug; 1377 | }; 1378 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 1379 | isa = XCBuildConfiguration; 1380 | buildSettings = { 1381 | BUNDLE_LOADER = "$(TEST_HOST)"; 1382 | CLANG_ANALYZER_NONNULL = YES; 1383 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1384 | CLANG_WARN_INFINITE_RECURSION = YES; 1385 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1386 | COPY_PHASE_STRIP = NO; 1387 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1388 | GCC_NO_COMMON_BLOCKS = YES; 1389 | INFOPLIST_FILE = "kotlinchat-tvOSTests/Info.plist"; 1390 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1391 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.kotlinchat-tvOSTests"; 1392 | PRODUCT_NAME = "$(TARGET_NAME)"; 1393 | SDKROOT = appletvos; 1394 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/kotlinchat-tvOS.app/kotlinchat-tvOS"; 1395 | TVOS_DEPLOYMENT_TARGET = 10.1; 1396 | }; 1397 | name = Release; 1398 | }; 1399 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 1400 | isa = XCBuildConfiguration; 1401 | buildSettings = { 1402 | ALWAYS_SEARCH_USER_PATHS = NO; 1403 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1404 | CLANG_CXX_LIBRARY = "libc++"; 1405 | CLANG_ENABLE_MODULES = YES; 1406 | CLANG_ENABLE_OBJC_ARC = YES; 1407 | CLANG_WARN_BOOL_CONVERSION = YES; 1408 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1409 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1410 | CLANG_WARN_EMPTY_BODY = YES; 1411 | CLANG_WARN_ENUM_CONVERSION = YES; 1412 | CLANG_WARN_INT_CONVERSION = YES; 1413 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1414 | CLANG_WARN_UNREACHABLE_CODE = YES; 1415 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1416 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1417 | COPY_PHASE_STRIP = NO; 1418 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1419 | GCC_C_LANGUAGE_STANDARD = gnu99; 1420 | GCC_DYNAMIC_NO_PIC = NO; 1421 | GCC_OPTIMIZATION_LEVEL = 0; 1422 | GCC_PREPROCESSOR_DEFINITIONS = ( 1423 | "DEBUG=1", 1424 | "$(inherited)", 1425 | ); 1426 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 1427 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1428 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1429 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1430 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1431 | GCC_WARN_UNUSED_FUNCTION = YES; 1432 | GCC_WARN_UNUSED_VARIABLE = YES; 1433 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1434 | MTL_ENABLE_DEBUG_INFO = YES; 1435 | ONLY_ACTIVE_ARCH = YES; 1436 | SDKROOT = iphoneos; 1437 | }; 1438 | name = Debug; 1439 | }; 1440 | 83CBBA211A601CBA00E9B192 /* Release */ = { 1441 | isa = XCBuildConfiguration; 1442 | buildSettings = { 1443 | ALWAYS_SEARCH_USER_PATHS = NO; 1444 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1445 | CLANG_CXX_LIBRARY = "libc++"; 1446 | CLANG_ENABLE_MODULES = YES; 1447 | CLANG_ENABLE_OBJC_ARC = YES; 1448 | CLANG_WARN_BOOL_CONVERSION = YES; 1449 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1450 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1451 | CLANG_WARN_EMPTY_BODY = YES; 1452 | CLANG_WARN_ENUM_CONVERSION = YES; 1453 | CLANG_WARN_INT_CONVERSION = YES; 1454 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1455 | CLANG_WARN_UNREACHABLE_CODE = YES; 1456 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1457 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1458 | COPY_PHASE_STRIP = YES; 1459 | ENABLE_NS_ASSERTIONS = NO; 1460 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1461 | GCC_C_LANGUAGE_STANDARD = gnu99; 1462 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1463 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1464 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1465 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1466 | GCC_WARN_UNUSED_FUNCTION = YES; 1467 | GCC_WARN_UNUSED_VARIABLE = YES; 1468 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1469 | MTL_ENABLE_DEBUG_INFO = NO; 1470 | SDKROOT = iphoneos; 1471 | VALIDATE_PRODUCT = YES; 1472 | }; 1473 | name = Release; 1474 | }; 1475 | /* End XCBuildConfiguration section */ 1476 | 1477 | /* Begin XCConfigurationList section */ 1478 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "kotlinchatTests" */ = { 1479 | isa = XCConfigurationList; 1480 | buildConfigurations = ( 1481 | 00E356F61AD99517003FC87E /* Debug */, 1482 | 00E356F71AD99517003FC87E /* Release */, 1483 | ); 1484 | defaultConfigurationIsVisible = 0; 1485 | defaultConfigurationName = Release; 1486 | }; 1487 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "kotlinchat" */ = { 1488 | isa = XCConfigurationList; 1489 | buildConfigurations = ( 1490 | 13B07F941A680F5B00A75B9A /* Debug */, 1491 | 13B07F951A680F5B00A75B9A /* Release */, 1492 | ); 1493 | defaultConfigurationIsVisible = 0; 1494 | defaultConfigurationName = Release; 1495 | }; 1496 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "kotlinchat-tvOS" */ = { 1497 | isa = XCConfigurationList; 1498 | buildConfigurations = ( 1499 | 2D02E4971E0B4A5E006451C7 /* Debug */, 1500 | 2D02E4981E0B4A5E006451C7 /* Release */, 1501 | ); 1502 | defaultConfigurationIsVisible = 0; 1503 | defaultConfigurationName = Release; 1504 | }; 1505 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "kotlinchat-tvOSTests" */ = { 1506 | isa = XCConfigurationList; 1507 | buildConfigurations = ( 1508 | 2D02E4991E0B4A5E006451C7 /* Debug */, 1509 | 2D02E49A1E0B4A5E006451C7 /* Release */, 1510 | ); 1511 | defaultConfigurationIsVisible = 0; 1512 | defaultConfigurationName = Release; 1513 | }; 1514 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "kotlinchat" */ = { 1515 | isa = XCConfigurationList; 1516 | buildConfigurations = ( 1517 | 83CBBA201A601CBA00E9B192 /* Debug */, 1518 | 83CBBA211A601CBA00E9B192 /* Release */, 1519 | ); 1520 | defaultConfigurationIsVisible = 0; 1521 | defaultConfigurationName = Release; 1522 | }; 1523 | /* End XCConfigurationList section */ 1524 | }; 1525 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1526 | } 1527 | -------------------------------------------------------------------------------- /ios/kotlinchat.xcodeproj/xcshareddata/xcschemes/kotlinchat-tvOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /ios/kotlinchat.xcodeproj/xcshareddata/xcschemes/kotlinchat.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /ios/kotlinchat/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | @interface AppDelegate : UIResponder 13 | 14 | @property (nonatomic, strong) UIWindow *window; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ios/kotlinchat/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import "AppDelegate.h" 11 | 12 | #import 13 | #import 14 | 15 | @implementation AppDelegate 16 | 17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 18 | { 19 | NSURL *jsCodeLocation; 20 | 21 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 22 | 23 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 24 | moduleName:@"kotlinchat" 25 | initialProperties:nil 26 | launchOptions:launchOptions]; 27 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 28 | 29 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 30 | UIViewController *rootViewController = [UIViewController new]; 31 | rootViewController.view = rootView; 32 | self.window.rootViewController = rootViewController; 33 | [self.window makeKeyAndVisible]; 34 | return YES; 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /ios/kotlinchat/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /ios/kotlinchat/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ios-marketing", 45 | "size" : "1024x1024", 46 | "scale" : "1x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } -------------------------------------------------------------------------------- /ios/kotlinchat/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /ios/kotlinchat/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | kotlinchat 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UIViewControllerBasedStatusBarAppearance 40 | 41 | NSLocationWhenInUseUsageDescription 42 | 43 | NSAppTransportSecurity 44 | 45 | 46 | NSExceptionDomains 47 | 48 | localhost 49 | 50 | NSExceptionAllowsInsecureHTTPLoads 51 | 52 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /ios/kotlinchat/SharedDataModule.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface RCTSharedDataModule : NSObject 4 | @end 5 | -------------------------------------------------------------------------------- /ios/kotlinchat/SharedDataModule.m: -------------------------------------------------------------------------------- 1 | #import "SharedDataModule.h" 2 | #import "SharedData/SharedData.h" 3 | 4 | @implementation RCTSharedDataModule 5 | 6 | RCT_EXPORT_MODULE(); 7 | 8 | RCT_EXPORT_METHOD(generateMessages:(NSNumber *__nonnull)length 9 | resolve:(RCTPromiseResolveBlock)resolve 10 | rejecter:(RCTPromiseRejectBlock)reject) 11 | { 12 | NSArray* messages = [SharedData generateMessagesNumber:length.intValue]; 13 | resolve(messages); 14 | } 15 | @end 16 | -------------------------------------------------------------------------------- /ios/kotlinchat/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | #import "AppDelegate.h" 13 | 14 | int main(int argc, char * argv[]) { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /ios/kotlinchatTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/kotlinchatTests/kotlinchatTests.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | #import 12 | 13 | #import 14 | #import 15 | 16 | #define TIMEOUT_SECONDS 600 17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" 18 | 19 | @interface kotlinchatTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation kotlinchatTests 24 | 25 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 26 | { 27 | if (test(view)) { 28 | return YES; 29 | } 30 | for (UIView *subview in [view subviews]) { 31 | if ([self findSubviewInView:subview matching:test]) { 32 | return YES; 33 | } 34 | } 35 | return NO; 36 | } 37 | 38 | - (void)testRendersWelcomeScreen 39 | { 40 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; 41 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 42 | BOOL foundElement = NO; 43 | 44 | __block NSString *redboxError = nil; 45 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 46 | if (level >= RCTLogLevelError) { 47 | redboxError = message; 48 | } 49 | }); 50 | 51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 54 | 55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 57 | return YES; 58 | } 59 | return NO; 60 | }]; 61 | } 62 | 63 | RCTSetLogFunction(RCTDefaultLogFunction); 64 | 65 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 66 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 67 | } 68 | 69 | 70 | @end 71 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "kotlinchat", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "start": "node node_modules/react-native/local-cli/cli.js start", 7 | "test": "jest", 8 | "haul": "haul" 9 | }, 10 | "dependencies": { 11 | "@jetbrains/kotlin-extensions": "^1.0.0-pre.20", 12 | "@jetbrains/kotlin-react": "^16.2.0-pre.20", 13 | "@jetbrains/kotlin-react-dom": "^16.2.0-pre.20", 14 | "kotlin": "^1.2.30", 15 | "react": "^16.3.0-alpha.1", 16 | "react-dom": "^16.2.0", 17 | "react-native": "0.54.0", 18 | "react-native-gifted-chat-flat": "^0.14.0" 19 | }, 20 | "devDependencies": { 21 | "babel-jest": "22.4.1", 22 | "babel-plugin-transform-es2015-constants": "^6.1.4", 23 | "babel-preset-react-native": "4.0.0", 24 | "haul": "^1.0.0-beta.13", 25 | "jest": "22.4.2", 26 | "kotlin-loader": "^0.0.1", 27 | "kotlin-webpack-plugin": "^1.0.8", 28 | "react-test-renderer": "^16.3.0-alpha.1", 29 | "ts2kt": "^0.1.3" 30 | }, 31 | "jest": { 32 | "preset": "react-native" 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /shared/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | mavenCentral() 4 | maven { 5 | url "https://dl.bintray.com/jetbrains/kotlin-native-dependencies" 6 | } 7 | } 8 | 9 | dependencies { 10 | classpath "org.jetbrains.kotlin:kotlin-native-gradle-plugin:*" 11 | } 12 | } 13 | 14 | apply plugin: 'kotlin' 15 | 16 | group = 'shared.data' 17 | 18 | repositories { 19 | mavenCentral() 20 | } 21 | 22 | dependencies { 23 | compile "org.jetbrains.kotlin:kotlin-stdlib" 24 | compile "org.jetbrains.kotlin:kotlin-stdlib-js" 25 | } 26 | -------------------------------------------------------------------------------- /shared/src/main/Data.kt: -------------------------------------------------------------------------------- 1 | package data.messages 2 | import platform.Foundation.* 3 | 4 | val user2 = object { 5 | val _id = "2" 6 | val identity = "identity2" 7 | val avatar = "https://api.adorable.io/avatars/99/user2@adodfdrable.io.png" 8 | } 9 | 10 | val user = mapOf ("_id" to 2, "identity" to "idenity2", "avatar" to "https://api.adorable.io/avatars/99/user2@adodfdrable.io.png") 11 | 12 | data class Message(val _id: String, val text: String, val user: Any, val createdAt: Any) 13 | 14 | fun generateMessage(id: Int): Map { 15 | var message = emptyMap().toMutableMap() 16 | message.put("_id", id.toString()) 17 | message.put("text", "Some random message no $id") 18 | message.put("user", user) 19 | message.put("createdAt", NSDate.date()) 20 | return message.toMap() 21 | } 22 | 23 | fun generateMessages(number: Int): List { 24 | val array = List(number, {i -> generateMessage(i) }) 25 | return array 26 | } 27 | -------------------------------------------------------------------------------- /src/app/App.kt: -------------------------------------------------------------------------------- 1 | package app 2 | 3 | import kotlin.js.Date 4 | import react.* 5 | import reactnative.* 6 | import reactnative.chat.* 7 | import app.sendbutton.* 8 | import app.textcomposer.* 9 | import app.messages.* 10 | 11 | interface AppState : RState { 12 | var messages: Array 13 | } 14 | 15 | val currentUser = object { 16 | val _id = "1" 17 | val identity = "user1" 18 | val avatar = "https://api.adorable.io/avatars/99/user2@adodfdrable.io.png" 19 | } 20 | 21 | class App: RComponent() { 22 | override fun AppState.init() { 23 | // TODO: is there any way to handle Promises nicer? like that https://github.com/mplatvoet/kovenant 24 | generateMessages(5).then { m: Array -> 25 | console.log("generatedMessages", m) 26 | messages = m 27 | } 28 | } 29 | private fun _onInputTextChanged(s: String) { 30 | console.log("_onInputTextChanged:", s) 31 | } 32 | private fun onMessageSend(messagesToSent: Array) { 33 | val newMessage = Message(state.messages.size.toString(), messagesToSent[0].body, currentUser, Date.now()) 34 | setState { 35 | // [newElement, ...oldList] in js 36 | messages = messages.reversedArray().plus(newMessage).reversedArray() 37 | } 38 | } 39 | override fun RBuilder.render() { 40 | View { 41 | attrs.style = object { 42 | val backgroundColor = "#f9f9f9" 43 | val position = "absolute" 44 | val top = 0 45 | val bottom = 0 46 | val left = 0 47 | val right = 0 48 | val flex = 1 49 | } 50 | GiftedChat { 51 | attrs { 52 | renderSend = { props: dynamic -> sendButton(props) } 53 | onInputTextChanged = { e: String -> _onInputTextChanged(e) } 54 | inputContainerStyle = object { 55 | val borderTopWidth: Int = 0 56 | val alignItems: String = "center" 57 | } 58 | renderComposer = { props: dynamic -> textComposer(props) } 59 | messages = state.messages 60 | primaryStyle = object { 61 | val backgroundColor = "#f9f9f9" 62 | val borderWidth = 0 63 | val alignItems = "center" 64 | } 65 | user = currentUser 66 | onSend = { m: Array -> onMessageSend(m)} 67 | } 68 | } 69 | } 70 | 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /src/app/SendButton.kt: -------------------------------------------------------------------------------- 1 | package app.sendbutton 2 | 3 | import react.* 4 | import reactnative.* 5 | 6 | interface SendButtonProps: RProps { 7 | var onSend: dynamic 8 | var text: String 9 | } 10 | 11 | val styles = object { 12 | val paddingHorizontal = 6 13 | val justifyContent = "center" 14 | val alignItems = "center" 15 | val height = 44 16 | } 17 | 18 | class SendButton(props: SendButtonProps): RComponent(props) { 19 | private fun _onSend() { 20 | console.log("onSend", props) 21 | val payload = object { 22 | val body = props.text 23 | } 24 | props.onSend(payload, true) 25 | } 26 | 27 | override fun RBuilder.render() { 28 | View { 29 | attrs { 30 | style = styles 31 | } 32 | Button { 33 | attrs { 34 | title = "Send" 35 | onPress = { _onSend() } 36 | } 37 | } 38 | } 39 | } 40 | } 41 | 42 | fun RBuilder.sendButton(props: dynamic) = child(SendButton::class) { 43 | attrs.onSend = props.onSend 44 | attrs.text = props.text 45 | } 46 | -------------------------------------------------------------------------------- /src/app/TextComposer.kt: -------------------------------------------------------------------------------- 1 | package app.textcomposer 2 | 3 | import react.* 4 | import reactnative.chat.Composer 5 | 6 | interface Props: RProps { 7 | var onTextChanged: dynamic 8 | var text: String 9 | } 10 | 11 | class TextComposer(props: Props): RComponent(props) { 12 | override fun RBuilder.render() { 13 | Composer { 14 | // attrs = props 15 | attrs.onTextChanged = props.onTextChanged 16 | attrs.textInputStyle = object { 17 | val paddingHorizontal = 16 18 | val justifyContent = "center" 19 | val alignItems = "center" 20 | val backgroundColor = "rgba(250, 250, 250, 0.9)" 21 | val borderStyle = "solid" 22 | val borderWidth = 1 23 | val marginLeft = 10 24 | val marginRight = 0 25 | val minHeight = 36 26 | val fontSize = 16 27 | val lineHeight = 24 28 | val borderColor = "#c7d8de" 29 | val paddingVertical = 6 30 | } 31 | attrs.text = props.text 32 | } 33 | } 34 | } 35 | 36 | fun RBuilder.textComposer(props: dynamic) = child(TextComposer::class) { 37 | attrs.onTextChanged = props.onTextChanged 38 | attrs.text = props.text 39 | } 40 | -------------------------------------------------------------------------------- /src/app/messages.kt: -------------------------------------------------------------------------------- 1 | package app.messages 2 | 3 | import kotlin.js.Promise 4 | import reactnative.NativeModules 5 | 6 | data class Message(val _id: String, val text: String, val user: Any, val createdAt: Any) 7 | 8 | fun generateMessages(number: Int): Promise> = NativeModules.SharedDataModule.generateMessages(number) 9 | -------------------------------------------------------------------------------- /src/index.kt: -------------------------------------------------------------------------------- 1 | package index 2 | 3 | import react.* 4 | import reactnative.* 5 | import app.* 6 | 7 | fun run() = { App()} 8 | fun main(args: Array) { 9 | AppRegistry.registerComponent("kotlinchat") { 10 | run() 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/reactnative/ReactNative.kt: -------------------------------------------------------------------------------- 1 | @file:JsModule("react-native") 2 | 3 | package reactnative 4 | 5 | import react.* 6 | 7 | external interface ViewProps : RProps { 8 | var children: List 9 | var style: dynamic 10 | } 11 | 12 | external interface ButtonProps: RProps { 13 | var title: String 14 | var onPress: () -> Unit 15 | } 16 | 17 | external val View: RClass 18 | external val Text: RClass 19 | external val Button: RClass 20 | 21 | external object AppRegistry { 22 | fun registerComponent(appKey: String, getComponentFunc: () -> Any) 23 | } 24 | 25 | external val NativeModules: dynamic 26 | -------------------------------------------------------------------------------- /src/reactnative/ReactNativeChat.kt: -------------------------------------------------------------------------------- 1 | @file:JsModule("react-native-gifted-chat-flat") 2 | 3 | package reactnative.chat 4 | 5 | import react.* 6 | 7 | external interface ViewProps : RProps { 8 | var children: List 9 | var style: Any 10 | var renderSend: dynamic 11 | var onInputTextChanged: dynamic 12 | var inputContainerStyle: dynamic 13 | var renderComposer: dynamic 14 | var messages: dynamic 15 | var primaryStyle: dynamic 16 | var user: dynamic 17 | var onSend: dynamic 18 | } 19 | 20 | external interface ComposerProps: RProps { 21 | var textInputStyle: dynamic 22 | var onTextChanged: dynamic 23 | var text: String 24 | } 25 | 26 | 27 | external val GiftedChat: RClass 28 | external val Composer: RClass 29 | -------------------------------------------------------------------------------- /src/ts/globals.d.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is necessary to declare global functions that might also be included by `--lib dom`. 3 | * Due to a TypeScript bug, these cannot be placed inside a `declare global` block in index.d.ts. 4 | * https://github.com/Microsoft/TypeScript/issues/16430 5 | */ 6 | 7 | // 8 | // Timer Functions 9 | // 10 | declare function clearInterval(handle: number): void; 11 | declare function clearTimeout(handle: number): void; 12 | declare function setInterval( 13 | handler: (...args: any[]) => void, 14 | timeout: number 15 | ): number; 16 | declare function setInterval( 17 | handler: any, 18 | timeout?: any, 19 | ...args: any[] 20 | ): number; 21 | declare function setTimeout( 22 | handler: (...args: any[]) => void, 23 | timeout: number 24 | ): number; 25 | declare function setTimeout( 26 | handler: any, 27 | timeout?: any, 28 | ...args: any[] 29 | ): number; 30 | declare function clearImmediate(handle: number): void; 31 | declare function setImmediate(handler: (...args: any[]) => void): number; 32 | 33 | declare function cancelAnimationFrame(handle: number): void; 34 | declare function requestAnimationFrame( 35 | callback: (time: number) => void 36 | ): number; 37 | 38 | declare function fetchBundle( 39 | bundleId: number, 40 | callback: (error?: Error | null) => void 41 | ): void; 42 | 43 | declare function fetch( 44 | input: RequestInfo, 45 | init?: RequestInit 46 | ): Promise; 47 | -------------------------------------------------------------------------------- /webpack.haul.js: -------------------------------------------------------------------------------- 1 | const KotlinWebpackPlugin = require('kotlin-webpack-plugin'); 2 | const path = require('path'); 3 | module.exports = ({ platform }, { resolve, plugins }) => ({ 4 | entry: `./kotlin_build/kotlinApp.js`, 5 | resolve: { 6 | ...resolve, 7 | // "kotlin_build" is where the compiled Kotlin code (kotlinApp.js) is outputted 8 | modules: ['node_modules', 'kotlin_build'], 9 | }, 10 | // module: { 11 | // rules: [ 12 | // { 13 | // test: /\.js$/, 14 | // include: path.resolve(__dirname, '../kotlin_build'), 15 | // use: ['source-map-loader'], 16 | // enforce: 'pre', 17 | // }, 18 | // ], 19 | // }, 20 | plugins: [ 21 | ...plugins, 22 | new KotlinWebpackPlugin({ 23 | src: __dirname + '/src', 24 | verbose: true, 25 | // optimize: true, 26 | libraries: [ 27 | '@jetbrains/kotlin-extensions', 28 | '@jetbrains/kotlin-react', 29 | ].map(pkg => require.resolve(pkg)), 30 | }), 31 | ], 32 | }); 33 | --------------------------------------------------------------------------------