├── .buckconfig ├── .eslintrc.js ├── .gitattributes ├── .gitignore ├── .prettierrc.js ├── .watchmanconfig ├── App.tsx ├── README.md ├── __tests__ └── App-test.tsx ├── android ├── app │ ├── _BUCK │ ├── build.gradle │ ├── build_defs.bzl │ ├── debug.keystore │ ├── proguard-rules.pro │ └── src │ │ ├── debug │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── reactnativewidget │ │ │ └── ReactNativeFlipper.java │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── reactnativewidget │ │ │ ├── MainActivity.java │ │ │ └── MainApplication.java │ │ └── res │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── app.json ├── assets ├── hi.png └── input.png ├── babel.config.js ├── index.js ├── ios ├── Podfile ├── Podfile.lock ├── ReactNativeWidget-tvOS │ └── Info.plist ├── ReactNativeWidget-tvOSTests │ └── Info.plist ├── ReactNativeWidget.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── ReactNativeWidget-tvOS.xcscheme │ │ └── ReactNativeWidget.xcscheme ├── ReactNativeWidget.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── IDEWorkspaceChecks.plist │ │ └── WorkspaceSettings.xcsettings ├── ReactNativeWidget │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── Contents.json │ ├── Info.plist │ ├── LaunchScreen.storyboard │ ├── ReactNativeWidget.entitlements │ └── main.m ├── ReactNativeWidgetTests │ ├── Info.plist │ └── ReactNativeWidgetTests.m ├── WidgetTest │ ├── Assets.xcassets │ │ ├── AccentColor.colorset │ │ │ └── Contents.json │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ ├── Contents.json │ │ └── WidgetBackground.colorset │ │ │ └── Contents.json │ ├── Info.plist │ ├── WidgetTest.intentdefinition │ └── WidgetTest.swift └── WidgetTestExtension.entitlements ├── metro.config.js ├── package.json ├── tsconfig.json └── yarn.lock /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: '@react-native-community', 4 | }; 5 | -------------------------------------------------------------------------------- /.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 | 24 | # Android/IntelliJ 25 | # 26 | build/ 27 | .idea 28 | .gradle 29 | local.properties 30 | *.iml 31 | 32 | # Visual Studio Code 33 | # 34 | .vscode/ 35 | 36 | # node.js 37 | # 38 | node_modules/ 39 | npm-debug.log 40 | yarn-error.log 41 | 42 | # BUCK 43 | buck-out/ 44 | \.buckd/ 45 | *.keystore 46 | !debug.keystore 47 | 48 | # fastlane 49 | # 50 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 51 | # screenshots whenever they are needed. 52 | # For more information about the recommended setup visit: 53 | # https://docs.fastlane.tools/best-practices/source-control/ 54 | 55 | */fastlane/report.xml 56 | */fastlane/Preview.html 57 | */fastlane/screenshots 58 | 59 | # Bundle artifact 60 | *.jsbundle 61 | 62 | # CocoaPods 63 | /ios/Pods/ 64 | -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | bracketSpacing: true, 3 | jsxBracketSameLine: true, 4 | singleQuote: true, 5 | trailingComma: 'all', 6 | }; 7 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /App.tsx: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | * 5 | * Generated with the TypeScript template 6 | * https://github.com/react-native-community/react-native-template-typescript 7 | * 8 | * @format 9 | */ 10 | 11 | import React, { useState } from 'react'; 12 | import { StyleSheet, View, Text, TextInput } from 'react-native'; 13 | import SharedGroupPreferences from 'react-native-shared-group-preferences'; 14 | 15 | const appGroupIdentifier = 'group.com.YOURINFO.ReactNativeWidget'; 16 | 17 | const App = () => { 18 | const [inputText, setInputText] = useState(); 19 | const widgetData = { 20 | displayText: inputText, 21 | }; 22 | 23 | const handleSubmit = async () => { 24 | try { 25 | await SharedGroupPreferences.setItem( 26 | 'savedData', 27 | widgetData, 28 | appGroupIdentifier, 29 | ); 30 | } catch (error) { 31 | console.log({ error }); 32 | } 33 | }; 34 | 35 | return ( 36 | 37 | Enter text to display on widget: 38 | setInputText(text)} 41 | value={inputText} 42 | returnKeyType="send" 43 | onEndEditing={handleSubmit} 44 | /> 45 | 46 | ); 47 | }; 48 | 49 | const styles = StyleSheet.create({ 50 | container: { 51 | backgroundColor: '#ffffff', 52 | flex: 1, 53 | justifyContent: 'center', 54 | alignItems: 'center', 55 | paddingHorizontal: 32, 56 | }, 57 | input: { 58 | height: 40, 59 | borderColor: 'gray', 60 | borderWidth: 1, 61 | borderRadius: 8, 62 | width: '100%', 63 | marginTop: 16, 64 | paddingHorizontal: 8, 65 | }, 66 | }); 67 | 68 | export default App; 69 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## iOS Widgetkit + React Native [Blog Post Here](https://teamairship.com/home-screen-widgets-ios-widgetkit-react-native/) 2 | 3 | React Native screenshot with Widgetkit 4 | React Native screenshot with Widgetkit 5 | 6 |
7 |
8 | 9 | #### This repo contains a working example using Widgetkit + React Native. You are able to send data to an App Group from which you can pull data into the widget in Swift. -------------------------------------------------------------------------------- /__tests__/App-test.tsx: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import 'react-native'; 6 | import React from 'react'; 7 | import App from '../App'; 8 | 9 | // Note: test renderer must be required after react-native. 10 | import renderer from 'react-test-renderer'; 11 | 12 | it('renders correctly', () => { 13 | renderer.create(); 14 | }); 15 | -------------------------------------------------------------------------------- /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 | load(":build_defs.bzl", "create_aar_targets", "create_jar_targets") 12 | 13 | lib_deps = [] 14 | 15 | create_aar_targets(glob(["libs/*.aar"])) 16 | 17 | create_jar_targets(glob(["libs/*.jar"])) 18 | 19 | android_library( 20 | name = "all-libs", 21 | exported_deps = lib_deps, 22 | ) 23 | 24 | android_library( 25 | name = "app-code", 26 | srcs = glob([ 27 | "src/main/java/**/*.java", 28 | ]), 29 | deps = [ 30 | ":all-libs", 31 | ":build_config", 32 | ":res", 33 | ], 34 | ) 35 | 36 | android_build_config( 37 | name = "build_config", 38 | package = "com.reactnativewidget", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "com.reactnativewidget", 44 | res = "src/main/res", 45 | ) 46 | 47 | android_binary( 48 | name = "app", 49 | keystore = "//android/keystores:debug", 50 | manifest = "src/main/AndroidManifest.xml", 51 | package_type = "debug", 52 | deps = [ 53 | ":app-code", 54 | ], 55 | ) 56 | -------------------------------------------------------------------------------- /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. If none specified and 19 | * // "index.android.js" exists, it will be used. Otherwise "index.js" is 20 | * // default. Can be overridden with ENTRY_FILE environment variable. 21 | * entryFile: "index.android.js", 22 | * 23 | * // https://reactnative.dev/docs/performance#enable-the-ram-format 24 | * bundleCommand: "ram-bundle", 25 | * 26 | * // whether to bundle JS and assets in debug mode 27 | * bundleInDebug: false, 28 | * 29 | * // whether to bundle JS and assets in release mode 30 | * bundleInRelease: true, 31 | * 32 | * // whether to bundle JS and assets in another build variant (if configured). 33 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 34 | * // The configuration property can be in the following formats 35 | * // 'bundleIn${productFlavor}${buildType}' 36 | * // 'bundleIn${buildType}' 37 | * // bundleInFreeDebug: true, 38 | * // bundleInPaidRelease: true, 39 | * // bundleInBeta: true, 40 | * 41 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 42 | * // for example: to disable dev mode in the staging build type (if configured) 43 | * devDisabledInStaging: true, 44 | * // The configuration property can be in the following formats 45 | * // 'devDisabledIn${productFlavor}${buildType}' 46 | * // 'devDisabledIn${buildType}' 47 | * 48 | * // the root of your project, i.e. where "package.json" lives 49 | * root: "../../", 50 | * 51 | * // where to put the JS bundle asset in debug mode 52 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 53 | * 54 | * // where to put the JS bundle asset in release mode 55 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 56 | * 57 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 58 | * // require('./image.png')), in debug mode 59 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 60 | * 61 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 62 | * // require('./image.png')), in release mode 63 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 64 | * 65 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 66 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 67 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 68 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 69 | * // for example, you might want to remove it from here. 70 | * inputExcludes: ["android/**", "ios/**"], 71 | * 72 | * // override which node gets called and with what additional arguments 73 | * nodeExecutableAndArgs: ["node"], 74 | * 75 | * // supply additional arguments to the packager 76 | * extraPackagerArgs: [] 77 | * ] 78 | */ 79 | 80 | project.ext.react = [ 81 | enableHermes: false, // clean and rebuild if changing 82 | ] 83 | 84 | apply from: "../../node_modules/react-native/react.gradle" 85 | 86 | /** 87 | * Set this to true to create two separate APKs instead of one: 88 | * - An APK that only works on ARM devices 89 | * - An APK that only works on x86 devices 90 | * The advantage is the size of the APK is reduced by about 4MB. 91 | * Upload all the APKs to the Play Store and people will download 92 | * the correct one based on the CPU architecture of their device. 93 | */ 94 | def enableSeparateBuildPerCPUArchitecture = false 95 | 96 | /** 97 | * Run Proguard to shrink the Java bytecode in release builds. 98 | */ 99 | def enableProguardInReleaseBuilds = false 100 | 101 | /** 102 | * The preferred build flavor of JavaScriptCore. 103 | * 104 | * For example, to use the international variant, you can use: 105 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` 106 | * 107 | * The international variant includes ICU i18n library and necessary data 108 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that 109 | * give correct results when using with locales other than en-US. Note that 110 | * this variant is about 6MiB larger per architecture than default. 111 | */ 112 | def jscFlavor = 'org.webkit:android-jsc:+' 113 | 114 | /** 115 | * Whether to enable the Hermes VM. 116 | * 117 | * This should be set on project.ext.react and mirrored here. If it is not set 118 | * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode 119 | * and the benefits of using Hermes will therefore be sharply reduced. 120 | */ 121 | def enableHermes = project.ext.react.get("enableHermes", false); 122 | 123 | android { 124 | compileSdkVersion rootProject.ext.compileSdkVersion 125 | 126 | compileOptions { 127 | sourceCompatibility JavaVersion.VERSION_1_8 128 | targetCompatibility JavaVersion.VERSION_1_8 129 | } 130 | 131 | defaultConfig { 132 | applicationId "com.reactnativewidget" 133 | minSdkVersion rootProject.ext.minSdkVersion 134 | targetSdkVersion rootProject.ext.targetSdkVersion 135 | versionCode 1 136 | versionName "1.0" 137 | } 138 | splits { 139 | abi { 140 | reset() 141 | enable enableSeparateBuildPerCPUArchitecture 142 | universalApk false // If true, also generate a universal APK 143 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" 144 | } 145 | } 146 | signingConfigs { 147 | debug { 148 | storeFile file('debug.keystore') 149 | storePassword 'android' 150 | keyAlias 'androiddebugkey' 151 | keyPassword 'android' 152 | } 153 | } 154 | buildTypes { 155 | debug { 156 | signingConfig signingConfigs.debug 157 | } 158 | release { 159 | // Caution! In production, you need to generate your own keystore file. 160 | // see https://reactnative.dev/docs/signed-apk-android. 161 | signingConfig signingConfigs.debug 162 | minifyEnabled enableProguardInReleaseBuilds 163 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 164 | } 165 | } 166 | 167 | // applicationVariants are e.g. debug, release 168 | applicationVariants.all { variant -> 169 | variant.outputs.each { output -> 170 | // For each separate APK per architecture, set a unique version code as described here: 171 | // https://developer.android.com/studio/build/configure-apk-splits.html 172 | def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] 173 | def abi = output.getFilter(OutputFile.ABI) 174 | if (abi != null) { // null for the universal-debug, universal-release variants 175 | output.versionCodeOverride = 176 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 177 | } 178 | 179 | } 180 | } 181 | } 182 | 183 | dependencies { 184 | implementation fileTree(dir: "libs", include: ["*.jar"]) 185 | //noinspection GradleDynamicVersion 186 | implementation "com.facebook.react:react-native:+" // From node_modules 187 | 188 | implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0" 189 | 190 | debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") { 191 | exclude group:'com.facebook.fbjni' 192 | } 193 | 194 | debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") { 195 | exclude group:'com.facebook.flipper' 196 | exclude group:'com.squareup.okhttp3', module:'okhttp' 197 | } 198 | 199 | debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") { 200 | exclude group:'com.facebook.flipper' 201 | } 202 | 203 | if (enableHermes) { 204 | def hermesPath = "../../node_modules/hermes-engine/android/"; 205 | debugImplementation files(hermesPath + "hermes-debug.aar") 206 | releaseImplementation files(hermesPath + "hermes-release.aar") 207 | } else { 208 | implementation jscFlavor 209 | } 210 | } 211 | 212 | // Run this once to be able to run the application with BUCK 213 | // puts all compile dependencies into folder libs for BUCK to use 214 | task copyDownloadableDepsToLibs(type: Copy) { 215 | from configurations.compile 216 | into 'libs' 217 | } 218 | 219 | apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) 220 | -------------------------------------------------------------------------------- /android/app/build_defs.bzl: -------------------------------------------------------------------------------- 1 | """Helper definitions to glob .aar and .jar targets""" 2 | 3 | def create_aar_targets(aarfiles): 4 | for aarfile in aarfiles: 5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")] 6 | lib_deps.append(":" + name) 7 | android_prebuilt_aar( 8 | name = name, 9 | aar = aarfile, 10 | ) 11 | 12 | def create_jar_targets(jarfiles): 13 | for jarfile in jarfiles: 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 | -------------------------------------------------------------------------------- /android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonesaustindev/react-native-widget/98a439ed876f4ba5d5b0d4b0fa63ca24a202feb8/android/app/debug.keystore -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/debug/java/com/reactnativewidget/ReactNativeFlipper.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | *

This source code is licensed under the MIT license found in the LICENSE file in the root 5 | * directory of this source tree. 6 | */ 7 | package com.reactnativewidget; 8 | 9 | import android.content.Context; 10 | import com.facebook.flipper.android.AndroidFlipperClient; 11 | import com.facebook.flipper.android.utils.FlipperUtils; 12 | import com.facebook.flipper.core.FlipperClient; 13 | import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin; 14 | import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin; 15 | import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin; 16 | import com.facebook.flipper.plugins.inspector.DescriptorMapping; 17 | import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin; 18 | import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor; 19 | import com.facebook.flipper.plugins.network.NetworkFlipperPlugin; 20 | import com.facebook.flipper.plugins.react.ReactFlipperPlugin; 21 | import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin; 22 | import com.facebook.react.ReactInstanceManager; 23 | import com.facebook.react.bridge.ReactContext; 24 | import com.facebook.react.modules.network.NetworkingModule; 25 | import okhttp3.OkHttpClient; 26 | 27 | public class ReactNativeFlipper { 28 | public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) { 29 | if (FlipperUtils.shouldEnableFlipper(context)) { 30 | final FlipperClient client = AndroidFlipperClient.getInstance(context); 31 | 32 | client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults())); 33 | client.addPlugin(new ReactFlipperPlugin()); 34 | client.addPlugin(new DatabasesFlipperPlugin(context)); 35 | client.addPlugin(new SharedPreferencesFlipperPlugin(context)); 36 | client.addPlugin(CrashReporterPlugin.getInstance()); 37 | 38 | NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin(); 39 | NetworkingModule.setCustomClientBuilder( 40 | new NetworkingModule.CustomClientBuilder() { 41 | @Override 42 | public void apply(OkHttpClient.Builder builder) { 43 | builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin)); 44 | } 45 | }); 46 | client.addPlugin(networkFlipperPlugin); 47 | client.start(); 48 | 49 | // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized 50 | // Hence we run if after all native modules have been initialized 51 | ReactContext reactContext = reactInstanceManager.getCurrentReactContext(); 52 | if (reactContext == null) { 53 | reactInstanceManager.addReactInstanceEventListener( 54 | new ReactInstanceManager.ReactInstanceEventListener() { 55 | @Override 56 | public void onReactContextInitialized(ReactContext reactContext) { 57 | reactInstanceManager.removeReactInstanceEventListener(this); 58 | reactContext.runOnNativeModulesQueueThread( 59 | new Runnable() { 60 | @Override 61 | public void run() { 62 | client.addPlugin(new FrescoFlipperPlugin()); 63 | } 64 | }); 65 | } 66 | }); 67 | } else { 68 | client.addPlugin(new FrescoFlipperPlugin()); 69 | } 70 | } 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 13 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/reactnativewidget/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.reactnativewidget; 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. This is used to schedule 9 | * rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "ReactNativeWidget"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/reactnativewidget/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.reactnativewidget; 2 | 3 | import android.app.Application; 4 | import android.content.Context; 5 | import com.facebook.react.PackageList; 6 | import com.facebook.react.ReactApplication; 7 | import com.facebook.react.ReactInstanceManager; 8 | import com.facebook.react.ReactNativeHost; 9 | import com.facebook.react.ReactPackage; 10 | import com.facebook.soloader.SoLoader; 11 | import java.lang.reflect.InvocationTargetException; 12 | import java.util.List; 13 | 14 | public class MainApplication extends Application implements ReactApplication { 15 | 16 | private final ReactNativeHost mReactNativeHost = 17 | new ReactNativeHost(this) { 18 | @Override 19 | public boolean getUseDeveloperSupport() { 20 | return BuildConfig.DEBUG; 21 | } 22 | 23 | @Override 24 | protected List getPackages() { 25 | @SuppressWarnings("UnnecessaryLocalVariable") 26 | List packages = new PackageList(this).getPackages(); 27 | // Packages that cannot be autolinked yet can be added manually here, for example: 28 | // packages.add(new MyReactNativePackage()); 29 | return packages; 30 | } 31 | 32 | @Override 33 | protected String getJSMainModuleName() { 34 | return "index"; 35 | } 36 | }; 37 | 38 | @Override 39 | public ReactNativeHost getReactNativeHost() { 40 | return mReactNativeHost; 41 | } 42 | 43 | @Override 44 | public void onCreate() { 45 | super.onCreate(); 46 | SoLoader.init(this, /* native exopackage */ false); 47 | initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); 48 | } 49 | 50 | /** 51 | * Loads Flipper in React Native templates. Call this in the onCreate method with something like 52 | * initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); 53 | * 54 | * @param context 55 | * @param reactInstanceManager 56 | */ 57 | private static void initializeFlipper( 58 | Context context, ReactInstanceManager reactInstanceManager) { 59 | if (BuildConfig.DEBUG) { 60 | try { 61 | /* 62 | We use reflection here to pick up the class that initializes Flipper, 63 | since Flipper library is not available in release mode 64 | */ 65 | Class aClass = Class.forName("com.reactnativewidget.ReactNativeFlipper"); 66 | aClass 67 | .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class) 68 | .invoke(null, context, reactInstanceManager); 69 | } catch (ClassNotFoundException e) { 70 | e.printStackTrace(); 71 | } catch (NoSuchMethodException e) { 72 | e.printStackTrace(); 73 | } catch (IllegalAccessException e) { 74 | e.printStackTrace(); 75 | } catch (InvocationTargetException e) { 76 | e.printStackTrace(); 77 | } 78 | } 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonesaustindev/react-native-widget/98a439ed876f4ba5d5b0d4b0fa63ca24a202feb8/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonesaustindev/react-native-widget/98a439ed876f4ba5d5b0d4b0fa63ca24a202feb8/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonesaustindev/react-native-widget/98a439ed876f4ba5d5b0d4b0fa63ca24a202feb8/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonesaustindev/react-native-widget/98a439ed876f4ba5d5b0d4b0fa63ca24a202feb8/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonesaustindev/react-native-widget/98a439ed876f4ba5d5b0d4b0fa63ca24a202feb8/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonesaustindev/react-native-widget/98a439ed876f4ba5d5b0d4b0fa63ca24a202feb8/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonesaustindev/react-native-widget/98a439ed876f4ba5d5b0d4b0fa63ca24a202feb8/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonesaustindev/react-native-widget/98a439ed876f4ba5d5b0d4b0fa63ca24a202feb8/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonesaustindev/react-native-widget/98a439ed876f4ba5d5b0d4b0fa63ca24a202feb8/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonesaustindev/react-native-widget/98a439ed876f4ba5d5b0d4b0fa63ca24a202feb8/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | ReactNativeWidget 3 | 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext { 5 | buildToolsVersion = "29.0.2" 6 | minSdkVersion = 16 7 | compileSdkVersion = 29 8 | targetSdkVersion = 29 9 | } 10 | repositories { 11 | google() 12 | jcenter() 13 | } 14 | dependencies { 15 | classpath("com.android.tools.build:gradle:3.5.3") 16 | // NOTE: Do not place your application dependencies here; they belong 17 | // in the individual module build.gradle files 18 | } 19 | } 20 | 21 | allprojects { 22 | repositories { 23 | mavenLocal() 24 | maven { 25 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 26 | url("$rootDir/../node_modules/react-native/android") 27 | } 28 | maven { 29 | // Android JSC is installed from npm 30 | url("$rootDir/../node_modules/jsc-android/dist") 31 | } 32 | 33 | google() 34 | jcenter() 35 | maven { url 'https://www.jitpack.io' } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /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 | # AndroidX package structure to make it clearer which packages are bundled with the 21 | # Android operating system, and which are packaged with your app's APK 22 | # https://developer.android.com/topic/libraries/support-library/androidx-rn 23 | android.useAndroidX=true 24 | # Automatically convert third-party libraries to use AndroidX 25 | android.enableJetifier=true 26 | 27 | # Version of flipper SDK to use with React Native 28 | FLIPPER_VERSION=0.54.0 29 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonesaustindev/react-native-widget/98a439ed876f4ba5d5b0d4b0fa63ca24a202feb8/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.2-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # 4 | # Copyright 2015 the original author or authors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | ############################################################################## 20 | ## 21 | ## Gradle start up script for UN*X 22 | ## 23 | ############################################################################## 24 | 25 | # Attempt to set APP_HOME 26 | # Resolve links: $0 may be a link 27 | PRG="$0" 28 | # Need this for relative symlinks. 29 | while [ -h "$PRG" ] ; do 30 | ls=`ls -ld "$PRG"` 31 | link=`expr "$ls" : '.*-> \(.*\)$'` 32 | if expr "$link" : '/.*' > /dev/null; then 33 | PRG="$link" 34 | else 35 | PRG=`dirname "$PRG"`"/$link" 36 | fi 37 | done 38 | SAVED="`pwd`" 39 | cd "`dirname \"$PRG\"`/" >/dev/null 40 | APP_HOME="`pwd -P`" 41 | cd "$SAVED" >/dev/null 42 | 43 | APP_NAME="Gradle" 44 | APP_BASE_NAME=`basename "$0"` 45 | 46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 48 | 49 | # Use the maximum available, or set MAX_FD != -1 to use that value. 50 | MAX_FD="maximum" 51 | 52 | warn () { 53 | echo "$*" 54 | } 55 | 56 | die () { 57 | echo 58 | echo "$*" 59 | echo 60 | exit 1 61 | } 62 | 63 | # OS specific support (must be 'true' or 'false'). 64 | cygwin=false 65 | msys=false 66 | darwin=false 67 | nonstop=false 68 | case "`uname`" in 69 | CYGWIN* ) 70 | cygwin=true 71 | ;; 72 | Darwin* ) 73 | darwin=true 74 | ;; 75 | MINGW* ) 76 | msys=true 77 | ;; 78 | NONSTOP* ) 79 | nonstop=true 80 | ;; 81 | esac 82 | 83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 84 | 85 | # Determine the Java command to use to start the JVM. 86 | if [ -n "$JAVA_HOME" ] ; then 87 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 88 | # IBM's JDK on AIX uses strange locations for the executables 89 | JAVACMD="$JAVA_HOME/jre/sh/java" 90 | else 91 | JAVACMD="$JAVA_HOME/bin/java" 92 | fi 93 | if [ ! -x "$JAVACMD" ] ; then 94 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 95 | 96 | Please set the JAVA_HOME variable in your environment to match the 97 | location of your Java installation." 98 | fi 99 | else 100 | JAVACMD="java" 101 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 102 | 103 | Please set the JAVA_HOME variable in your environment to match the 104 | location of your Java installation." 105 | fi 106 | 107 | # Increase the maximum file descriptors if we can. 108 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 109 | MAX_FD_LIMIT=`ulimit -H -n` 110 | if [ $? -eq 0 ] ; then 111 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 112 | MAX_FD="$MAX_FD_LIMIT" 113 | fi 114 | ulimit -n $MAX_FD 115 | if [ $? -ne 0 ] ; then 116 | warn "Could not set maximum file descriptor limit: $MAX_FD" 117 | fi 118 | else 119 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 120 | fi 121 | fi 122 | 123 | # For Darwin, add options to specify how the application appears in the dock 124 | if $darwin; then 125 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 126 | fi 127 | 128 | # For Cygwin or MSYS, switch paths to Windows format before running java 129 | if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then 130 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 131 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 132 | JAVACMD=`cygpath --unix "$JAVACMD"` 133 | 134 | # We build the pattern for arguments to be converted via cygpath 135 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 136 | SEP="" 137 | for dir in $ROOTDIRSRAW ; do 138 | ROOTDIRS="$ROOTDIRS$SEP$dir" 139 | SEP="|" 140 | done 141 | OURCYGPATTERN="(^($ROOTDIRS))" 142 | # Add a user-defined pattern to the cygpath arguments 143 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 144 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 145 | fi 146 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 147 | i=0 148 | for arg in "$@" ; do 149 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 150 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 151 | 152 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 153 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 154 | else 155 | eval `echo args$i`="\"$arg\"" 156 | fi 157 | i=`expr $i + 1` 158 | done 159 | case $i in 160 | 0) set -- ;; 161 | 1) set -- "$args0" ;; 162 | 2) set -- "$args0" "$args1" ;; 163 | 3) set -- "$args0" "$args1" "$args2" ;; 164 | 4) set -- "$args0" "$args1" "$args2" "$args3" ;; 165 | 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 166 | 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 167 | 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 168 | 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 169 | 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 170 | esac 171 | fi 172 | 173 | # Escape application args 174 | save () { 175 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 176 | echo " " 177 | } 178 | APP_ARGS=`save "$@"` 179 | 180 | # Collect all arguments for the java command, following the shell quoting and substitution rules 181 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 182 | 183 | exec "$JAVACMD" "$@" 184 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem https://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%" == "" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%" == "" set DIRNAME=. 29 | set APP_BASE_NAME=%~n0 30 | set APP_HOME=%DIRNAME% 31 | 32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. 33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 34 | 35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 37 | 38 | @rem Find java.exe 39 | if defined JAVA_HOME goto findJavaFromJavaHome 40 | 41 | set JAVA_EXE=java.exe 42 | %JAVA_EXE% -version >NUL 2>&1 43 | if "%ERRORLEVEL%" == "0" goto init 44 | 45 | echo. 46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 47 | echo. 48 | echo Please set the JAVA_HOME variable in your environment to match the 49 | echo location of your Java installation. 50 | 51 | goto fail 52 | 53 | :findJavaFromJavaHome 54 | set JAVA_HOME=%JAVA_HOME:"=% 55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 56 | 57 | if exist "%JAVA_EXE%" goto init 58 | 59 | echo. 60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 61 | echo. 62 | echo Please set the JAVA_HOME variable in your environment to match the 63 | echo location of your Java installation. 64 | 65 | goto fail 66 | 67 | :init 68 | @rem Get command-line arguments, handling Windows variants 69 | 70 | if not "%OS%" == "Windows_NT" goto win9xME_args 71 | 72 | :win9xME_args 73 | @rem Slurp the command line arguments. 74 | set CMD_LINE_ARGS= 75 | set _SKIP=2 76 | 77 | :win9xME_args_slurp 78 | if "x%~1" == "x" goto execute 79 | 80 | set CMD_LINE_ARGS=%* 81 | 82 | :execute 83 | @rem Setup the command line 84 | 85 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 86 | 87 | @rem Execute Gradle 88 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 89 | 90 | :end 91 | @rem End local scope for the variables with windows NT shell 92 | if "%ERRORLEVEL%"=="0" goto mainEnd 93 | 94 | :fail 95 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 96 | rem the _cmd.exe /c_ return code! 97 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 98 | exit /b 1 99 | 100 | :mainEnd 101 | if "%OS%"=="Windows_NT" endlocal 102 | 103 | :omega 104 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'ReactNativeWidget' 2 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) 3 | include ':app' 4 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ReactNativeWidget", 3 | "displayName": "ReactNativeWidget" 4 | } -------------------------------------------------------------------------------- /assets/hi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonesaustindev/react-native-widget/98a439ed876f4ba5d5b0d4b0fa63ca24a202feb8/assets/hi.png -------------------------------------------------------------------------------- /assets/input.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonesaustindev/react-native-widget/98a439ed876f4ba5d5b0d4b0fa63ca24a202feb8/assets/input.png -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | }; 4 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import {AppRegistry} from 'react-native'; 6 | import App from './App'; 7 | import {name as appName} from './app.json'; 8 | 9 | AppRegistry.registerComponent(appName, () => App); 10 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | require_relative '../node_modules/react-native/scripts/react_native_pods' 2 | require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' 3 | 4 | platform :ios, '10.0' 5 | 6 | target 'ReactNativeWidget' do 7 | config = use_native_modules! 8 | 9 | use_react_native!(:path => config["reactNativePath"]) 10 | 11 | target 'ReactNativeWidgetTests' do 12 | inherit! :complete 13 | # Pods for testing 14 | end 15 | 16 | # Enables Flipper. 17 | # 18 | # Note that if you have use_frameworks! enabled, Flipper will not work and 19 | # you should disable these next few lines. 20 | use_flipper!({ 'Flipper' => '0.74.0' }) 21 | post_install do |installer| 22 | flipper_post_install(installer) 23 | end 24 | end 25 | 26 | target 'ReactNativeWidget-tvOS' do 27 | # Pods for ReactNativeWidget-tvOS 28 | 29 | target 'ReactNativeWidget-tvOSTests' do 30 | inherit! :search_paths 31 | # Pods for testing 32 | end 33 | end 34 | -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - boost-for-react-native (1.63.0) 3 | - CocoaAsyncSocket (7.6.5) 4 | - DoubleConversion (1.1.6) 5 | - FBLazyVector (0.63.4) 6 | - FBReactNativeSpec (0.63.4): 7 | - Folly (= 2020.01.13.00) 8 | - RCTRequired (= 0.63.4) 9 | - RCTTypeSafety (= 0.63.4) 10 | - React-Core (= 0.63.4) 11 | - React-jsi (= 0.63.4) 12 | - ReactCommon/turbomodule/core (= 0.63.4) 13 | - Flipper (0.74.0): 14 | - Flipper-Folly (~> 2.5) 15 | - Flipper-RSocket (~> 1.3) 16 | - Flipper-DoubleConversion (1.1.7) 17 | - Flipper-Folly (2.5.1): 18 | - boost-for-react-native 19 | - Flipper-DoubleConversion 20 | - Flipper-Glog 21 | - libevent (~> 2.1.12) 22 | - OpenSSL-Universal (= 1.1.180) 23 | - Flipper-Glog (0.3.6) 24 | - Flipper-PeerTalk (0.0.4) 25 | - Flipper-RSocket (1.3.0): 26 | - Flipper-Folly (~> 2.5) 27 | - FlipperKit (0.74.0): 28 | - FlipperKit/Core (= 0.74.0) 29 | - FlipperKit/Core (0.74.0): 30 | - Flipper (~> 0.74.0) 31 | - FlipperKit/CppBridge 32 | - FlipperKit/FBCxxFollyDynamicConvert 33 | - FlipperKit/FBDefines 34 | - FlipperKit/FKPortForwarding 35 | - FlipperKit/CppBridge (0.74.0): 36 | - Flipper (~> 0.74.0) 37 | - FlipperKit/FBCxxFollyDynamicConvert (0.74.0): 38 | - Flipper-Folly (~> 2.5) 39 | - FlipperKit/FBDefines (0.74.0) 40 | - FlipperKit/FKPortForwarding (0.74.0): 41 | - CocoaAsyncSocket (~> 7.6) 42 | - Flipper-PeerTalk (~> 0.0.4) 43 | - FlipperKit/FlipperKitHighlightOverlay (0.74.0) 44 | - FlipperKit/FlipperKitLayoutPlugin (0.74.0): 45 | - FlipperKit/Core 46 | - FlipperKit/FlipperKitHighlightOverlay 47 | - FlipperKit/FlipperKitLayoutTextSearchable 48 | - YogaKit (~> 1.18) 49 | - FlipperKit/FlipperKitLayoutTextSearchable (0.74.0) 50 | - FlipperKit/FlipperKitNetworkPlugin (0.74.0): 51 | - FlipperKit/Core 52 | - FlipperKit/FlipperKitReactPlugin (0.74.0): 53 | - FlipperKit/Core 54 | - FlipperKit/FlipperKitUserDefaultsPlugin (0.74.0): 55 | - FlipperKit/Core 56 | - FlipperKit/SKIOSNetworkPlugin (0.74.0): 57 | - FlipperKit/Core 58 | - FlipperKit/FlipperKitNetworkPlugin 59 | - Folly (2020.01.13.00): 60 | - boost-for-react-native 61 | - DoubleConversion 62 | - Folly/Default (= 2020.01.13.00) 63 | - glog 64 | - Folly/Default (2020.01.13.00): 65 | - boost-for-react-native 66 | - DoubleConversion 67 | - glog 68 | - glog (0.3.5) 69 | - libevent (2.1.12) 70 | - OpenSSL-Universal (1.1.180) 71 | - RCTRequired (0.63.4) 72 | - RCTTypeSafety (0.63.4): 73 | - FBLazyVector (= 0.63.4) 74 | - Folly (= 2020.01.13.00) 75 | - RCTRequired (= 0.63.4) 76 | - React-Core (= 0.63.4) 77 | - React (0.63.4): 78 | - React-Core (= 0.63.4) 79 | - React-Core/DevSupport (= 0.63.4) 80 | - React-Core/RCTWebSocket (= 0.63.4) 81 | - React-RCTActionSheet (= 0.63.4) 82 | - React-RCTAnimation (= 0.63.4) 83 | - React-RCTBlob (= 0.63.4) 84 | - React-RCTImage (= 0.63.4) 85 | - React-RCTLinking (= 0.63.4) 86 | - React-RCTNetwork (= 0.63.4) 87 | - React-RCTSettings (= 0.63.4) 88 | - React-RCTText (= 0.63.4) 89 | - React-RCTVibration (= 0.63.4) 90 | - React-callinvoker (0.63.4) 91 | - React-Core (0.63.4): 92 | - Folly (= 2020.01.13.00) 93 | - glog 94 | - React-Core/Default (= 0.63.4) 95 | - React-cxxreact (= 0.63.4) 96 | - React-jsi (= 0.63.4) 97 | - React-jsiexecutor (= 0.63.4) 98 | - Yoga 99 | - React-Core/CoreModulesHeaders (0.63.4): 100 | - Folly (= 2020.01.13.00) 101 | - glog 102 | - React-Core/Default 103 | - React-cxxreact (= 0.63.4) 104 | - React-jsi (= 0.63.4) 105 | - React-jsiexecutor (= 0.63.4) 106 | - Yoga 107 | - React-Core/Default (0.63.4): 108 | - Folly (= 2020.01.13.00) 109 | - glog 110 | - React-cxxreact (= 0.63.4) 111 | - React-jsi (= 0.63.4) 112 | - React-jsiexecutor (= 0.63.4) 113 | - Yoga 114 | - React-Core/DevSupport (0.63.4): 115 | - Folly (= 2020.01.13.00) 116 | - glog 117 | - React-Core/Default (= 0.63.4) 118 | - React-Core/RCTWebSocket (= 0.63.4) 119 | - React-cxxreact (= 0.63.4) 120 | - React-jsi (= 0.63.4) 121 | - React-jsiexecutor (= 0.63.4) 122 | - React-jsinspector (= 0.63.4) 123 | - Yoga 124 | - React-Core/RCTActionSheetHeaders (0.63.4): 125 | - Folly (= 2020.01.13.00) 126 | - glog 127 | - React-Core/Default 128 | - React-cxxreact (= 0.63.4) 129 | - React-jsi (= 0.63.4) 130 | - React-jsiexecutor (= 0.63.4) 131 | - Yoga 132 | - React-Core/RCTAnimationHeaders (0.63.4): 133 | - Folly (= 2020.01.13.00) 134 | - glog 135 | - React-Core/Default 136 | - React-cxxreact (= 0.63.4) 137 | - React-jsi (= 0.63.4) 138 | - React-jsiexecutor (= 0.63.4) 139 | - Yoga 140 | - React-Core/RCTBlobHeaders (0.63.4): 141 | - Folly (= 2020.01.13.00) 142 | - glog 143 | - React-Core/Default 144 | - React-cxxreact (= 0.63.4) 145 | - React-jsi (= 0.63.4) 146 | - React-jsiexecutor (= 0.63.4) 147 | - Yoga 148 | - React-Core/RCTImageHeaders (0.63.4): 149 | - Folly (= 2020.01.13.00) 150 | - glog 151 | - React-Core/Default 152 | - React-cxxreact (= 0.63.4) 153 | - React-jsi (= 0.63.4) 154 | - React-jsiexecutor (= 0.63.4) 155 | - Yoga 156 | - React-Core/RCTLinkingHeaders (0.63.4): 157 | - Folly (= 2020.01.13.00) 158 | - glog 159 | - React-Core/Default 160 | - React-cxxreact (= 0.63.4) 161 | - React-jsi (= 0.63.4) 162 | - React-jsiexecutor (= 0.63.4) 163 | - Yoga 164 | - React-Core/RCTNetworkHeaders (0.63.4): 165 | - Folly (= 2020.01.13.00) 166 | - glog 167 | - React-Core/Default 168 | - React-cxxreact (= 0.63.4) 169 | - React-jsi (= 0.63.4) 170 | - React-jsiexecutor (= 0.63.4) 171 | - Yoga 172 | - React-Core/RCTSettingsHeaders (0.63.4): 173 | - Folly (= 2020.01.13.00) 174 | - glog 175 | - React-Core/Default 176 | - React-cxxreact (= 0.63.4) 177 | - React-jsi (= 0.63.4) 178 | - React-jsiexecutor (= 0.63.4) 179 | - Yoga 180 | - React-Core/RCTTextHeaders (0.63.4): 181 | - Folly (= 2020.01.13.00) 182 | - glog 183 | - React-Core/Default 184 | - React-cxxreact (= 0.63.4) 185 | - React-jsi (= 0.63.4) 186 | - React-jsiexecutor (= 0.63.4) 187 | - Yoga 188 | - React-Core/RCTVibrationHeaders (0.63.4): 189 | - Folly (= 2020.01.13.00) 190 | - glog 191 | - React-Core/Default 192 | - React-cxxreact (= 0.63.4) 193 | - React-jsi (= 0.63.4) 194 | - React-jsiexecutor (= 0.63.4) 195 | - Yoga 196 | - React-Core/RCTWebSocket (0.63.4): 197 | - Folly (= 2020.01.13.00) 198 | - glog 199 | - React-Core/Default (= 0.63.4) 200 | - React-cxxreact (= 0.63.4) 201 | - React-jsi (= 0.63.4) 202 | - React-jsiexecutor (= 0.63.4) 203 | - Yoga 204 | - React-CoreModules (0.63.4): 205 | - FBReactNativeSpec (= 0.63.4) 206 | - Folly (= 2020.01.13.00) 207 | - RCTTypeSafety (= 0.63.4) 208 | - React-Core/CoreModulesHeaders (= 0.63.4) 209 | - React-jsi (= 0.63.4) 210 | - React-RCTImage (= 0.63.4) 211 | - ReactCommon/turbomodule/core (= 0.63.4) 212 | - React-cxxreact (0.63.4): 213 | - boost-for-react-native (= 1.63.0) 214 | - DoubleConversion 215 | - Folly (= 2020.01.13.00) 216 | - glog 217 | - React-callinvoker (= 0.63.4) 218 | - React-jsinspector (= 0.63.4) 219 | - React-jsi (0.63.4): 220 | - boost-for-react-native (= 1.63.0) 221 | - DoubleConversion 222 | - Folly (= 2020.01.13.00) 223 | - glog 224 | - React-jsi/Default (= 0.63.4) 225 | - React-jsi/Default (0.63.4): 226 | - boost-for-react-native (= 1.63.0) 227 | - DoubleConversion 228 | - Folly (= 2020.01.13.00) 229 | - glog 230 | - React-jsiexecutor (0.63.4): 231 | - DoubleConversion 232 | - Folly (= 2020.01.13.00) 233 | - glog 234 | - React-cxxreact (= 0.63.4) 235 | - React-jsi (= 0.63.4) 236 | - React-jsinspector (0.63.4) 237 | - React-RCTActionSheet (0.63.4): 238 | - React-Core/RCTActionSheetHeaders (= 0.63.4) 239 | - React-RCTAnimation (0.63.4): 240 | - FBReactNativeSpec (= 0.63.4) 241 | - Folly (= 2020.01.13.00) 242 | - RCTTypeSafety (= 0.63.4) 243 | - React-Core/RCTAnimationHeaders (= 0.63.4) 244 | - React-jsi (= 0.63.4) 245 | - ReactCommon/turbomodule/core (= 0.63.4) 246 | - React-RCTBlob (0.63.4): 247 | - FBReactNativeSpec (= 0.63.4) 248 | - Folly (= 2020.01.13.00) 249 | - React-Core/RCTBlobHeaders (= 0.63.4) 250 | - React-Core/RCTWebSocket (= 0.63.4) 251 | - React-jsi (= 0.63.4) 252 | - React-RCTNetwork (= 0.63.4) 253 | - ReactCommon/turbomodule/core (= 0.63.4) 254 | - React-RCTImage (0.63.4): 255 | - FBReactNativeSpec (= 0.63.4) 256 | - Folly (= 2020.01.13.00) 257 | - RCTTypeSafety (= 0.63.4) 258 | - React-Core/RCTImageHeaders (= 0.63.4) 259 | - React-jsi (= 0.63.4) 260 | - React-RCTNetwork (= 0.63.4) 261 | - ReactCommon/turbomodule/core (= 0.63.4) 262 | - React-RCTLinking (0.63.4): 263 | - FBReactNativeSpec (= 0.63.4) 264 | - React-Core/RCTLinkingHeaders (= 0.63.4) 265 | - React-jsi (= 0.63.4) 266 | - ReactCommon/turbomodule/core (= 0.63.4) 267 | - React-RCTNetwork (0.63.4): 268 | - FBReactNativeSpec (= 0.63.4) 269 | - Folly (= 2020.01.13.00) 270 | - RCTTypeSafety (= 0.63.4) 271 | - React-Core/RCTNetworkHeaders (= 0.63.4) 272 | - React-jsi (= 0.63.4) 273 | - ReactCommon/turbomodule/core (= 0.63.4) 274 | - React-RCTSettings (0.63.4): 275 | - FBReactNativeSpec (= 0.63.4) 276 | - Folly (= 2020.01.13.00) 277 | - RCTTypeSafety (= 0.63.4) 278 | - React-Core/RCTSettingsHeaders (= 0.63.4) 279 | - React-jsi (= 0.63.4) 280 | - ReactCommon/turbomodule/core (= 0.63.4) 281 | - React-RCTText (0.63.4): 282 | - React-Core/RCTTextHeaders (= 0.63.4) 283 | - React-RCTVibration (0.63.4): 284 | - FBReactNativeSpec (= 0.63.4) 285 | - Folly (= 2020.01.13.00) 286 | - React-Core/RCTVibrationHeaders (= 0.63.4) 287 | - React-jsi (= 0.63.4) 288 | - ReactCommon/turbomodule/core (= 0.63.4) 289 | - ReactCommon/turbomodule/core (0.63.4): 290 | - DoubleConversion 291 | - Folly (= 2020.01.13.00) 292 | - glog 293 | - React-callinvoker (= 0.63.4) 294 | - React-Core (= 0.63.4) 295 | - React-cxxreact (= 0.63.4) 296 | - React-jsi (= 0.63.4) 297 | - RNReactNativeSharedGroupPreferences (1.1.21): 298 | - React 299 | - Yoga (1.14.0) 300 | - YogaKit (1.18.1): 301 | - Yoga (~> 1.14) 302 | 303 | DEPENDENCIES: 304 | - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) 305 | - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) 306 | - FBReactNativeSpec (from `../node_modules/react-native/Libraries/FBReactNativeSpec`) 307 | - Flipper (= 0.74.0) 308 | - Flipper-DoubleConversion (= 1.1.7) 309 | - Flipper-Folly (~> 2.2) 310 | - Flipper-Glog (= 0.3.6) 311 | - Flipper-PeerTalk (~> 0.0.4) 312 | - Flipper-RSocket (~> 1.1) 313 | - FlipperKit (= 0.74.0) 314 | - FlipperKit/Core (= 0.74.0) 315 | - FlipperKit/CppBridge (= 0.74.0) 316 | - FlipperKit/FBCxxFollyDynamicConvert (= 0.74.0) 317 | - FlipperKit/FBDefines (= 0.74.0) 318 | - FlipperKit/FKPortForwarding (= 0.74.0) 319 | - FlipperKit/FlipperKitHighlightOverlay (= 0.74.0) 320 | - FlipperKit/FlipperKitLayoutPlugin (= 0.74.0) 321 | - FlipperKit/FlipperKitLayoutTextSearchable (= 0.74.0) 322 | - FlipperKit/FlipperKitNetworkPlugin (= 0.74.0) 323 | - FlipperKit/FlipperKitReactPlugin (= 0.74.0) 324 | - FlipperKit/FlipperKitUserDefaultsPlugin (= 0.74.0) 325 | - FlipperKit/SKIOSNetworkPlugin (= 0.74.0) 326 | - Folly (from `../node_modules/react-native/third-party-podspecs/Folly.podspec`) 327 | - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) 328 | - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) 329 | - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) 330 | - React (from `../node_modules/react-native/`) 331 | - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`) 332 | - React-Core (from `../node_modules/react-native/`) 333 | - React-Core/DevSupport (from `../node_modules/react-native/`) 334 | - React-Core/RCTWebSocket (from `../node_modules/react-native/`) 335 | - React-CoreModules (from `../node_modules/react-native/React/CoreModules`) 336 | - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) 337 | - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) 338 | - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) 339 | - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`) 340 | - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) 341 | - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) 342 | - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) 343 | - React-RCTImage (from `../node_modules/react-native/Libraries/Image`) 344 | - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`) 345 | - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`) 346 | - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`) 347 | - React-RCTText (from `../node_modules/react-native/Libraries/Text`) 348 | - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) 349 | - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) 350 | - RNReactNativeSharedGroupPreferences (from `../node_modules/react-native-shared-group-preferences`) 351 | - Yoga (from `../node_modules/react-native/ReactCommon/yoga`) 352 | 353 | SPEC REPOS: 354 | trunk: 355 | - boost-for-react-native 356 | - CocoaAsyncSocket 357 | - Flipper 358 | - Flipper-DoubleConversion 359 | - Flipper-Folly 360 | - Flipper-Glog 361 | - Flipper-PeerTalk 362 | - Flipper-RSocket 363 | - FlipperKit 364 | - libevent 365 | - OpenSSL-Universal 366 | - YogaKit 367 | 368 | EXTERNAL SOURCES: 369 | DoubleConversion: 370 | :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" 371 | FBLazyVector: 372 | :path: "../node_modules/react-native/Libraries/FBLazyVector" 373 | FBReactNativeSpec: 374 | :path: "../node_modules/react-native/Libraries/FBReactNativeSpec" 375 | Folly: 376 | :podspec: "../node_modules/react-native/third-party-podspecs/Folly.podspec" 377 | glog: 378 | :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" 379 | RCTRequired: 380 | :path: "../node_modules/react-native/Libraries/RCTRequired" 381 | RCTTypeSafety: 382 | :path: "../node_modules/react-native/Libraries/TypeSafety" 383 | React: 384 | :path: "../node_modules/react-native/" 385 | React-callinvoker: 386 | :path: "../node_modules/react-native/ReactCommon/callinvoker" 387 | React-Core: 388 | :path: "../node_modules/react-native/" 389 | React-CoreModules: 390 | :path: "../node_modules/react-native/React/CoreModules" 391 | React-cxxreact: 392 | :path: "../node_modules/react-native/ReactCommon/cxxreact" 393 | React-jsi: 394 | :path: "../node_modules/react-native/ReactCommon/jsi" 395 | React-jsiexecutor: 396 | :path: "../node_modules/react-native/ReactCommon/jsiexecutor" 397 | React-jsinspector: 398 | :path: "../node_modules/react-native/ReactCommon/jsinspector" 399 | React-RCTActionSheet: 400 | :path: "../node_modules/react-native/Libraries/ActionSheetIOS" 401 | React-RCTAnimation: 402 | :path: "../node_modules/react-native/Libraries/NativeAnimation" 403 | React-RCTBlob: 404 | :path: "../node_modules/react-native/Libraries/Blob" 405 | React-RCTImage: 406 | :path: "../node_modules/react-native/Libraries/Image" 407 | React-RCTLinking: 408 | :path: "../node_modules/react-native/Libraries/LinkingIOS" 409 | React-RCTNetwork: 410 | :path: "../node_modules/react-native/Libraries/Network" 411 | React-RCTSettings: 412 | :path: "../node_modules/react-native/Libraries/Settings" 413 | React-RCTText: 414 | :path: "../node_modules/react-native/Libraries/Text" 415 | React-RCTVibration: 416 | :path: "../node_modules/react-native/Libraries/Vibration" 417 | ReactCommon: 418 | :path: "../node_modules/react-native/ReactCommon" 419 | RNReactNativeSharedGroupPreferences: 420 | :path: "../node_modules/react-native-shared-group-preferences" 421 | Yoga: 422 | :path: "../node_modules/react-native/ReactCommon/yoga" 423 | 424 | SPEC CHECKSUMS: 425 | boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c 426 | CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 427 | DoubleConversion: cde416483dac037923206447da6e1454df403714 428 | FBLazyVector: 3bb422f41b18121b71783a905c10e58606f7dc3e 429 | FBReactNativeSpec: f2c97f2529dd79c083355182cc158c9f98f4bd6e 430 | Flipper: c1ad50344bffdce628b1906b48f6e7cd06724236 431 | Flipper-DoubleConversion: 38631e41ef4f9b12861c67d17cb5518d06badc41 432 | Flipper-Folly: f7a3caafbd74bda4827954fd7a6e000e36355489 433 | Flipper-Glog: 1dfd6abf1e922806c52ceb8701a3599a79a200a6 434 | Flipper-PeerTalk: 116d8f857dc6ef55c7a5a75ea3ceaafe878aadc9 435 | Flipper-RSocket: 602921fee03edacf18f5d6f3d3594ba477f456e5 436 | FlipperKit: f42987ea58737ac0fb3fbc38f8e703452ba56940 437 | Folly: b73c3869541e86821df3c387eb0af5f65addfab4 438 | glog: 40a13f7840415b9a77023fbcae0f1e6f43192af3 439 | libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 440 | OpenSSL-Universal: 1aa4f6a6ee7256b83db99ec1ccdaa80d10f9af9b 441 | RCTRequired: 082f10cd3f905d6c124597fd1c14f6f2655ff65e 442 | RCTTypeSafety: 8c9c544ecbf20337d069e4ae7fd9a377aadf504b 443 | React: b0a957a2c44da4113b0c4c9853d8387f8e64e615 444 | React-callinvoker: c3f44dd3cb195b6aa46621fff95ded79d59043fe 445 | React-Core: d3b2a1ac9a2c13c3bcde712d9281fc1c8a5b315b 446 | React-CoreModules: 0581ff36cb797da0943d424f69e7098e43e9be60 447 | React-cxxreact: c1480d4fda5720086c90df537ee7d285d4c57ac3 448 | React-jsi: a0418934cf48f25b485631deb27c64dc40fb4c31 449 | React-jsiexecutor: 93bd528844ad21dc07aab1c67cb10abae6df6949 450 | React-jsinspector: 58aef7155bc9a9683f5b60b35eccea8722a4f53a 451 | React-RCTActionSheet: 89a0ca9f4a06c1f93c26067af074ccdce0f40336 452 | React-RCTAnimation: 1bde3ecc0c104c55df246eda516e0deb03c4e49b 453 | React-RCTBlob: a97d378b527740cc667e03ebfa183a75231ab0f0 454 | React-RCTImage: c1b1f2d3f43a4a528c8946d6092384b5c880d2f0 455 | React-RCTLinking: 35ae4ab9dc0410d1fcbdce4d7623194a27214fb2 456 | React-RCTNetwork: 29ec2696f8d8cfff7331fac83d3e893c95ef43ae 457 | React-RCTSettings: 60f0691bba2074ef394f95d4c2265ec284e0a46a 458 | React-RCTText: 5c51df3f08cb9dedc6e790161195d12bac06101c 459 | React-RCTVibration: ae4f914cfe8de7d4de95ae1ea6cc8f6315d73d9d 460 | ReactCommon: 73d79c7039f473b76db6ff7c6b159c478acbbb3b 461 | RNReactNativeSharedGroupPreferences: 13d85beb69c8005ff5ec93a5abf5dde5dafb9767 462 | Yoga: 4bd86afe9883422a7c4028c00e34790f560923d6 463 | YogaKit: f782866e155069a2cca2517aafea43200b01fd5a 464 | 465 | PODFILE CHECKSUM: 2dc9b8a1c4366ba71ffa3a6017423497224edbe7 466 | 467 | COCOAPODS: 1.10.1 468 | -------------------------------------------------------------------------------- /ios/ReactNativeWidget-tvOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 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 | NSAppTransportSecurity 26 | 27 | NSExceptionDomains 28 | 29 | localhost 30 | 31 | NSExceptionAllowsInsecureHTTPLoads 32 | 33 | 34 | 35 | 36 | NSLocationWhenInUseUsageDescription 37 | 38 | UILaunchStoryboardName 39 | LaunchScreen 40 | UIRequiredDeviceCapabilities 41 | 42 | armv7 43 | 44 | UISupportedInterfaceOrientations 45 | 46 | UIInterfaceOrientationPortrait 47 | UIInterfaceOrientationLandscapeLeft 48 | UIInterfaceOrientationLandscapeRight 49 | 50 | UIViewControllerBasedStatusBarAppearance 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /ios/ReactNativeWidget-tvOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 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/ReactNativeWidget.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00E356F31AD99517003FC87E /* ReactNativeWidgetTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ReactNativeWidgetTests.m */; }; 11 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 12 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 13 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 14 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 15 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 16 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 17 | 2DCD954D1E0B4F2C00145EB5 /* ReactNativeWidgetTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ReactNativeWidgetTests.m */; }; 18 | 67826B7886BC2730D07E7790 /* libPods-ReactNativeWidget-ReactNativeWidgetTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0EC2486BFDFFA0187772D97B /* libPods-ReactNativeWidget-ReactNativeWidgetTests.a */; }; 19 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; 20 | 9CCB44956CF868A742A29780 /* libPods-ReactNativeWidget.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 9E7479ADC3869C57F856E72D /* libPods-ReactNativeWidget.a */; }; 21 | D432BD40811CCDA10897CED8 /* libPods-ReactNativeWidget-tvOSTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1EDCCA13E4DB030042A86314 /* libPods-ReactNativeWidget-tvOSTests.a */; }; 22 | D9F693EB25F2937B001EADC1 /* WidgetKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D9F692EB25F28371001EADC1 /* WidgetKit.framework */; }; 23 | D9F693EC25F2937B001EADC1 /* SwiftUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D9F692ED25F28371001EADC1 /* SwiftUI.framework */; }; 24 | D9F693EF25F2937B001EADC1 /* WidgetTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = D9F693EE25F2937B001EADC1 /* WidgetTest.swift */; }; 25 | D9F693F225F2937C001EADC1 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D9F693F125F2937C001EADC1 /* Assets.xcassets */; }; 26 | D9F693F425F2937C001EADC1 /* WidgetTest.intentdefinition in Sources */ = {isa = PBXBuildFile; fileRef = D9F693F025F2937B001EADC1 /* WidgetTest.intentdefinition */; }; 27 | D9F693F525F2937C001EADC1 /* WidgetTest.intentdefinition in Sources */ = {isa = PBXBuildFile; fileRef = D9F693F025F2937B001EADC1 /* WidgetTest.intentdefinition */; }; 28 | D9F693F825F2937C001EADC1 /* WidgetTestExtension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = D9F693EA25F2937B001EADC1 /* WidgetTestExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; 29 | DABF226F9E8888B37EFA82E4 /* libPods-ReactNativeWidget-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00A017359FABF124B2D6FF9E /* libPods-ReactNativeWidget-tvOS.a */; }; 30 | /* End PBXBuildFile section */ 31 | 32 | /* Begin PBXContainerItemProxy section */ 33 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 34 | isa = PBXContainerItemProxy; 35 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 36 | proxyType = 1; 37 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 38 | remoteInfo = ReactNativeWidget; 39 | }; 40 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 41 | isa = PBXContainerItemProxy; 42 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 43 | proxyType = 1; 44 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 45 | remoteInfo = "ReactNativeWidget-tvOS"; 46 | }; 47 | D9F693F625F2937C001EADC1 /* PBXContainerItemProxy */ = { 48 | isa = PBXContainerItemProxy; 49 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 50 | proxyType = 1; 51 | remoteGlobalIDString = D9F693E925F2937B001EADC1; 52 | remoteInfo = WidgetTestExtension; 53 | }; 54 | /* End PBXContainerItemProxy section */ 55 | 56 | /* Begin PBXCopyFilesBuildPhase section */ 57 | D9F692FE25F28372001EADC1 /* Embed App Extensions */ = { 58 | isa = PBXCopyFilesBuildPhase; 59 | buildActionMask = 2147483647; 60 | dstPath = ""; 61 | dstSubfolderSpec = 13; 62 | files = ( 63 | D9F693F825F2937C001EADC1 /* WidgetTestExtension.appex in Embed App Extensions */, 64 | ); 65 | name = "Embed App Extensions"; 66 | runOnlyForDeploymentPostprocessing = 0; 67 | }; 68 | /* End PBXCopyFilesBuildPhase section */ 69 | 70 | /* Begin PBXFileReference section */ 71 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 72 | 00A017359FABF124B2D6FF9E /* libPods-ReactNativeWidget-tvOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeWidget-tvOS.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 73 | 00E356EE1AD99517003FC87E /* ReactNativeWidgetTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ReactNativeWidgetTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 74 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 75 | 00E356F21AD99517003FC87E /* ReactNativeWidgetTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ReactNativeWidgetTests.m; sourceTree = ""; }; 76 | 05376F352D964EB6F31BA6C0 /* Pods-ReactNativeWidget-tvOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeWidget-tvOS.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeWidget-tvOS/Pods-ReactNativeWidget-tvOS.debug.xcconfig"; sourceTree = ""; }; 77 | 0EC2486BFDFFA0187772D97B /* libPods-ReactNativeWidget-ReactNativeWidgetTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeWidget-ReactNativeWidgetTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 78 | 13B07F961A680F5B00A75B9A /* ReactNativeWidget.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ReactNativeWidget.app; sourceTree = BUILT_PRODUCTS_DIR; }; 79 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = ReactNativeWidget/AppDelegate.h; sourceTree = ""; }; 80 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = ReactNativeWidget/AppDelegate.m; sourceTree = ""; }; 81 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = ReactNativeWidget/Images.xcassets; sourceTree = ""; }; 82 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = ReactNativeWidget/Info.plist; sourceTree = ""; }; 83 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = ReactNativeWidget/main.m; sourceTree = ""; }; 84 | 1EDCCA13E4DB030042A86314 /* libPods-ReactNativeWidget-tvOSTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeWidget-tvOSTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 85 | 27BEF26B0E87F1EA43F6EE2B /* Pods-ReactNativeWidget-ReactNativeWidgetTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeWidget-ReactNativeWidgetTests.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeWidget-ReactNativeWidgetTests/Pods-ReactNativeWidget-ReactNativeWidgetTests.debug.xcconfig"; sourceTree = ""; }; 86 | 2D02E47B1E0B4A5D006451C7 /* ReactNativeWidget-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ReactNativeWidget-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 87 | 2D02E4901E0B4A5D006451C7 /* ReactNativeWidget-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "ReactNativeWidget-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 88 | 3754F4FC36F8021D461CEB6A /* Pods-ReactNativeWidget-ReactNativeWidgetTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeWidget-ReactNativeWidgetTests.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeWidget-ReactNativeWidgetTests/Pods-ReactNativeWidget-ReactNativeWidgetTests.release.xcconfig"; sourceTree = ""; }; 89 | 79FE3405F7B2508C94D0C666 /* Pods-ReactNativeWidget.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeWidget.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeWidget/Pods-ReactNativeWidget.release.xcconfig"; sourceTree = ""; }; 90 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = ReactNativeWidget/LaunchScreen.storyboard; sourceTree = ""; }; 91 | 887E06AC32E779B07157F2A5 /* Pods-ReactNativeWidget.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeWidget.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeWidget/Pods-ReactNativeWidget.debug.xcconfig"; sourceTree = ""; }; 92 | 9E7479ADC3869C57F856E72D /* libPods-ReactNativeWidget.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeWidget.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 93 | A42DD1DEDAF2CD291AA96682 /* Pods-ReactNativeWidget-tvOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeWidget-tvOS.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeWidget-tvOS/Pods-ReactNativeWidget-tvOS.release.xcconfig"; sourceTree = ""; }; 94 | D9F692EB25F28371001EADC1 /* WidgetKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WidgetKit.framework; path = System/Library/Frameworks/WidgetKit.framework; sourceTree = SDKROOT; }; 95 | D9F692ED25F28371001EADC1 /* SwiftUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SwiftUI.framework; path = System/Library/Frameworks/SwiftUI.framework; sourceTree = SDKROOT; }; 96 | D9F693EA25F2937B001EADC1 /* WidgetTestExtension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = WidgetTestExtension.appex; sourceTree = BUILT_PRODUCTS_DIR; }; 97 | D9F693EE25F2937B001EADC1 /* WidgetTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WidgetTest.swift; sourceTree = ""; }; 98 | D9F693F025F2937B001EADC1 /* WidgetTest.intentdefinition */ = {isa = PBXFileReference; lastKnownFileType = file.intentdefinition; path = WidgetTest.intentdefinition; sourceTree = ""; }; 99 | D9F693F125F2937C001EADC1 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 100 | D9F693F325F2937C001EADC1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 101 | D9F6940625F29858001EADC1 /* WidgetTestExtension.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = WidgetTestExtension.entitlements; sourceTree = ""; }; 102 | D9F6940725F29898001EADC1 /* ReactNativeWidget.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; name = ReactNativeWidget.entitlements; path = ReactNativeWidget/ReactNativeWidget.entitlements; sourceTree = ""; }; 103 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 104 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; }; 105 | F5B2BF1E1A2A5B8CA625DA93 /* Pods-ReactNativeWidget-tvOSTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeWidget-tvOSTests.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeWidget-tvOSTests/Pods-ReactNativeWidget-tvOSTests.release.xcconfig"; sourceTree = ""; }; 106 | F84A49ED3E653E4661295485 /* Pods-ReactNativeWidget-tvOSTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeWidget-tvOSTests.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeWidget-tvOSTests/Pods-ReactNativeWidget-tvOSTests.debug.xcconfig"; sourceTree = ""; }; 107 | /* End PBXFileReference section */ 108 | 109 | /* Begin PBXFrameworksBuildPhase section */ 110 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 111 | isa = PBXFrameworksBuildPhase; 112 | buildActionMask = 2147483647; 113 | files = ( 114 | 67826B7886BC2730D07E7790 /* libPods-ReactNativeWidget-ReactNativeWidgetTests.a in Frameworks */, 115 | ); 116 | runOnlyForDeploymentPostprocessing = 0; 117 | }; 118 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 119 | isa = PBXFrameworksBuildPhase; 120 | buildActionMask = 2147483647; 121 | files = ( 122 | 9CCB44956CF868A742A29780 /* libPods-ReactNativeWidget.a in Frameworks */, 123 | ); 124 | runOnlyForDeploymentPostprocessing = 0; 125 | }; 126 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 127 | isa = PBXFrameworksBuildPhase; 128 | buildActionMask = 2147483647; 129 | files = ( 130 | DABF226F9E8888B37EFA82E4 /* libPods-ReactNativeWidget-tvOS.a in Frameworks */, 131 | ); 132 | runOnlyForDeploymentPostprocessing = 0; 133 | }; 134 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 135 | isa = PBXFrameworksBuildPhase; 136 | buildActionMask = 2147483647; 137 | files = ( 138 | D432BD40811CCDA10897CED8 /* libPods-ReactNativeWidget-tvOSTests.a in Frameworks */, 139 | ); 140 | runOnlyForDeploymentPostprocessing = 0; 141 | }; 142 | D9F693E725F2937B001EADC1 /* Frameworks */ = { 143 | isa = PBXFrameworksBuildPhase; 144 | buildActionMask = 2147483647; 145 | files = ( 146 | D9F693EC25F2937B001EADC1 /* SwiftUI.framework in Frameworks */, 147 | D9F693EB25F2937B001EADC1 /* WidgetKit.framework in Frameworks */, 148 | ); 149 | runOnlyForDeploymentPostprocessing = 0; 150 | }; 151 | /* End PBXFrameworksBuildPhase section */ 152 | 153 | /* Begin PBXGroup section */ 154 | 00E356EF1AD99517003FC87E /* ReactNativeWidgetTests */ = { 155 | isa = PBXGroup; 156 | children = ( 157 | 00E356F21AD99517003FC87E /* ReactNativeWidgetTests.m */, 158 | 00E356F01AD99517003FC87E /* Supporting Files */, 159 | ); 160 | path = ReactNativeWidgetTests; 161 | sourceTree = ""; 162 | }; 163 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 164 | isa = PBXGroup; 165 | children = ( 166 | 00E356F11AD99517003FC87E /* Info.plist */, 167 | ); 168 | name = "Supporting Files"; 169 | sourceTree = ""; 170 | }; 171 | 13B07FAE1A68108700A75B9A /* ReactNativeWidget */ = { 172 | isa = PBXGroup; 173 | children = ( 174 | D9F6940725F29898001EADC1 /* ReactNativeWidget.entitlements */, 175 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 176 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 177 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 178 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 179 | 13B07FB61A68108700A75B9A /* Info.plist */, 180 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */, 181 | 13B07FB71A68108700A75B9A /* main.m */, 182 | ); 183 | name = ReactNativeWidget; 184 | sourceTree = ""; 185 | }; 186 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 187 | isa = PBXGroup; 188 | children = ( 189 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 190 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */, 191 | 9E7479ADC3869C57F856E72D /* libPods-ReactNativeWidget.a */, 192 | 0EC2486BFDFFA0187772D97B /* libPods-ReactNativeWidget-ReactNativeWidgetTests.a */, 193 | 00A017359FABF124B2D6FF9E /* libPods-ReactNativeWidget-tvOS.a */, 194 | 1EDCCA13E4DB030042A86314 /* libPods-ReactNativeWidget-tvOSTests.a */, 195 | D9F692EB25F28371001EADC1 /* WidgetKit.framework */, 196 | D9F692ED25F28371001EADC1 /* SwiftUI.framework */, 197 | ); 198 | name = Frameworks; 199 | sourceTree = ""; 200 | }; 201 | 7E05AEC853E983433C5A672F /* Pods */ = { 202 | isa = PBXGroup; 203 | children = ( 204 | 887E06AC32E779B07157F2A5 /* Pods-ReactNativeWidget.debug.xcconfig */, 205 | 79FE3405F7B2508C94D0C666 /* Pods-ReactNativeWidget.release.xcconfig */, 206 | 27BEF26B0E87F1EA43F6EE2B /* Pods-ReactNativeWidget-ReactNativeWidgetTests.debug.xcconfig */, 207 | 3754F4FC36F8021D461CEB6A /* Pods-ReactNativeWidget-ReactNativeWidgetTests.release.xcconfig */, 208 | 05376F352D964EB6F31BA6C0 /* Pods-ReactNativeWidget-tvOS.debug.xcconfig */, 209 | A42DD1DEDAF2CD291AA96682 /* Pods-ReactNativeWidget-tvOS.release.xcconfig */, 210 | F84A49ED3E653E4661295485 /* Pods-ReactNativeWidget-tvOSTests.debug.xcconfig */, 211 | F5B2BF1E1A2A5B8CA625DA93 /* Pods-ReactNativeWidget-tvOSTests.release.xcconfig */, 212 | ); 213 | path = Pods; 214 | sourceTree = ""; 215 | }; 216 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 217 | isa = PBXGroup; 218 | children = ( 219 | ); 220 | name = Libraries; 221 | sourceTree = ""; 222 | }; 223 | 83CBB9F61A601CBA00E9B192 = { 224 | isa = PBXGroup; 225 | children = ( 226 | D9F6940625F29858001EADC1 /* WidgetTestExtension.entitlements */, 227 | 13B07FAE1A68108700A75B9A /* ReactNativeWidget */, 228 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 229 | 00E356EF1AD99517003FC87E /* ReactNativeWidgetTests */, 230 | D9F693ED25F2937B001EADC1 /* WidgetTest */, 231 | 83CBBA001A601CBA00E9B192 /* Products */, 232 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 233 | 7E05AEC853E983433C5A672F /* Pods */, 234 | ); 235 | indentWidth = 2; 236 | sourceTree = ""; 237 | tabWidth = 2; 238 | usesTabs = 0; 239 | }; 240 | 83CBBA001A601CBA00E9B192 /* Products */ = { 241 | isa = PBXGroup; 242 | children = ( 243 | 13B07F961A680F5B00A75B9A /* ReactNativeWidget.app */, 244 | 00E356EE1AD99517003FC87E /* ReactNativeWidgetTests.xctest */, 245 | 2D02E47B1E0B4A5D006451C7 /* ReactNativeWidget-tvOS.app */, 246 | 2D02E4901E0B4A5D006451C7 /* ReactNativeWidget-tvOSTests.xctest */, 247 | D9F693EA25F2937B001EADC1 /* WidgetTestExtension.appex */, 248 | ); 249 | name = Products; 250 | sourceTree = ""; 251 | }; 252 | D9F693ED25F2937B001EADC1 /* WidgetTest */ = { 253 | isa = PBXGroup; 254 | children = ( 255 | D9F693EE25F2937B001EADC1 /* WidgetTest.swift */, 256 | D9F693F025F2937B001EADC1 /* WidgetTest.intentdefinition */, 257 | D9F693F125F2937C001EADC1 /* Assets.xcassets */, 258 | D9F693F325F2937C001EADC1 /* Info.plist */, 259 | ); 260 | path = WidgetTest; 261 | sourceTree = ""; 262 | }; 263 | /* End PBXGroup section */ 264 | 265 | /* Begin PBXNativeTarget section */ 266 | 00E356ED1AD99517003FC87E /* ReactNativeWidgetTests */ = { 267 | isa = PBXNativeTarget; 268 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ReactNativeWidgetTests" */; 269 | buildPhases = ( 270 | 998C7EE1603F4D31857C8BA3 /* [CP] Check Pods Manifest.lock */, 271 | 00E356EA1AD99517003FC87E /* Sources */, 272 | 00E356EB1AD99517003FC87E /* Frameworks */, 273 | 00E356EC1AD99517003FC87E /* Resources */, 274 | DAFAB1542A7D5C8CC7516131 /* [CP] Embed Pods Frameworks */, 275 | DB0D855AE59785F7BC6EA300 /* [CP] Copy Pods Resources */, 276 | ); 277 | buildRules = ( 278 | ); 279 | dependencies = ( 280 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 281 | ); 282 | name = ReactNativeWidgetTests; 283 | productName = ReactNativeWidgetTests; 284 | productReference = 00E356EE1AD99517003FC87E /* ReactNativeWidgetTests.xctest */; 285 | productType = "com.apple.product-type.bundle.unit-test"; 286 | }; 287 | 13B07F861A680F5B00A75B9A /* ReactNativeWidget */ = { 288 | isa = PBXNativeTarget; 289 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativeWidget" */; 290 | buildPhases = ( 291 | 2271E511105B6AF681D8B334 /* [CP] Check Pods Manifest.lock */, 292 | FD10A7F022414F080027D42C /* Start Packager */, 293 | 13B07F871A680F5B00A75B9A /* Sources */, 294 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 295 | 13B07F8E1A680F5B00A75B9A /* Resources */, 296 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 297 | 83E857ED90DA5BBC1369272B /* [CP] Embed Pods Frameworks */, 298 | ED41796A50189FDC4D4C819E /* [CP] Copy Pods Resources */, 299 | D9F692FE25F28372001EADC1 /* Embed App Extensions */, 300 | ); 301 | buildRules = ( 302 | ); 303 | dependencies = ( 304 | D9F693F725F2937C001EADC1 /* PBXTargetDependency */, 305 | ); 306 | name = ReactNativeWidget; 307 | productName = ReactNativeWidget; 308 | productReference = 13B07F961A680F5B00A75B9A /* ReactNativeWidget.app */; 309 | productType = "com.apple.product-type.application"; 310 | }; 311 | 2D02E47A1E0B4A5D006451C7 /* ReactNativeWidget-tvOS */ = { 312 | isa = PBXNativeTarget; 313 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ReactNativeWidget-tvOS" */; 314 | buildPhases = ( 315 | 52E082D1CB88C99326AF1D58 /* [CP] Check Pods Manifest.lock */, 316 | FD10A7F122414F3F0027D42C /* Start Packager */, 317 | 2D02E4771E0B4A5D006451C7 /* Sources */, 318 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 319 | 2D02E4791E0B4A5D006451C7 /* Resources */, 320 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 321 | ); 322 | buildRules = ( 323 | ); 324 | dependencies = ( 325 | ); 326 | name = "ReactNativeWidget-tvOS"; 327 | productName = "ReactNativeWidget-tvOS"; 328 | productReference = 2D02E47B1E0B4A5D006451C7 /* ReactNativeWidget-tvOS.app */; 329 | productType = "com.apple.product-type.application"; 330 | }; 331 | 2D02E48F1E0B4A5D006451C7 /* ReactNativeWidget-tvOSTests */ = { 332 | isa = PBXNativeTarget; 333 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ReactNativeWidget-tvOSTests" */; 334 | buildPhases = ( 335 | A76E303D2C06285971F4CC06 /* [CP] Check Pods Manifest.lock */, 336 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 337 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 338 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 339 | ); 340 | buildRules = ( 341 | ); 342 | dependencies = ( 343 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 344 | ); 345 | name = "ReactNativeWidget-tvOSTests"; 346 | productName = "ReactNativeWidget-tvOSTests"; 347 | productReference = 2D02E4901E0B4A5D006451C7 /* ReactNativeWidget-tvOSTests.xctest */; 348 | productType = "com.apple.product-type.bundle.unit-test"; 349 | }; 350 | D9F693E925F2937B001EADC1 /* WidgetTestExtension */ = { 351 | isa = PBXNativeTarget; 352 | buildConfigurationList = D9F693F925F2937C001EADC1 /* Build configuration list for PBXNativeTarget "WidgetTestExtension" */; 353 | buildPhases = ( 354 | D9F693E625F2937B001EADC1 /* Sources */, 355 | D9F693E725F2937B001EADC1 /* Frameworks */, 356 | D9F693E825F2937B001EADC1 /* Resources */, 357 | ); 358 | buildRules = ( 359 | ); 360 | dependencies = ( 361 | ); 362 | name = WidgetTestExtension; 363 | productName = WidgetTestExtension; 364 | productReference = D9F693EA25F2937B001EADC1 /* WidgetTestExtension.appex */; 365 | productType = "com.apple.product-type.app-extension"; 366 | }; 367 | /* End PBXNativeTarget section */ 368 | 369 | /* Begin PBXProject section */ 370 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 371 | isa = PBXProject; 372 | attributes = { 373 | LastSwiftUpdateCheck = 1240; 374 | LastUpgradeCheck = 1130; 375 | TargetAttributes = { 376 | 00E356ED1AD99517003FC87E = { 377 | CreatedOnToolsVersion = 6.2; 378 | TestTargetID = 13B07F861A680F5B00A75B9A; 379 | }; 380 | 13B07F861A680F5B00A75B9A = { 381 | DevelopmentTeam = AR77S4UN46; 382 | LastSwiftMigration = 1120; 383 | }; 384 | 2D02E47A1E0B4A5D006451C7 = { 385 | CreatedOnToolsVersion = 8.2.1; 386 | ProvisioningStyle = Automatic; 387 | }; 388 | 2D02E48F1E0B4A5D006451C7 = { 389 | CreatedOnToolsVersion = 8.2.1; 390 | ProvisioningStyle = Automatic; 391 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 392 | }; 393 | D9F693E925F2937B001EADC1 = { 394 | CreatedOnToolsVersion = 12.4; 395 | DevelopmentTeam = AR77S4UN46; 396 | ProvisioningStyle = Automatic; 397 | }; 398 | }; 399 | }; 400 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactNativeWidget" */; 401 | compatibilityVersion = "Xcode 3.2"; 402 | developmentRegion = en; 403 | hasScannedForEncodings = 0; 404 | knownRegions = ( 405 | en, 406 | Base, 407 | ); 408 | mainGroup = 83CBB9F61A601CBA00E9B192; 409 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 410 | projectDirPath = ""; 411 | projectRoot = ""; 412 | targets = ( 413 | 13B07F861A680F5B00A75B9A /* ReactNativeWidget */, 414 | 00E356ED1AD99517003FC87E /* ReactNativeWidgetTests */, 415 | 2D02E47A1E0B4A5D006451C7 /* ReactNativeWidget-tvOS */, 416 | 2D02E48F1E0B4A5D006451C7 /* ReactNativeWidget-tvOSTests */, 417 | D9F693E925F2937B001EADC1 /* WidgetTestExtension */, 418 | ); 419 | }; 420 | /* End PBXProject section */ 421 | 422 | /* Begin PBXResourcesBuildPhase section */ 423 | 00E356EC1AD99517003FC87E /* Resources */ = { 424 | isa = PBXResourcesBuildPhase; 425 | buildActionMask = 2147483647; 426 | files = ( 427 | ); 428 | runOnlyForDeploymentPostprocessing = 0; 429 | }; 430 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 431 | isa = PBXResourcesBuildPhase; 432 | buildActionMask = 2147483647; 433 | files = ( 434 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */, 435 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 436 | ); 437 | runOnlyForDeploymentPostprocessing = 0; 438 | }; 439 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 440 | isa = PBXResourcesBuildPhase; 441 | buildActionMask = 2147483647; 442 | files = ( 443 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 444 | ); 445 | runOnlyForDeploymentPostprocessing = 0; 446 | }; 447 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 448 | isa = PBXResourcesBuildPhase; 449 | buildActionMask = 2147483647; 450 | files = ( 451 | ); 452 | runOnlyForDeploymentPostprocessing = 0; 453 | }; 454 | D9F693E825F2937B001EADC1 /* Resources */ = { 455 | isa = PBXResourcesBuildPhase; 456 | buildActionMask = 2147483647; 457 | files = ( 458 | D9F693F225F2937C001EADC1 /* Assets.xcassets in Resources */, 459 | ); 460 | runOnlyForDeploymentPostprocessing = 0; 461 | }; 462 | /* End PBXResourcesBuildPhase section */ 463 | 464 | /* Begin PBXShellScriptBuildPhase section */ 465 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 466 | isa = PBXShellScriptBuildPhase; 467 | buildActionMask = 2147483647; 468 | files = ( 469 | ); 470 | inputPaths = ( 471 | ); 472 | name = "Bundle React Native code and images"; 473 | outputPaths = ( 474 | ); 475 | runOnlyForDeploymentPostprocessing = 0; 476 | shellPath = /bin/sh; 477 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 478 | }; 479 | 2271E511105B6AF681D8B334 /* [CP] Check Pods Manifest.lock */ = { 480 | isa = PBXShellScriptBuildPhase; 481 | buildActionMask = 2147483647; 482 | files = ( 483 | ); 484 | inputFileListPaths = ( 485 | ); 486 | inputPaths = ( 487 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 488 | "${PODS_ROOT}/Manifest.lock", 489 | ); 490 | name = "[CP] Check Pods Manifest.lock"; 491 | outputFileListPaths = ( 492 | ); 493 | outputPaths = ( 494 | "$(DERIVED_FILE_DIR)/Pods-ReactNativeWidget-checkManifestLockResult.txt", 495 | ); 496 | runOnlyForDeploymentPostprocessing = 0; 497 | shellPath = /bin/sh; 498 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 499 | showEnvVarsInLog = 0; 500 | }; 501 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 502 | isa = PBXShellScriptBuildPhase; 503 | buildActionMask = 2147483647; 504 | files = ( 505 | ); 506 | inputPaths = ( 507 | ); 508 | name = "Bundle React Native Code And Images"; 509 | outputPaths = ( 510 | ); 511 | runOnlyForDeploymentPostprocessing = 0; 512 | shellPath = /bin/sh; 513 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 514 | }; 515 | 52E082D1CB88C99326AF1D58 /* [CP] Check Pods Manifest.lock */ = { 516 | isa = PBXShellScriptBuildPhase; 517 | buildActionMask = 2147483647; 518 | files = ( 519 | ); 520 | inputFileListPaths = ( 521 | ); 522 | inputPaths = ( 523 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 524 | "${PODS_ROOT}/Manifest.lock", 525 | ); 526 | name = "[CP] Check Pods Manifest.lock"; 527 | outputFileListPaths = ( 528 | ); 529 | outputPaths = ( 530 | "$(DERIVED_FILE_DIR)/Pods-ReactNativeWidget-tvOS-checkManifestLockResult.txt", 531 | ); 532 | runOnlyForDeploymentPostprocessing = 0; 533 | shellPath = /bin/sh; 534 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 535 | showEnvVarsInLog = 0; 536 | }; 537 | 83E857ED90DA5BBC1369272B /* [CP] Embed Pods Frameworks */ = { 538 | isa = PBXShellScriptBuildPhase; 539 | buildActionMask = 2147483647; 540 | files = ( 541 | ); 542 | inputPaths = ( 543 | "${PODS_ROOT}/Target Support Files/Pods-ReactNativeWidget/Pods-ReactNativeWidget-frameworks.sh", 544 | "${PODS_XCFRAMEWORKS_BUILD_DIR}/OpenSSL/OpenSSL.framework/OpenSSL", 545 | ); 546 | name = "[CP] Embed Pods Frameworks"; 547 | outputPaths = ( 548 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/OpenSSL.framework", 549 | ); 550 | runOnlyForDeploymentPostprocessing = 0; 551 | shellPath = /bin/sh; 552 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeWidget/Pods-ReactNativeWidget-frameworks.sh\"\n"; 553 | showEnvVarsInLog = 0; 554 | }; 555 | 998C7EE1603F4D31857C8BA3 /* [CP] Check Pods Manifest.lock */ = { 556 | isa = PBXShellScriptBuildPhase; 557 | buildActionMask = 2147483647; 558 | files = ( 559 | ); 560 | inputFileListPaths = ( 561 | ); 562 | inputPaths = ( 563 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 564 | "${PODS_ROOT}/Manifest.lock", 565 | ); 566 | name = "[CP] Check Pods Manifest.lock"; 567 | outputFileListPaths = ( 568 | ); 569 | outputPaths = ( 570 | "$(DERIVED_FILE_DIR)/Pods-ReactNativeWidget-ReactNativeWidgetTests-checkManifestLockResult.txt", 571 | ); 572 | runOnlyForDeploymentPostprocessing = 0; 573 | shellPath = /bin/sh; 574 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 575 | showEnvVarsInLog = 0; 576 | }; 577 | A76E303D2C06285971F4CC06 /* [CP] Check Pods Manifest.lock */ = { 578 | isa = PBXShellScriptBuildPhase; 579 | buildActionMask = 2147483647; 580 | files = ( 581 | ); 582 | inputFileListPaths = ( 583 | ); 584 | inputPaths = ( 585 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 586 | "${PODS_ROOT}/Manifest.lock", 587 | ); 588 | name = "[CP] Check Pods Manifest.lock"; 589 | outputFileListPaths = ( 590 | ); 591 | outputPaths = ( 592 | "$(DERIVED_FILE_DIR)/Pods-ReactNativeWidget-tvOSTests-checkManifestLockResult.txt", 593 | ); 594 | runOnlyForDeploymentPostprocessing = 0; 595 | shellPath = /bin/sh; 596 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 597 | showEnvVarsInLog = 0; 598 | }; 599 | DAFAB1542A7D5C8CC7516131 /* [CP] Embed Pods Frameworks */ = { 600 | isa = PBXShellScriptBuildPhase; 601 | buildActionMask = 2147483647; 602 | files = ( 603 | ); 604 | inputPaths = ( 605 | "${PODS_ROOT}/Target Support Files/Pods-ReactNativeWidget-ReactNativeWidgetTests/Pods-ReactNativeWidget-ReactNativeWidgetTests-frameworks.sh", 606 | "${PODS_XCFRAMEWORKS_BUILD_DIR}/OpenSSL/OpenSSL.framework/OpenSSL", 607 | ); 608 | name = "[CP] Embed Pods Frameworks"; 609 | outputPaths = ( 610 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/OpenSSL.framework", 611 | ); 612 | runOnlyForDeploymentPostprocessing = 0; 613 | shellPath = /bin/sh; 614 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeWidget-ReactNativeWidgetTests/Pods-ReactNativeWidget-ReactNativeWidgetTests-frameworks.sh\"\n"; 615 | showEnvVarsInLog = 0; 616 | }; 617 | DB0D855AE59785F7BC6EA300 /* [CP] Copy Pods Resources */ = { 618 | isa = PBXShellScriptBuildPhase; 619 | buildActionMask = 2147483647; 620 | files = ( 621 | ); 622 | inputPaths = ( 623 | "${PODS_ROOT}/Target Support Files/Pods-ReactNativeWidget-ReactNativeWidgetTests/Pods-ReactNativeWidget-ReactNativeWidgetTests-resources.sh", 624 | "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle", 625 | ); 626 | name = "[CP] Copy Pods Resources"; 627 | outputPaths = ( 628 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle", 629 | ); 630 | runOnlyForDeploymentPostprocessing = 0; 631 | shellPath = /bin/sh; 632 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeWidget-ReactNativeWidgetTests/Pods-ReactNativeWidget-ReactNativeWidgetTests-resources.sh\"\n"; 633 | showEnvVarsInLog = 0; 634 | }; 635 | ED41796A50189FDC4D4C819E /* [CP] Copy Pods Resources */ = { 636 | isa = PBXShellScriptBuildPhase; 637 | buildActionMask = 2147483647; 638 | files = ( 639 | ); 640 | inputPaths = ( 641 | "${PODS_ROOT}/Target Support Files/Pods-ReactNativeWidget/Pods-ReactNativeWidget-resources.sh", 642 | "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle", 643 | ); 644 | name = "[CP] Copy Pods Resources"; 645 | outputPaths = ( 646 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle", 647 | ); 648 | runOnlyForDeploymentPostprocessing = 0; 649 | shellPath = /bin/sh; 650 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeWidget/Pods-ReactNativeWidget-resources.sh\"\n"; 651 | showEnvVarsInLog = 0; 652 | }; 653 | FD10A7F022414F080027D42C /* Start Packager */ = { 654 | isa = PBXShellScriptBuildPhase; 655 | buildActionMask = 2147483647; 656 | files = ( 657 | ); 658 | inputFileListPaths = ( 659 | ); 660 | inputPaths = ( 661 | ); 662 | name = "Start Packager"; 663 | outputFileListPaths = ( 664 | ); 665 | outputPaths = ( 666 | ); 667 | runOnlyForDeploymentPostprocessing = 0; 668 | shellPath = /bin/sh; 669 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; 670 | showEnvVarsInLog = 0; 671 | }; 672 | FD10A7F122414F3F0027D42C /* Start Packager */ = { 673 | isa = PBXShellScriptBuildPhase; 674 | buildActionMask = 2147483647; 675 | files = ( 676 | ); 677 | inputFileListPaths = ( 678 | ); 679 | inputPaths = ( 680 | ); 681 | name = "Start Packager"; 682 | outputFileListPaths = ( 683 | ); 684 | outputPaths = ( 685 | ); 686 | runOnlyForDeploymentPostprocessing = 0; 687 | shellPath = /bin/sh; 688 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; 689 | showEnvVarsInLog = 0; 690 | }; 691 | /* End PBXShellScriptBuildPhase section */ 692 | 693 | /* Begin PBXSourcesBuildPhase section */ 694 | 00E356EA1AD99517003FC87E /* Sources */ = { 695 | isa = PBXSourcesBuildPhase; 696 | buildActionMask = 2147483647; 697 | files = ( 698 | 00E356F31AD99517003FC87E /* ReactNativeWidgetTests.m in Sources */, 699 | ); 700 | runOnlyForDeploymentPostprocessing = 0; 701 | }; 702 | 13B07F871A680F5B00A75B9A /* Sources */ = { 703 | isa = PBXSourcesBuildPhase; 704 | buildActionMask = 2147483647; 705 | files = ( 706 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 707 | D9F693F525F2937C001EADC1 /* WidgetTest.intentdefinition in Sources */, 708 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 709 | ); 710 | runOnlyForDeploymentPostprocessing = 0; 711 | }; 712 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 713 | isa = PBXSourcesBuildPhase; 714 | buildActionMask = 2147483647; 715 | files = ( 716 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 717 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 718 | ); 719 | runOnlyForDeploymentPostprocessing = 0; 720 | }; 721 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 722 | isa = PBXSourcesBuildPhase; 723 | buildActionMask = 2147483647; 724 | files = ( 725 | 2DCD954D1E0B4F2C00145EB5 /* ReactNativeWidgetTests.m in Sources */, 726 | ); 727 | runOnlyForDeploymentPostprocessing = 0; 728 | }; 729 | D9F693E625F2937B001EADC1 /* Sources */ = { 730 | isa = PBXSourcesBuildPhase; 731 | buildActionMask = 2147483647; 732 | files = ( 733 | D9F693F425F2937C001EADC1 /* WidgetTest.intentdefinition in Sources */, 734 | D9F693EF25F2937B001EADC1 /* WidgetTest.swift in Sources */, 735 | ); 736 | runOnlyForDeploymentPostprocessing = 0; 737 | }; 738 | /* End PBXSourcesBuildPhase section */ 739 | 740 | /* Begin PBXTargetDependency section */ 741 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 742 | isa = PBXTargetDependency; 743 | target = 13B07F861A680F5B00A75B9A /* ReactNativeWidget */; 744 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 745 | }; 746 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 747 | isa = PBXTargetDependency; 748 | target = 2D02E47A1E0B4A5D006451C7 /* ReactNativeWidget-tvOS */; 749 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 750 | }; 751 | D9F693F725F2937C001EADC1 /* PBXTargetDependency */ = { 752 | isa = PBXTargetDependency; 753 | target = D9F693E925F2937B001EADC1 /* WidgetTestExtension */; 754 | targetProxy = D9F693F625F2937C001EADC1 /* PBXContainerItemProxy */; 755 | }; 756 | /* End PBXTargetDependency section */ 757 | 758 | /* Begin XCBuildConfiguration section */ 759 | 00E356F61AD99517003FC87E /* Debug */ = { 760 | isa = XCBuildConfiguration; 761 | baseConfigurationReference = 27BEF26B0E87F1EA43F6EE2B /* Pods-ReactNativeWidget-ReactNativeWidgetTests.debug.xcconfig */; 762 | buildSettings = { 763 | BUNDLE_LOADER = "$(TEST_HOST)"; 764 | GCC_PREPROCESSOR_DEFINITIONS = ( 765 | "DEBUG=1", 766 | "$(inherited)", 767 | ); 768 | INFOPLIST_FILE = ReactNativeWidgetTests/Info.plist; 769 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 770 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 771 | OTHER_LDFLAGS = ( 772 | "-ObjC", 773 | "-lc++", 774 | "$(inherited)", 775 | ); 776 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 777 | PRODUCT_NAME = "$(TARGET_NAME)"; 778 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativeWidget.app/ReactNativeWidget"; 779 | }; 780 | name = Debug; 781 | }; 782 | 00E356F71AD99517003FC87E /* Release */ = { 783 | isa = XCBuildConfiguration; 784 | baseConfigurationReference = 3754F4FC36F8021D461CEB6A /* Pods-ReactNativeWidget-ReactNativeWidgetTests.release.xcconfig */; 785 | buildSettings = { 786 | BUNDLE_LOADER = "$(TEST_HOST)"; 787 | COPY_PHASE_STRIP = NO; 788 | INFOPLIST_FILE = ReactNativeWidgetTests/Info.plist; 789 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 790 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 791 | OTHER_LDFLAGS = ( 792 | "-ObjC", 793 | "-lc++", 794 | "$(inherited)", 795 | ); 796 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 797 | PRODUCT_NAME = "$(TARGET_NAME)"; 798 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativeWidget.app/ReactNativeWidget"; 799 | }; 800 | name = Release; 801 | }; 802 | 13B07F941A680F5B00A75B9A /* Debug */ = { 803 | isa = XCBuildConfiguration; 804 | baseConfigurationReference = 887E06AC32E779B07157F2A5 /* Pods-ReactNativeWidget.debug.xcconfig */; 805 | buildSettings = { 806 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 807 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 808 | CLANG_ENABLE_MODULES = YES; 809 | CODE_SIGN_ENTITLEMENTS = ReactNativeWidget/ReactNativeWidget.entitlements; 810 | CURRENT_PROJECT_VERSION = 1; 811 | DEVELOPMENT_TEAM = AR77S4UN46; 812 | ENABLE_BITCODE = NO; 813 | INFOPLIST_FILE = ReactNativeWidget/Info.plist; 814 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 815 | OTHER_LDFLAGS = ( 816 | "$(inherited)", 817 | "-ObjC", 818 | "-lc++", 819 | ); 820 | PRODUCT_BUNDLE_IDENTIFIER = com.austinjones.ReactNativeWidget; 821 | PRODUCT_NAME = ReactNativeWidget; 822 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 823 | SWIFT_VERSION = 5.0; 824 | VERSIONING_SYSTEM = "apple-generic"; 825 | }; 826 | name = Debug; 827 | }; 828 | 13B07F951A680F5B00A75B9A /* Release */ = { 829 | isa = XCBuildConfiguration; 830 | baseConfigurationReference = 79FE3405F7B2508C94D0C666 /* Pods-ReactNativeWidget.release.xcconfig */; 831 | buildSettings = { 832 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 833 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 834 | CLANG_ENABLE_MODULES = YES; 835 | CODE_SIGN_ENTITLEMENTS = ReactNativeWidget/ReactNativeWidget.entitlements; 836 | CURRENT_PROJECT_VERSION = 1; 837 | DEVELOPMENT_TEAM = AR77S4UN46; 838 | INFOPLIST_FILE = ReactNativeWidget/Info.plist; 839 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 840 | OTHER_LDFLAGS = ( 841 | "$(inherited)", 842 | "-ObjC", 843 | "-lc++", 844 | ); 845 | PRODUCT_BUNDLE_IDENTIFIER = com.austinjones.ReactNativeWidget; 846 | PRODUCT_NAME = ReactNativeWidget; 847 | SWIFT_VERSION = 5.0; 848 | VERSIONING_SYSTEM = "apple-generic"; 849 | }; 850 | name = Release; 851 | }; 852 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 853 | isa = XCBuildConfiguration; 854 | baseConfigurationReference = 05376F352D964EB6F31BA6C0 /* Pods-ReactNativeWidget-tvOS.debug.xcconfig */; 855 | buildSettings = { 856 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 857 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 858 | CLANG_ANALYZER_NONNULL = YES; 859 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 860 | CLANG_WARN_INFINITE_RECURSION = YES; 861 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 862 | DEBUG_INFORMATION_FORMAT = dwarf; 863 | ENABLE_TESTABILITY = YES; 864 | GCC_NO_COMMON_BLOCKS = YES; 865 | INFOPLIST_FILE = "ReactNativeWidget-tvOS/Info.plist"; 866 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 867 | OTHER_LDFLAGS = ( 868 | "$(inherited)", 869 | "-ObjC", 870 | "-lc++", 871 | ); 872 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.ReactNativeWidget-tvOS"; 873 | PRODUCT_NAME = "$(TARGET_NAME)"; 874 | SDKROOT = appletvos; 875 | TARGETED_DEVICE_FAMILY = 3; 876 | TVOS_DEPLOYMENT_TARGET = 10.0; 877 | }; 878 | name = Debug; 879 | }; 880 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 881 | isa = XCBuildConfiguration; 882 | baseConfigurationReference = A42DD1DEDAF2CD291AA96682 /* Pods-ReactNativeWidget-tvOS.release.xcconfig */; 883 | buildSettings = { 884 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 885 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 886 | CLANG_ANALYZER_NONNULL = YES; 887 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 888 | CLANG_WARN_INFINITE_RECURSION = YES; 889 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 890 | COPY_PHASE_STRIP = NO; 891 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 892 | GCC_NO_COMMON_BLOCKS = YES; 893 | INFOPLIST_FILE = "ReactNativeWidget-tvOS/Info.plist"; 894 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 895 | OTHER_LDFLAGS = ( 896 | "$(inherited)", 897 | "-ObjC", 898 | "-lc++", 899 | ); 900 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.ReactNativeWidget-tvOS"; 901 | PRODUCT_NAME = "$(TARGET_NAME)"; 902 | SDKROOT = appletvos; 903 | TARGETED_DEVICE_FAMILY = 3; 904 | TVOS_DEPLOYMENT_TARGET = 10.0; 905 | }; 906 | name = Release; 907 | }; 908 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 909 | isa = XCBuildConfiguration; 910 | baseConfigurationReference = F84A49ED3E653E4661295485 /* Pods-ReactNativeWidget-tvOSTests.debug.xcconfig */; 911 | buildSettings = { 912 | BUNDLE_LOADER = "$(TEST_HOST)"; 913 | CLANG_ANALYZER_NONNULL = YES; 914 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 915 | CLANG_WARN_INFINITE_RECURSION = YES; 916 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 917 | DEBUG_INFORMATION_FORMAT = dwarf; 918 | ENABLE_TESTABILITY = YES; 919 | GCC_NO_COMMON_BLOCKS = YES; 920 | INFOPLIST_FILE = "ReactNativeWidget-tvOSTests/Info.plist"; 921 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 922 | OTHER_LDFLAGS = ( 923 | "$(inherited)", 924 | "-ObjC", 925 | "-lc++", 926 | ); 927 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.ReactNativeWidget-tvOSTests"; 928 | PRODUCT_NAME = "$(TARGET_NAME)"; 929 | SDKROOT = appletvos; 930 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativeWidget-tvOS.app/ReactNativeWidget-tvOS"; 931 | TVOS_DEPLOYMENT_TARGET = 10.1; 932 | }; 933 | name = Debug; 934 | }; 935 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 936 | isa = XCBuildConfiguration; 937 | baseConfigurationReference = F5B2BF1E1A2A5B8CA625DA93 /* Pods-ReactNativeWidget-tvOSTests.release.xcconfig */; 938 | buildSettings = { 939 | BUNDLE_LOADER = "$(TEST_HOST)"; 940 | CLANG_ANALYZER_NONNULL = YES; 941 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 942 | CLANG_WARN_INFINITE_RECURSION = YES; 943 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 944 | COPY_PHASE_STRIP = NO; 945 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 946 | GCC_NO_COMMON_BLOCKS = YES; 947 | INFOPLIST_FILE = "ReactNativeWidget-tvOSTests/Info.plist"; 948 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 949 | OTHER_LDFLAGS = ( 950 | "$(inherited)", 951 | "-ObjC", 952 | "-lc++", 953 | ); 954 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.ReactNativeWidget-tvOSTests"; 955 | PRODUCT_NAME = "$(TARGET_NAME)"; 956 | SDKROOT = appletvos; 957 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativeWidget-tvOS.app/ReactNativeWidget-tvOS"; 958 | TVOS_DEPLOYMENT_TARGET = 10.1; 959 | }; 960 | name = Release; 961 | }; 962 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 963 | isa = XCBuildConfiguration; 964 | buildSettings = { 965 | ALWAYS_SEARCH_USER_PATHS = NO; 966 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 967 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 968 | CLANG_CXX_LIBRARY = "libc++"; 969 | CLANG_ENABLE_MODULES = YES; 970 | CLANG_ENABLE_OBJC_ARC = YES; 971 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 972 | CLANG_WARN_BOOL_CONVERSION = YES; 973 | CLANG_WARN_COMMA = YES; 974 | CLANG_WARN_CONSTANT_CONVERSION = YES; 975 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 976 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 977 | CLANG_WARN_EMPTY_BODY = YES; 978 | CLANG_WARN_ENUM_CONVERSION = YES; 979 | CLANG_WARN_INFINITE_RECURSION = YES; 980 | CLANG_WARN_INT_CONVERSION = YES; 981 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 982 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 983 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 984 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 985 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 986 | CLANG_WARN_STRICT_PROTOTYPES = YES; 987 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 988 | CLANG_WARN_UNREACHABLE_CODE = YES; 989 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 990 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 991 | COPY_PHASE_STRIP = NO; 992 | ENABLE_STRICT_OBJC_MSGSEND = YES; 993 | ENABLE_TESTABILITY = YES; 994 | GCC_C_LANGUAGE_STANDARD = gnu99; 995 | GCC_DYNAMIC_NO_PIC = NO; 996 | GCC_NO_COMMON_BLOCKS = YES; 997 | GCC_OPTIMIZATION_LEVEL = 0; 998 | GCC_PREPROCESSOR_DEFINITIONS = ( 999 | "DEBUG=1", 1000 | "$(inherited)", 1001 | ); 1002 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 1003 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1004 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1005 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1006 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1007 | GCC_WARN_UNUSED_FUNCTION = YES; 1008 | GCC_WARN_UNUSED_VARIABLE = YES; 1009 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 1010 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; 1011 | LIBRARY_SEARCH_PATHS = ( 1012 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 1013 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 1014 | "\"$(inherited)\"", 1015 | ); 1016 | MTL_ENABLE_DEBUG_INFO = YES; 1017 | ONLY_ACTIVE_ARCH = YES; 1018 | SDKROOT = iphoneos; 1019 | }; 1020 | name = Debug; 1021 | }; 1022 | 83CBBA211A601CBA00E9B192 /* Release */ = { 1023 | isa = XCBuildConfiguration; 1024 | buildSettings = { 1025 | ALWAYS_SEARCH_USER_PATHS = NO; 1026 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 1027 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1028 | CLANG_CXX_LIBRARY = "libc++"; 1029 | CLANG_ENABLE_MODULES = YES; 1030 | CLANG_ENABLE_OBJC_ARC = YES; 1031 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 1032 | CLANG_WARN_BOOL_CONVERSION = YES; 1033 | CLANG_WARN_COMMA = YES; 1034 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1035 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 1036 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1037 | CLANG_WARN_EMPTY_BODY = YES; 1038 | CLANG_WARN_ENUM_CONVERSION = YES; 1039 | CLANG_WARN_INFINITE_RECURSION = YES; 1040 | CLANG_WARN_INT_CONVERSION = YES; 1041 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 1042 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 1043 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 1044 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1045 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 1046 | CLANG_WARN_STRICT_PROTOTYPES = YES; 1047 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1048 | CLANG_WARN_UNREACHABLE_CODE = YES; 1049 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1050 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1051 | COPY_PHASE_STRIP = YES; 1052 | ENABLE_NS_ASSERTIONS = NO; 1053 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1054 | GCC_C_LANGUAGE_STANDARD = gnu99; 1055 | GCC_NO_COMMON_BLOCKS = YES; 1056 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1057 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1058 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1059 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1060 | GCC_WARN_UNUSED_FUNCTION = YES; 1061 | GCC_WARN_UNUSED_VARIABLE = YES; 1062 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 1063 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; 1064 | LIBRARY_SEARCH_PATHS = ( 1065 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 1066 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 1067 | "\"$(inherited)\"", 1068 | ); 1069 | MTL_ENABLE_DEBUG_INFO = NO; 1070 | SDKROOT = iphoneos; 1071 | VALIDATE_PRODUCT = YES; 1072 | }; 1073 | name = Release; 1074 | }; 1075 | D9F693FA25F2937C001EADC1 /* Debug */ = { 1076 | isa = XCBuildConfiguration; 1077 | buildSettings = { 1078 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 1079 | ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground; 1080 | CLANG_ANALYZER_NONNULL = YES; 1081 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 1082 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 1083 | CLANG_ENABLE_OBJC_WEAK = YES; 1084 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1085 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 1086 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 1087 | CODE_SIGN_ENTITLEMENTS = WidgetTestExtension.entitlements; 1088 | CODE_SIGN_STYLE = Automatic; 1089 | DEBUG_INFORMATION_FORMAT = dwarf; 1090 | DEVELOPMENT_TEAM = AR77S4UN46; 1091 | GCC_C_LANGUAGE_STANDARD = gnu11; 1092 | INFOPLIST_FILE = WidgetTest/Info.plist; 1093 | IPHONEOS_DEPLOYMENT_TARGET = 14.4; 1094 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"; 1095 | LIBRARY_SEARCH_PATHS = ( 1096 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 1097 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.2/$(PLATFORM_NAME)\"", 1098 | "\"$(inherited)\"", 1099 | ); 1100 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 1101 | MTL_FAST_MATH = YES; 1102 | PRODUCT_BUNDLE_IDENTIFIER = com.austinjones.ReactNativeWidget.WidgetTest; 1103 | PRODUCT_NAME = "$(TARGET_NAME)"; 1104 | SKIP_INSTALL = YES; 1105 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 1106 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 1107 | SWIFT_VERSION = 5.0; 1108 | TARGETED_DEVICE_FAMILY = "1,2"; 1109 | }; 1110 | name = Debug; 1111 | }; 1112 | D9F693FB25F2937C001EADC1 /* Release */ = { 1113 | isa = XCBuildConfiguration; 1114 | buildSettings = { 1115 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 1116 | ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground; 1117 | CLANG_ANALYZER_NONNULL = YES; 1118 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 1119 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 1120 | CLANG_ENABLE_OBJC_WEAK = YES; 1121 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1122 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 1123 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 1124 | CODE_SIGN_ENTITLEMENTS = WidgetTestExtension.entitlements; 1125 | CODE_SIGN_STYLE = Automatic; 1126 | COPY_PHASE_STRIP = NO; 1127 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1128 | DEVELOPMENT_TEAM = AR77S4UN46; 1129 | GCC_C_LANGUAGE_STANDARD = gnu11; 1130 | INFOPLIST_FILE = WidgetTest/Info.plist; 1131 | IPHONEOS_DEPLOYMENT_TARGET = 14.4; 1132 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"; 1133 | LIBRARY_SEARCH_PATHS = ( 1134 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 1135 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.2/$(PLATFORM_NAME)\"", 1136 | "\"$(inherited)\"", 1137 | ); 1138 | MTL_FAST_MATH = YES; 1139 | PRODUCT_BUNDLE_IDENTIFIER = com.austinjones.ReactNativeWidget.WidgetTest; 1140 | PRODUCT_NAME = "$(TARGET_NAME)"; 1141 | SKIP_INSTALL = YES; 1142 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 1143 | SWIFT_VERSION = 5.0; 1144 | TARGETED_DEVICE_FAMILY = "1,2"; 1145 | }; 1146 | name = Release; 1147 | }; 1148 | /* End XCBuildConfiguration section */ 1149 | 1150 | /* Begin XCConfigurationList section */ 1151 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ReactNativeWidgetTests" */ = { 1152 | isa = XCConfigurationList; 1153 | buildConfigurations = ( 1154 | 00E356F61AD99517003FC87E /* Debug */, 1155 | 00E356F71AD99517003FC87E /* Release */, 1156 | ); 1157 | defaultConfigurationIsVisible = 0; 1158 | defaultConfigurationName = Release; 1159 | }; 1160 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativeWidget" */ = { 1161 | isa = XCConfigurationList; 1162 | buildConfigurations = ( 1163 | 13B07F941A680F5B00A75B9A /* Debug */, 1164 | 13B07F951A680F5B00A75B9A /* Release */, 1165 | ); 1166 | defaultConfigurationIsVisible = 0; 1167 | defaultConfigurationName = Release; 1168 | }; 1169 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ReactNativeWidget-tvOS" */ = { 1170 | isa = XCConfigurationList; 1171 | buildConfigurations = ( 1172 | 2D02E4971E0B4A5E006451C7 /* Debug */, 1173 | 2D02E4981E0B4A5E006451C7 /* Release */, 1174 | ); 1175 | defaultConfigurationIsVisible = 0; 1176 | defaultConfigurationName = Release; 1177 | }; 1178 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ReactNativeWidget-tvOSTests" */ = { 1179 | isa = XCConfigurationList; 1180 | buildConfigurations = ( 1181 | 2D02E4991E0B4A5E006451C7 /* Debug */, 1182 | 2D02E49A1E0B4A5E006451C7 /* Release */, 1183 | ); 1184 | defaultConfigurationIsVisible = 0; 1185 | defaultConfigurationName = Release; 1186 | }; 1187 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactNativeWidget" */ = { 1188 | isa = XCConfigurationList; 1189 | buildConfigurations = ( 1190 | 83CBBA201A601CBA00E9B192 /* Debug */, 1191 | 83CBBA211A601CBA00E9B192 /* Release */, 1192 | ); 1193 | defaultConfigurationIsVisible = 0; 1194 | defaultConfigurationName = Release; 1195 | }; 1196 | D9F693F925F2937C001EADC1 /* Build configuration list for PBXNativeTarget "WidgetTestExtension" */ = { 1197 | isa = XCConfigurationList; 1198 | buildConfigurations = ( 1199 | D9F693FA25F2937C001EADC1 /* Debug */, 1200 | D9F693FB25F2937C001EADC1 /* Release */, 1201 | ); 1202 | defaultConfigurationIsVisible = 0; 1203 | defaultConfigurationName = Release; 1204 | }; 1205 | /* End XCConfigurationList section */ 1206 | }; 1207 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1208 | } 1209 | -------------------------------------------------------------------------------- /ios/ReactNativeWidget.xcodeproj/xcshareddata/xcschemes/ReactNativeWidget-tvOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 53 | 55 | 61 | 62 | 63 | 64 | 70 | 72 | 78 | 79 | 80 | 81 | 83 | 84 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /ios/ReactNativeWidget.xcodeproj/xcshareddata/xcschemes/ReactNativeWidget.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 53 | 55 | 61 | 62 | 63 | 64 | 70 | 72 | 78 | 79 | 80 | 81 | 83 | 84 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /ios/ReactNativeWidget.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/ReactNativeWidget.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/ReactNativeWidget.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/ReactNativeWidget/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : UIResponder 5 | 6 | @property (nonatomic, strong) UIWindow *window; 7 | 8 | @end 9 | -------------------------------------------------------------------------------- /ios/ReactNativeWidget/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #import "AppDelegate.h" 2 | 3 | #import 4 | #import 5 | #import 6 | 7 | #ifdef FB_SONARKIT_ENABLED 8 | #import 9 | #import 10 | #import 11 | #import 12 | #import 13 | #import 14 | 15 | static void InitializeFlipper(UIApplication *application) { 16 | FlipperClient *client = [FlipperClient sharedClient]; 17 | SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults]; 18 | [client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]]; 19 | [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]]; 20 | [client addPlugin:[FlipperKitReactPlugin new]]; 21 | [client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]]; 22 | [client start]; 23 | } 24 | #endif 25 | 26 | @implementation AppDelegate 27 | 28 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 29 | { 30 | #ifdef FB_SONARKIT_ENABLED 31 | InitializeFlipper(application); 32 | #endif 33 | 34 | RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; 35 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge 36 | moduleName:@"ReactNativeWidget" 37 | initialProperties:nil]; 38 | 39 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 40 | 41 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 42 | UIViewController *rootViewController = [UIViewController new]; 43 | rootViewController.view = rootView; 44 | self.window.rootViewController = rootViewController; 45 | [self.window makeKeyAndVisible]; 46 | return YES; 47 | } 48 | 49 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge 50 | { 51 | #if DEBUG 52 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 53 | #else 54 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 55 | #endif 56 | } 57 | 58 | @end 59 | -------------------------------------------------------------------------------- /ios/ReactNativeWidget/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /ios/ReactNativeWidget/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /ios/ReactNativeWidget/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ReactNativeWidget 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 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 | NSAppTransportSecurity 28 | 29 | NSAllowsArbitraryLoads 30 | 31 | NSExceptionDomains 32 | 33 | localhost 34 | 35 | NSExceptionAllowsInsecureHTTPLoads 36 | 37 | 38 | 39 | 40 | NSLocationWhenInUseUsageDescription 41 | 42 | UILaunchStoryboardName 43 | LaunchScreen 44 | UIRequiredDeviceCapabilities 45 | 46 | armv7 47 | 48 | UISupportedInterfaceOrientations 49 | 50 | UIInterfaceOrientationPortrait 51 | UIInterfaceOrientationLandscapeLeft 52 | UIInterfaceOrientationLandscapeRight 53 | 54 | UIViewControllerBasedStatusBarAppearance 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /ios/ReactNativeWidget/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 31 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /ios/ReactNativeWidget/ReactNativeWidget.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.application-groups 6 | 7 | group.com.austinjones.ReactNativeWidget 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/ReactNativeWidget/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char * argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /ios/ReactNativeWidgetTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 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/ReactNativeWidgetTests/ReactNativeWidgetTests.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | #import 5 | #import 6 | 7 | #define TIMEOUT_SECONDS 600 8 | #define TEXT_TO_LOOK_FOR @"Welcome to React" 9 | 10 | @interface ReactNativeWidgetTests : XCTestCase 11 | 12 | @end 13 | 14 | @implementation ReactNativeWidgetTests 15 | 16 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 17 | { 18 | if (test(view)) { 19 | return YES; 20 | } 21 | for (UIView *subview in [view subviews]) { 22 | if ([self findSubviewInView:subview matching:test]) { 23 | return YES; 24 | } 25 | } 26 | return NO; 27 | } 28 | 29 | - (void)testRendersWelcomeScreen 30 | { 31 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; 32 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 33 | BOOL foundElement = NO; 34 | 35 | __block NSString *redboxError = nil; 36 | #ifdef DEBUG 37 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 38 | if (level >= RCTLogLevelError) { 39 | redboxError = message; 40 | } 41 | }); 42 | #endif 43 | 44 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 45 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 46 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 47 | 48 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 49 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 50 | return YES; 51 | } 52 | return NO; 53 | }]; 54 | } 55 | 56 | #ifdef DEBUG 57 | RCTSetLogFunction(RCTDefaultLogFunction); 58 | #endif 59 | 60 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 61 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 62 | } 63 | 64 | 65 | @end 66 | -------------------------------------------------------------------------------- /ios/WidgetTest/Assets.xcassets/AccentColor.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "idiom" : "universal" 5 | } 6 | ], 7 | "info" : { 8 | "author" : "xcode", 9 | "version" : 1 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /ios/WidgetTest/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "scale" : "2x", 6 | "size" : "20x20" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "scale" : "3x", 11 | "size" : "20x20" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "scale" : "2x", 16 | "size" : "29x29" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "scale" : "3x", 21 | "size" : "29x29" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "scale" : "2x", 26 | "size" : "40x40" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "scale" : "3x", 31 | "size" : "40x40" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "scale" : "2x", 36 | "size" : "60x60" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "scale" : "3x", 41 | "size" : "60x60" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "scale" : "1x", 46 | "size" : "20x20" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "scale" : "2x", 51 | "size" : "20x20" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "scale" : "1x", 56 | "size" : "29x29" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "scale" : "2x", 61 | "size" : "29x29" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "scale" : "1x", 66 | "size" : "40x40" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "scale" : "2x", 71 | "size" : "40x40" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "scale" : "1x", 76 | "size" : "76x76" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "scale" : "2x", 81 | "size" : "76x76" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "scale" : "2x", 86 | "size" : "83.5x83.5" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "scale" : "1x", 91 | "size" : "1024x1024" 92 | } 93 | ], 94 | "info" : { 95 | "author" : "xcode", 96 | "version" : 1 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /ios/WidgetTest/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /ios/WidgetTest/Assets.xcassets/WidgetBackground.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "idiom" : "universal" 5 | } 6 | ], 7 | "info" : { 8 | "author" : "xcode", 9 | "version" : 1 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /ios/WidgetTest/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | WidgetTest 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleVersion 22 | 1 23 | NSExtension 24 | 25 | NSExtensionPointIdentifier 26 | com.apple.widgetkit-extension 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /ios/WidgetTest/WidgetTest.intentdefinition: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | INEnums 6 | 7 | INIntentDefinitionModelVersion 8 | 1.2 9 | INIntentDefinitionNamespace 10 | 88xZPY 11 | INIntentDefinitionSystemVersion 12 | 20A294 13 | INIntentDefinitionToolsBuildVersion 14 | 12A6144 15 | INIntentDefinitionToolsVersion 16 | 12.0 17 | INIntents 18 | 19 | 20 | INIntentCategory 21 | information 22 | INIntentDescriptionID 23 | tVvJ9c 24 | INIntentEligibleForWidgets 25 | 26 | INIntentIneligibleForSuggestions 27 | 28 | INIntentName 29 | Configuration 30 | INIntentResponse 31 | 32 | INIntentResponseCodes 33 | 34 | 35 | INIntentResponseCodeName 36 | success 37 | INIntentResponseCodeSuccess 38 | 39 | 40 | 41 | INIntentResponseCodeName 42 | failure 43 | 44 | 45 | 46 | INIntentTitle 47 | Configuration 48 | INIntentTitleID 49 | gpCwrM 50 | INIntentType 51 | Custom 52 | INIntentVerb 53 | View 54 | 55 | 56 | INTypes 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /ios/WidgetTest/WidgetTest.swift: -------------------------------------------------------------------------------- 1 | // 2 | // WidgetTest.swift 3 | // WidgetTest 4 | // 5 | // Created by Austin Jones on 3/5/21. 6 | // 7 | 8 | import WidgetKit 9 | import SwiftUI 10 | import Intents 11 | 12 | struct WidgetData: Decodable { 13 | var displayText: String 14 | } 15 | 16 | struct Provider: IntentTimelineProvider { 17 | func placeholder(in context: Context) -> SimpleEntry { 18 | SimpleEntry(date: Date(), configuration: ConfigurationIntent(), displayText: "Placeholder") 19 | } 20 | 21 | func getSnapshot(for configuration: ConfigurationIntent, in context: Context, completion: @escaping (SimpleEntry) -> ()) { 22 | let entry = SimpleEntry(date: Date(), configuration: configuration, displayText: "Data goes here") 23 | completion(entry) 24 | } 25 | 26 | func getTimeline(for configuration: ConfigurationIntent, in context: Context, completion: @escaping (Timeline) -> Void) { 27 | let entryDate = Date() 28 | 29 | let userDefaults = UserDefaults.init(suiteName: "group.com.YOURINFO.ReactNativeWidget") 30 | if userDefaults != nil { 31 | if let savedData = userDefaults!.value(forKey: "savedData") as? String { 32 | let decoder = JSONDecoder() 33 | let data = savedData.data(using: .utf8) 34 | 35 | if let parsedData = try? decoder.decode(WidgetData.self, from: data!) { 36 | let nextRefresh = Calendar.current.date(byAdding: .minute, value: 5, to: entryDate)! 37 | let entry = SimpleEntry(date: nextRefresh, configuration: configuration, displayText: parsedData.displayText) 38 | let timeline = Timeline(entries: [entry], policy: .atEnd) 39 | 40 | completion(timeline) 41 | } else { 42 | print("Could not parse data") 43 | } 44 | 45 | } else { 46 | let nextRefresh = Calendar.current.date(byAdding: .minute, value: 5, to: entryDate)! 47 | let entry = SimpleEntry(date: nextRefresh, configuration: configuration, displayText: "No data set") 48 | let timeline = Timeline(entries: [entry], policy: .atEnd) 49 | 50 | completion(timeline) 51 | } 52 | } 53 | } 54 | } 55 | 56 | struct SimpleEntry: TimelineEntry { 57 | let date: Date 58 | let configuration: ConfigurationIntent 59 | let displayText: String 60 | } 61 | 62 | struct WidgetTestEntryView : View { 63 | var entry: Provider.Entry 64 | 65 | var body: some View { 66 | LinearGradient(gradient: Gradient(colors: [.red, .orange]), startPoint: .top, endPoint: .bottom) 67 | .edgesIgnoringSafeArea(.vertical) 68 | .overlay( 69 | VStack { 70 | Text(entry.displayText) 71 | .bold() 72 | .foregroundColor(.white) 73 | }.padding(20) 74 | ) 75 | } 76 | } 77 | 78 | @main 79 | struct WidgetTest: Widget { 80 | let kind: String = "WidgetTest" 81 | 82 | var body: some WidgetConfiguration { 83 | IntentConfiguration(kind: kind, intent: ConfigurationIntent.self, provider: Provider()) { entry in 84 | WidgetTestEntryView(entry: entry) 85 | } 86 | .configurationDisplayName("My Widget") 87 | .description("This is an example widget.") 88 | } 89 | } 90 | 91 | struct WidgetTest_Previews: PreviewProvider { 92 | static var previews: some View { 93 | WidgetTestEntryView(entry: SimpleEntry(date: Date(), configuration: ConfigurationIntent(), displayText: "Widget preview")) 94 | .previewContext(WidgetPreviewContext(family: .systemSmall)) 95 | } 96 | } 97 | -------------------------------------------------------------------------------- /ios/WidgetTestExtension.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.application-groups 6 | 7 | group.com.austinjones.ReactNativeWidget 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /metro.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Metro configuration for React Native 3 | * https://github.com/facebook/react-native 4 | * 5 | * @format 6 | */ 7 | 8 | module.exports = { 9 | transformer: { 10 | getTransformOptions: async () => ({ 11 | transform: { 12 | experimentalImportSupport: false, 13 | inlineRequires: false, 14 | }, 15 | }), 16 | }, 17 | }; 18 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ReactNativeWidget", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "android": "react-native run-android", 7 | "ios": "react-native run-ios", 8 | "start": "react-native start", 9 | "test": "jest", 10 | "lint": "eslint . --ext .js,.jsx,.ts,.tsx" 11 | }, 12 | "dependencies": { 13 | "@types/react-native-shared-group-preferences": "^1.1.0", 14 | "react": "16.13.1", 15 | "react-native": "0.63.4", 16 | "react-native-shared-group-preferences": "^1.1.21" 17 | }, 18 | "devDependencies": { 19 | "@babel/core": "^7.8.4", 20 | "@babel/runtime": "^7.8.4", 21 | "@react-native-community/eslint-config": "^1.1.0", 22 | "@types/jest": "^25.2.3", 23 | "@types/react-native": "^0.63.2", 24 | "@types/react-test-renderer": "^16.9.2", 25 | "babel-jest": "^25.1.0", 26 | "eslint": "^6.5.1", 27 | "jest": "^25.1.0", 28 | "metro-react-native-babel-preset": "^0.59.0", 29 | "react-test-renderer": "16.13.1", 30 | "typescript": "^3.8.3" 31 | }, 32 | "resolutions": { 33 | "@types/react": "^16" 34 | }, 35 | "jest": { 36 | "preset": "react-native", 37 | "moduleFileExtensions": [ 38 | "ts", 39 | "tsx", 40 | "js", 41 | "jsx", 42 | "json", 43 | "node" 44 | ] 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | 2 | { 3 | "compilerOptions": { 4 | /* Basic Options */ 5 | "target": "esnext", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ 6 | "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ 7 | "lib": ["es2017"], /* Specify library files to be included in the compilation. */ 8 | "allowJs": true, /* Allow javascript files to be compiled. */ 9 | // "checkJs": true, /* Report errors in .js files. */ 10 | "jsx": "react-native", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ 11 | // "declaration": true, /* Generates corresponding '.d.ts' file. */ 12 | // "sourceMap": true, /* Generates corresponding '.map' file. */ 13 | // "outFile": "./", /* Concatenate and emit output to single file. */ 14 | // "outDir": "./", /* Redirect output structure to the directory. */ 15 | // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ 16 | // "removeComments": true, /* Do not emit comments to output. */ 17 | "noEmit": true, /* Do not emit outputs. */ 18 | // "incremental": true, /* Enable incremental compilation */ 19 | // "importHelpers": true, /* Import emit helpers from 'tslib'. */ 20 | // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ 21 | "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ 22 | 23 | /* Strict Type-Checking Options */ 24 | "strict": true, /* Enable all strict type-checking options. */ 25 | // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ 26 | // "strictNullChecks": true, /* Enable strict null checks. */ 27 | // "strictFunctionTypes": true, /* Enable strict checking of function types. */ 28 | // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */ 29 | // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ 30 | // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ 31 | 32 | /* Additional Checks */ 33 | // "noUnusedLocals": true, /* Report errors on unused locals. */ 34 | // "noUnusedParameters": true, /* Report errors on unused parameters. */ 35 | // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ 36 | // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ 37 | 38 | /* Module Resolution Options */ 39 | "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ 40 | // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ 41 | // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ 42 | // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ 43 | // "typeRoots": [], /* List of folders to include type definitions from. */ 44 | // "types": [], /* Type declaration files to be included in compilation. */ 45 | "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ 46 | "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ 47 | // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ 48 | "skipLibCheck": false /* Skip type checking of declaration files. */ 49 | 50 | /* Source Map Options */ 51 | // "sourceRoot": "./", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ 52 | // "mapRoot": "./", /* Specify the location where debugger should locate map files instead of generated locations. */ 53 | // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ 54 | // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ 55 | 56 | /* Experimental Options */ 57 | // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ 58 | // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ 59 | }, 60 | "exclude": [ 61 | "node_modules", "babel.config.js", "metro.config.js", "jest.config.js" 62 | ] 63 | } 64 | --------------------------------------------------------------------------------