├── .buckconfig ├── .eslintrc.js ├── .flowconfig ├── .gitattributes ├── .gitignore ├── .prettierrc.js ├── .watchmanconfig ├── App.js ├── README.md ├── __tests__ └── App-test.js ├── android ├── .project ├── .settings │ └── org.eclipse.buildship.core.prefs ├── app │ ├── .classpath │ ├── .project │ ├── .settings │ │ └── org.eclipse.buildship.core.prefs │ ├── BUCK │ ├── build.gradle │ ├── build_defs.bzl │ ├── proguard-rules.pro │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── reactnativecreatewidgettutorial │ │ │ ├── MainActivity.java │ │ │ ├── MainApplication.java │ │ │ ├── SharedStorage.java │ │ │ ├── SharedStoragePackager.java │ │ │ └── Widget.java │ │ └── res │ │ ├── drawable-nodpi │ │ └── example_appwidget_preview.png │ │ ├── layout │ │ └── widget.xml │ │ ├── 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-v14 │ │ └── dimens.xml │ │ ├── values │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml │ │ └── xml │ │ └── widget_info.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── app.json ├── babel.config.js ├── index.js ├── ios ├── Podfile ├── Podfile.lock ├── ReactNativeCreateWidgetTutorial-tvOS │ └── Info.plist ├── ReactNativeCreateWidgetTutorial-tvOSTests │ └── Info.plist ├── ReactNativeCreateWidgetTutorial.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── ReactNativeCreateWidgetTutorial-tvOS.xcscheme │ │ └── ReactNativeCreateWidgetTutorial.xcscheme ├── ReactNativeCreateWidgetTutorial.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── ReactNativeCreateWidgetTutorial │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── Contents.json │ ├── Info.plist │ ├── ReactNativeCreateWidgetTutorial.entitlements │ └── main.m ├── ReactNativeCreateWidgetTutorialTests │ ├── Info.plist │ └── ReactNativeCreateWidgetTutorialTests.m ├── SharedStorage.h ├── SharedStorage.m └── Widget │ ├── Base.lproj │ └── MainInterface.storyboard │ ├── Info.plist │ ├── TodayViewController.swift │ └── Widget.entitlements ├── metro.config.js ├── package.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 | -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | ; We fork some components by platform 3 | .*/*[.]android.js 4 | 5 | ; Ignore "BUCK" generated dirs 6 | /\.buckd/ 7 | 8 | ; Ignore unexpected extra "@providesModule" 9 | .*/node_modules/.*/node_modules/fbjs/.* 10 | 11 | ; Ignore duplicate module providers 12 | ; For RN Apps installed via npm, "Libraries" folder is inside 13 | ; "node_modules/react-native" but in the source repo it is in the root 14 | node_modules/react-native/Libraries/react-native/React.js 15 | 16 | ; Ignore polyfills 17 | node_modules/react-native/Libraries/polyfills/.* 18 | 19 | ; These should not be required directly 20 | ; require from fbjs/lib instead: require('fbjs/lib/warning') 21 | node_modules/warning/.* 22 | 23 | ; Flow doesn't support platforms 24 | .*/Libraries/Utilities/HMRLoadingView.js 25 | 26 | [untyped] 27 | .*/node_modules/@react-native-community/cli/.*/.* 28 | 29 | [include] 30 | 31 | [libs] 32 | node_modules/react-native/Libraries/react-native/react-native-interface.js 33 | node_modules/react-native/flow/ 34 | 35 | [options] 36 | emoji=true 37 | 38 | esproposal.optional_chaining=enable 39 | esproposal.nullish_coalescing=enable 40 | 41 | module.file_ext=.js 42 | module.file_ext=.json 43 | module.file_ext=.ios.js 44 | 45 | module.system=haste 46 | module.system.haste.use_name_reducers=true 47 | # get basename 48 | module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1' 49 | # strip .js or .js.flow suffix 50 | module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1' 51 | # strip .ios suffix 52 | module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1' 53 | module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1' 54 | module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1' 55 | module.system.haste.paths.blacklist=.*/__tests__/.* 56 | module.system.haste.paths.blacklist=.*/__mocks__/.* 57 | module.system.haste.paths.whitelist=/node_modules/react-native/Libraries/.* 58 | module.system.haste.paths.whitelist=/node_modules/react-native/RNTester/.* 59 | module.system.haste.paths.whitelist=/node_modules/react-native/IntegrationTests/.* 60 | module.system.haste.paths.blacklist=/node_modules/react-native/Libraries/react-native/react-native-implementation.js 61 | module.system.haste.paths.blacklist=/node_modules/react-native/Libraries/Animated/src/polyfills/.* 62 | 63 | munge_underscores=true 64 | 65 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub' 66 | 67 | suppress_type=$FlowIssue 68 | suppress_type=$FlowFixMe 69 | suppress_type=$FlowFixMeProps 70 | suppress_type=$FlowFixMeState 71 | 72 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\) 73 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)?:? #[0-9]+ 74 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError 75 | 76 | [lints] 77 | sketchy-null-number=warn 78 | sketchy-null-mixed=warn 79 | sketchy-number=warn 80 | untyped-type-import=warn 81 | nonstrict-import=warn 82 | deprecated-type=warn 83 | unsafe-getters-setters=warn 84 | inexact-spread=warn 85 | unnecessary-invariant=warn 86 | signature-verification-failure=warn 87 | deprecated-utility=error 88 | 89 | [strict] 90 | deprecated-type 91 | nonstrict-import 92 | sketchy-null 93 | unclear-type 94 | unsafe-getters-setters 95 | untyped-import 96 | untyped-type-import 97 | 98 | [version] 99 | ^0.98.0 100 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | project.xcworkspace 24 | 25 | # Android/IntelliJ 26 | # 27 | build/ 28 | .idea 29 | .gradle 30 | local.properties 31 | *.iml 32 | 33 | # node.js 34 | # 35 | node_modules/ 36 | npm-debug.log 37 | yarn-error.log 38 | 39 | # BUCK 40 | buck-out/ 41 | \.buckd/ 42 | *.keystore 43 | 44 | # fastlane 45 | # 46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 47 | # screenshots whenever they are needed. 48 | # For more information about the recommended setup visit: 49 | # https://docs.fastlane.tools/best-practices/source-control/ 50 | 51 | */fastlane/report.xml 52 | */fastlane/Preview.html 53 | */fastlane/screenshots 54 | 55 | # Bundle artifact 56 | *.jsbundle 57 | 58 | # CocoaPods 59 | /ios/Pods/ 60 | -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | bracketSpacing: false, 3 | jsxBracketSameLine: true, 4 | singleQuote: true, 5 | trailingComma: 'all', 6 | }; 7 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /App.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | * 5 | * @format 6 | * @flow 7 | */ 8 | 9 | import React, {Fragment, Component} from 'react'; 10 | import { 11 | SafeAreaView, 12 | StyleSheet, 13 | ScrollView, 14 | View, 15 | Text, 16 | StatusBar, 17 | NativeModules, 18 | } from 'react-native'; 19 | 20 | import { 21 | Header, 22 | LearnMoreLinks, 23 | Colors, 24 | DebugInstructions, 25 | ReloadInstructions, 26 | } from 'react-native/Libraries/NewAppScreen'; 27 | 28 | const SharedStorage = NativeModules.SharedStorage; 29 | 30 | class App extends Component { 31 | componentDidMount() { 32 | SharedStorage.set( 33 | JSON.stringify({text: 'This is data from the React Native app'}), 34 | ); 35 | } 36 | 37 | render() { 38 | return ( 39 | 40 | 41 | 42 | 45 |
46 | {global.HermesInternal == null ? null : ( 47 | 48 | Engine: Hermes 49 | 50 | )} 51 | 52 | 53 | Step One 54 | 55 | Edit App.js to change 56 | this screen and then come back to see your edits. 57 | 58 | 59 | 60 | See Your Changes 61 | 62 | 63 | 64 | 65 | 66 | Debug 67 | 68 | 69 | 70 | 71 | 72 | Learn More 73 | 74 | Read the docs to discover what to do next: 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | ); 83 | } 84 | } 85 | 86 | const styles = StyleSheet.create({ 87 | scrollView: { 88 | backgroundColor: Colors.lighter, 89 | }, 90 | engine: { 91 | position: 'absolute', 92 | right: 0, 93 | }, 94 | body: { 95 | backgroundColor: Colors.white, 96 | }, 97 | sectionContainer: { 98 | marginTop: 32, 99 | paddingHorizontal: 24, 100 | }, 101 | sectionTitle: { 102 | fontSize: 24, 103 | fontWeight: '600', 104 | color: Colors.black, 105 | }, 106 | sectionDescription: { 107 | marginTop: 8, 108 | fontSize: 18, 109 | fontWeight: '400', 110 | color: Colors.dark, 111 | }, 112 | highlight: { 113 | fontWeight: '700', 114 | }, 115 | footer: { 116 | color: Colors.dark, 117 | fontSize: 12, 118 | fontWeight: '600', 119 | padding: 4, 120 | paddingRight: 12, 121 | textAlign: 'right', 122 | }, 123 | }); 124 | 125 | export default App; 126 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # react-native-create-widget-tutorial 2 | This is a tutorial for "React Native: How to create a home screen Widget for iOS and Android": 3 | 4 | https://medium.com/better-programming/react-native-how-to-build-a-home-screen-widget-for-ios-and-android-8b2d7db343cb 5 | -------------------------------------------------------------------------------- /__tests__/App-test.js: -------------------------------------------------------------------------------- 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/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | ReactNativeCreateWidgetTutorial 4 | Project android created by Buildship. 5 | 6 | 7 | 8 | 9 | org.eclipse.buildship.core.gradleprojectbuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.buildship.core.gradleprojectnature 16 | 17 | 18 | -------------------------------------------------------------------------------- /android/.settings/org.eclipse.buildship.core.prefs: -------------------------------------------------------------------------------- 1 | connection.project.dir= 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /android/app/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /android/app/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | app 4 | Project app created by Buildship. 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.buildship.core.gradleprojectbuilder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.buildship.core.gradleprojectnature 22 | 23 | 24 | -------------------------------------------------------------------------------- /android/app/.settings/org.eclipse.buildship.core.prefs: -------------------------------------------------------------------------------- 1 | connection.project.dir=.. 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /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.reactnativecreatewidgettutorial", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "com.reactnativecreatewidgettutorial", 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 19 | * entryFile: "index.android.js", 20 | * 21 | * // https://facebook.github.io/react-native/docs/performance#enable-the-ram-format 22 | * bundleCommand: "ram-bundle", 23 | * 24 | * // whether to bundle JS and assets in debug mode 25 | * bundleInDebug: false, 26 | * 27 | * // whether to bundle JS and assets in release mode 28 | * bundleInRelease: true, 29 | * 30 | * // whether to bundle JS and assets in another build variant (if configured). 31 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 32 | * // The configuration property can be in the following formats 33 | * // 'bundleIn${productFlavor}${buildType}' 34 | * // 'bundleIn${buildType}' 35 | * // bundleInFreeDebug: true, 36 | * // bundleInPaidRelease: true, 37 | * // bundleInBeta: true, 38 | * 39 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 40 | * // for example: to disable dev mode in the staging build type (if configured) 41 | * devDisabledInStaging: true, 42 | * // The configuration property can be in the following formats 43 | * // 'devDisabledIn${productFlavor}${buildType}' 44 | * // 'devDisabledIn${buildType}' 45 | * 46 | * // the root of your project, i.e. where "package.json" lives 47 | * root: "../../", 48 | * 49 | * // where to put the JS bundle asset in debug mode 50 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 51 | * 52 | * // where to put the JS bundle asset in release mode 53 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 54 | * 55 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 56 | * // require('./image.png')), in debug mode 57 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 58 | * 59 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 60 | * // require('./image.png')), in release mode 61 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 62 | * 63 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 64 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 65 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 66 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 67 | * // for example, you might want to remove it from here. 68 | * inputExcludes: ["android/**", "ios/**"], 69 | * 70 | * // override which node gets called and with what additional arguments 71 | * nodeExecutableAndArgs: ["node"], 72 | * 73 | * // supply additional arguments to the packager 74 | * extraPackagerArgs: [] 75 | * ] 76 | */ 77 | 78 | project.ext.react = [ 79 | entryFile: "index.js", 80 | enableHermes: false, // clean and rebuild if changing 81 | ] 82 | 83 | apply from: "../../node_modules/react-native/react.gradle" 84 | 85 | /** 86 | * Set this to true to create two separate APKs instead of one: 87 | * - An APK that only works on ARM devices 88 | * - An APK that only works on x86 devices 89 | * The advantage is the size of the APK is reduced by about 4MB. 90 | * Upload all the APKs to the Play Store and people will download 91 | * the correct one based on the CPU architecture of their device. 92 | */ 93 | def enableSeparateBuildPerCPUArchitecture = false 94 | 95 | /** 96 | * Run Proguard to shrink the Java bytecode in release builds. 97 | */ 98 | def enableProguardInReleaseBuilds = false 99 | 100 | /** 101 | * The preferred build flavor of JavaScriptCore. 102 | * 103 | * For example, to use the international variant, you can use: 104 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` 105 | * 106 | * The international variant includes ICU i18n library and necessary data 107 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that 108 | * give correct results when using with locales other than en-US. Note that 109 | * this variant is about 6MiB larger per architecture than default. 110 | */ 111 | def jscFlavor = 'org.webkit:android-jsc:+' 112 | 113 | /** 114 | * Whether to enable the Hermes VM. 115 | * 116 | * This should be set on project.ext.react and mirrored here. If it is not set 117 | * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode 118 | * and the benefits of using Hermes will therefore be sharply reduced. 119 | */ 120 | def enableHermes = project.ext.react.get("enableHermes", false); 121 | 122 | android { 123 | compileSdkVersion rootProject.ext.compileSdkVersion 124 | 125 | compileOptions { 126 | sourceCompatibility JavaVersion.VERSION_1_8 127 | targetCompatibility JavaVersion.VERSION_1_8 128 | } 129 | 130 | defaultConfig { 131 | applicationId "com.reactnativecreatewidgettutorial" 132 | minSdkVersion rootProject.ext.minSdkVersion 133 | targetSdkVersion rootProject.ext.targetSdkVersion 134 | versionCode 1 135 | versionName "1.0" 136 | } 137 | splits { 138 | abi { 139 | reset() 140 | enable enableSeparateBuildPerCPUArchitecture 141 | universalApk false // If true, also generate a universal APK 142 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" 143 | } 144 | } 145 | signingConfigs { 146 | debug { 147 | storeFile file('debug.keystore') 148 | storePassword 'android' 149 | keyAlias 'androiddebugkey' 150 | keyPassword 'android' 151 | } 152 | } 153 | buildTypes { 154 | debug { 155 | signingConfig signingConfigs.debug 156 | } 157 | release { 158 | // Caution! In production, you need to generate your own keystore file. 159 | // see https://facebook.github.io/react-native/docs/signed-apk-android. 160 | signingConfig signingConfigs.debug 161 | minifyEnabled enableProguardInReleaseBuilds 162 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 163 | } 164 | } 165 | // applicationVariants are e.g. debug, release 166 | applicationVariants.all { variant -> 167 | variant.outputs.each { output -> 168 | // For each separate APK per architecture, set a unique version code as described here: 169 | // https://developer.android.com/studio/build/configure-apk-splits.html 170 | def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] 171 | def abi = output.getFilter(OutputFile.ABI) 172 | if (abi != null) { // null for the universal-debug, universal-release variants 173 | output.versionCodeOverride = 174 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 175 | } 176 | 177 | } 178 | } 179 | 180 | packagingOptions { 181 | pickFirst '**/armeabi-v7a/libc++_shared.so' 182 | pickFirst '**/x86/libc++_shared.so' 183 | pickFirst '**/arm64-v8a/libc++_shared.so' 184 | pickFirst '**/x86_64/libc++_shared.so' 185 | pickFirst '**/x86/libjsc.so' 186 | pickFirst '**/armeabi-v7a/libjsc.so' 187 | } 188 | } 189 | 190 | dependencies { 191 | implementation fileTree(dir: "libs", include: ["*.jar"]) 192 | implementation "com.facebook.react:react-native:+" // From node_modules 193 | 194 | if (enableHermes) { 195 | def hermesPath = "../../node_modules/hermesvm/android/"; 196 | debugImplementation files(hermesPath + "hermes-debug.aar") 197 | releaseImplementation files(hermesPath + "hermes-release.aar") 198 | } else { 199 | implementation jscFlavor 200 | } 201 | } 202 | 203 | // Run this once to be able to run the application with BUCK 204 | // puts all compile dependencies into folder libs for BUCK to use 205 | task copyDownloadableDepsToLibs(type: Copy) { 206 | from configurations.compile 207 | into 'libs' 208 | } 209 | 210 | apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) 211 | -------------------------------------------------------------------------------- /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/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/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 14 | 15 | 16 | 17 | 18 | 19 | 22 | 23 | 24 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/reactnativecreatewidgettutorial/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.reactnativecreatewidgettutorial; 2 | 3 | import com.facebook.react.ReactActivity; 4 | 5 | public class MainActivity extends ReactActivity { 6 | 7 | /** 8 | * Returns the name of the main component registered from JavaScript. 9 | * This is used to schedule rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "ReactNativeCreateWidgetTutorial"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/reactnativecreatewidgettutorial/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.reactnativecreatewidgettutorial; 2 | 3 | import android.app.Application; 4 | import android.util.Log; 5 | 6 | import com.facebook.react.PackageList; 7 | import com.facebook.hermes.reactexecutor.HermesExecutorFactory; 8 | import com.facebook.react.bridge.JavaScriptExecutorFactory; 9 | import com.facebook.react.ReactApplication; 10 | import com.facebook.react.ReactNativeHost; 11 | import com.facebook.react.ReactPackage; 12 | import com.facebook.soloader.SoLoader; 13 | 14 | import java.util.List; 15 | 16 | public class MainApplication extends Application implements ReactApplication { 17 | 18 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 19 | @Override 20 | public boolean getUseDeveloperSupport() { 21 | return BuildConfig.DEBUG; 22 | } 23 | 24 | @Override 25 | protected List getPackages() { 26 | @SuppressWarnings("UnnecessaryLocalVariable") 27 | List packages = new PackageList(this).getPackages(); 28 | // Packages that cannot be autolinked yet can be added manually here, for example: 29 | // packages.add(new MyReactNativePackage()); 30 | packages.add(new SharedStoragePackager()); 31 | return packages; 32 | } 33 | 34 | @Override 35 | protected String getJSMainModuleName() { 36 | return "index"; 37 | } 38 | }; 39 | 40 | @Override 41 | public ReactNativeHost getReactNativeHost() { 42 | return mReactNativeHost; 43 | } 44 | 45 | @Override 46 | public void onCreate() { 47 | super.onCreate(); 48 | SoLoader.init(this, /* native exopackage */ false); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/reactnativecreatewidgettutorial/SharedStorage.java: -------------------------------------------------------------------------------- 1 | package com.reactnativecreatewidgettutorial; 2 | 3 | import com.facebook.react.bridge.NativeModule; 4 | import com.facebook.react.bridge.ReactApplicationContext; 5 | import com.facebook.react.bridge.ReactContext; 6 | import com.facebook.react.bridge.ReactContextBaseJavaModule; 7 | import com.facebook.react.bridge.ReactMethod; 8 | 9 | import android.app.Activity; 10 | import android.appwidget.AppWidgetManager; 11 | import android.content.ComponentName; 12 | import android.content.Context; 13 | import android.content.Intent; 14 | import android.content.SharedPreferences; 15 | import android.util.Log; 16 | 17 | public class SharedStorage extends ReactContextBaseJavaModule { 18 | ReactApplicationContext context; 19 | 20 | public SharedStorage(ReactApplicationContext reactContext) { 21 | super(reactContext); 22 | context = reactContext; 23 | } 24 | 25 | @Override 26 | public String getName() { 27 | return "SharedStorage"; 28 | } 29 | 30 | @ReactMethod 31 | public void set(String message) { 32 | SharedPreferences.Editor editor = context.getSharedPreferences("DATA", Context.MODE_PRIVATE).edit(); 33 | editor.putString("appData", message); 34 | editor.commit(); 35 | 36 | //CHANGE TO THE NAME OF YOUR WIDGET 37 | Intent intent = new Intent(getCurrentActivity().getApplicationContext(), Widget.class); 38 | intent.setAction(AppWidgetManager.ACTION_APPWIDGET_UPDATE); 39 | //CHANGE TO THE NAME OF YOUR WIDGET 40 | int[] ids = AppWidgetManager.getInstance(getCurrentActivity().getApplicationContext()).getAppWidgetIds(new ComponentName(getCurrentActivity().getApplicationContext(), Widget.class)); 41 | intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_IDS, ids); 42 | getCurrentActivity().getApplicationContext().sendBroadcast(intent); 43 | 44 | } 45 | } -------------------------------------------------------------------------------- /android/app/src/main/java/com/reactnativecreatewidgettutorial/SharedStoragePackager.java: -------------------------------------------------------------------------------- 1 | package com.reactnativecreatewidgettutorial; 2 | 3 | import com.facebook.react.ReactPackage; 4 | import com.facebook.react.bridge.JavaScriptModule; 5 | import com.facebook.react.bridge.NativeModule; 6 | import com.facebook.react.bridge.ReactApplicationContext; 7 | import com.facebook.react.uimanager.ViewManager; 8 | 9 | import java.util.ArrayList; 10 | import java.util.Collections; 11 | import java.util.List; 12 | 13 | public class SharedStoragePackager implements ReactPackage { 14 | 15 | @Override 16 | public List createViewManagers(ReactApplicationContext reactContext) { 17 | return Collections.emptyList(); 18 | } 19 | 20 | @Override 21 | public List createNativeModules(ReactApplicationContext reactContext) { 22 | List modules = new ArrayList<>(); 23 | 24 | modules.add(new SharedStorage(reactContext)); 25 | 26 | return modules; 27 | } 28 | 29 | } -------------------------------------------------------------------------------- /android/app/src/main/java/com/reactnativecreatewidgettutorial/Widget.java: -------------------------------------------------------------------------------- 1 | package com.reactnativecreatewidgettutorial; 2 | 3 | import android.appwidget.AppWidgetManager; 4 | import android.appwidget.AppWidgetProvider; 5 | import android.content.Context; 6 | import android.widget.RemoteViews; 7 | import android.content.SharedPreferences; 8 | 9 | import org.json.JSONException; 10 | import org.json.JSONObject; 11 | /** 12 | * Implementation of App Widget functionality. 13 | */ 14 | public class Widget extends AppWidgetProvider { 15 | 16 | static void updateAppWidget(Context context, AppWidgetManager appWidgetManager, 17 | int appWidgetId) { 18 | 19 | try { 20 | SharedPreferences sharedPref = context.getSharedPreferences("DATA", Context.MODE_PRIVATE); 21 | String appString = sharedPref.getString("appData", "{\"text\":'no data'}"); 22 | JSONObject appData = new JSONObject(appString); 23 | 24 | // Construct the RemoteViews object 25 | RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.widget); 26 | views.setTextViewText(R.id.appwidget_text, appData.getString("text")); 27 | // Instruct the widget manager to update the widget 28 | appWidgetManager.updateAppWidget(appWidgetId, views); 29 | }catch (JSONException e) { 30 | e.printStackTrace(); 31 | } 32 | } 33 | 34 | @Override 35 | public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { 36 | // There may be multiple widgets active, so update all of them 37 | for (int appWidgetId : appWidgetIds) { 38 | updateAppWidget(context, appWidgetManager, appWidgetId); 39 | } 40 | } 41 | 42 | @Override 43 | public void onEnabled(Context context) { 44 | // Enter relevant functionality for when the first widget is created 45 | } 46 | 47 | @Override 48 | public void onDisabled(Context context) { 49 | // Enter relevant functionality for when the last widget is disabled 50 | } 51 | } 52 | 53 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-nodpi/example_appwidget_preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrepimenta/react-native-create-widget-tutorial/aaf67bccfaee152ab06c06625249be3d26a7e77a/android/app/src/main/res/drawable-nodpi/example_appwidget_preview.png -------------------------------------------------------------------------------- /android/app/src/main/res/layout/widget.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 20 | 21 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrepimenta/react-native-create-widget-tutorial/aaf67bccfaee152ab06c06625249be3d26a7e77a/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/andrepimenta/react-native-create-widget-tutorial/aaf67bccfaee152ab06c06625249be3d26a7e77a/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/andrepimenta/react-native-create-widget-tutorial/aaf67bccfaee152ab06c06625249be3d26a7e77a/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/andrepimenta/react-native-create-widget-tutorial/aaf67bccfaee152ab06c06625249be3d26a7e77a/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/andrepimenta/react-native-create-widget-tutorial/aaf67bccfaee152ab06c06625249be3d26a7e77a/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/andrepimenta/react-native-create-widget-tutorial/aaf67bccfaee152ab06c06625249be3d26a7e77a/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/andrepimenta/react-native-create-widget-tutorial/aaf67bccfaee152ab06c06625249be3d26a7e77a/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/andrepimenta/react-native-create-widget-tutorial/aaf67bccfaee152ab06c06625249be3d26a7e77a/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/andrepimenta/react-native-create-widget-tutorial/aaf67bccfaee152ab06c06625249be3d26a7e77a/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/andrepimenta/react-native-create-widget-tutorial/aaf67bccfaee152ab06c06625249be3d26a7e77a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/values-v14/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 0dp 9 | 10 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 8dp 9 | 10 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | ReactNativeCreateWidgetTutorial 3 | HELLO 4 | Add widget 5 | 6 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /android/app/src/main/res/xml/widget_info.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /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 = "28.0.3" 6 | minSdkVersion = 16 7 | compileSdkVersion = 28 8 | targetSdkVersion = 28 9 | supportLibVersion = "28.0.0" 10 | } 11 | repositories { 12 | google() 13 | jcenter() 14 | } 15 | dependencies { 16 | classpath("com.android.tools.build:gradle:3.4.1") 17 | 18 | // NOTE: Do not place your application dependencies here; they belong 19 | // in the individual module build.gradle files 20 | } 21 | } 22 | 23 | allprojects { 24 | repositories { 25 | mavenLocal() 26 | maven { 27 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 28 | url("$rootDir/../node_modules/react-native/android") 29 | } 30 | maven { 31 | // Android JSC is installed from npm 32 | url("$rootDir/../node_modules/jsc-android/dist") 33 | } 34 | 35 | google() 36 | jcenter() 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | android.useAndroidX=true 21 | android.enableJetifier=true 22 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrepimenta/react-native-create-widget-tutorial/aaf67bccfaee152ab06c06625249be3d26a7e77a/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-5.4.1-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 | # http://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, switch paths to Windows format before running java 129 | if $cygwin ; 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=$((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 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong 184 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then 185 | cd "$(dirname "$0")" 186 | fi 187 | 188 | exec "$JAVACMD" "$@" 189 | -------------------------------------------------------------------------------- /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 http://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 Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 33 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 34 | 35 | @rem Find java.exe 36 | if defined JAVA_HOME goto findJavaFromJavaHome 37 | 38 | set JAVA_EXE=java.exe 39 | %JAVA_EXE% -version >NUL 2>&1 40 | if "%ERRORLEVEL%" == "0" goto init 41 | 42 | echo. 43 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 44 | echo. 45 | echo Please set the JAVA_HOME variable in your environment to match the 46 | echo location of your Java installation. 47 | 48 | goto fail 49 | 50 | :findJavaFromJavaHome 51 | set JAVA_HOME=%JAVA_HOME:"=% 52 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 53 | 54 | if exist "%JAVA_EXE%" goto init 55 | 56 | echo. 57 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 58 | echo. 59 | echo Please set the JAVA_HOME variable in your environment to match the 60 | echo location of your Java installation. 61 | 62 | goto fail 63 | 64 | :init 65 | @rem Get command-line arguments, handling Windows variants 66 | 67 | if not "%OS%" == "Windows_NT" goto win9xME_args 68 | 69 | :win9xME_args 70 | @rem Slurp the command line arguments. 71 | set CMD_LINE_ARGS= 72 | set _SKIP=2 73 | 74 | :win9xME_args_slurp 75 | if "x%~1" == "x" goto execute 76 | 77 | set CMD_LINE_ARGS=%* 78 | 79 | :execute 80 | @rem Setup the command line 81 | 82 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 83 | 84 | @rem Execute Gradle 85 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 86 | 87 | :end 88 | @rem End local scope for the variables with windows NT shell 89 | if "%ERRORLEVEL%"=="0" goto mainEnd 90 | 91 | :fail 92 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 93 | rem the _cmd.exe /c_ return code! 94 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 95 | exit /b 1 96 | 97 | :mainEnd 98 | if "%OS%"=="Windows_NT" endlocal 99 | 100 | :omega 101 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'ReactNativeCreateWidgetTutorial' 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": "ReactNativeCreateWidgetTutorial", 3 | "displayName": "ReactNativeCreateWidgetTutorial" 4 | } -------------------------------------------------------------------------------- /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 | platform :ios, '9.0' 2 | require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' 3 | 4 | target 'ReactNativeCreateWidgetTutorial' do 5 | # Pods for ReactNativeCreateWidgetTutorial 6 | pod 'React', :path => '../node_modules/react-native/' 7 | pod 'React-Core', :path => '../node_modules/react-native/React' 8 | pod 'React-DevSupport', :path => '../node_modules/react-native/React' 9 | pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS' 10 | pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation' 11 | pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob' 12 | pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image' 13 | pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS' 14 | pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network' 15 | pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings' 16 | pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text' 17 | pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration' 18 | pod 'React-RCTWebSocket', :path => '../node_modules/react-native/Libraries/WebSocket' 19 | 20 | pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact' 21 | pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi' 22 | pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor' 23 | pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector' 24 | pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga' 25 | 26 | pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec' 27 | pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec' 28 | pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec' 29 | 30 | target 'ReactNativeCreateWidgetTutorialTests' do 31 | inherit! :search_paths 32 | # Pods for testing 33 | end 34 | 35 | use_native_modules! 36 | end 37 | 38 | target 'ReactNativeCreateWidgetTutorial-tvOS' do 39 | # Pods for ReactNativeCreateWidgetTutorial-tvOS 40 | 41 | target 'ReactNativeCreateWidgetTutorial-tvOSTests' do 42 | inherit! :search_paths 43 | # Pods for testing 44 | end 45 | 46 | end 47 | -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - boost-for-react-native (1.63.0) 3 | - DoubleConversion (1.1.6) 4 | - Folly (2018.10.22.00): 5 | - boost-for-react-native 6 | - DoubleConversion 7 | - Folly/Default (= 2018.10.22.00) 8 | - glog 9 | - Folly/Default (2018.10.22.00): 10 | - boost-for-react-native 11 | - DoubleConversion 12 | - glog 13 | - glog (0.3.5) 14 | - React (0.60.5): 15 | - React-Core (= 0.60.5) 16 | - React-DevSupport (= 0.60.5) 17 | - React-RCTActionSheet (= 0.60.5) 18 | - React-RCTAnimation (= 0.60.5) 19 | - React-RCTBlob (= 0.60.5) 20 | - React-RCTImage (= 0.60.5) 21 | - React-RCTLinking (= 0.60.5) 22 | - React-RCTNetwork (= 0.60.5) 23 | - React-RCTSettings (= 0.60.5) 24 | - React-RCTText (= 0.60.5) 25 | - React-RCTVibration (= 0.60.5) 26 | - React-RCTWebSocket (= 0.60.5) 27 | - React-Core (0.60.5): 28 | - Folly (= 2018.10.22.00) 29 | - React-cxxreact (= 0.60.5) 30 | - React-jsiexecutor (= 0.60.5) 31 | - yoga (= 0.60.5.React) 32 | - React-cxxreact (0.60.5): 33 | - boost-for-react-native (= 1.63.0) 34 | - DoubleConversion 35 | - Folly (= 2018.10.22.00) 36 | - glog 37 | - React-jsinspector (= 0.60.5) 38 | - React-DevSupport (0.60.5): 39 | - React-Core (= 0.60.5) 40 | - React-RCTWebSocket (= 0.60.5) 41 | - React-jsi (0.60.5): 42 | - boost-for-react-native (= 1.63.0) 43 | - DoubleConversion 44 | - Folly (= 2018.10.22.00) 45 | - glog 46 | - React-jsi/Default (= 0.60.5) 47 | - React-jsi/Default (0.60.5): 48 | - boost-for-react-native (= 1.63.0) 49 | - DoubleConversion 50 | - Folly (= 2018.10.22.00) 51 | - glog 52 | - React-jsiexecutor (0.60.5): 53 | - DoubleConversion 54 | - Folly (= 2018.10.22.00) 55 | - glog 56 | - React-cxxreact (= 0.60.5) 57 | - React-jsi (= 0.60.5) 58 | - React-jsinspector (0.60.5) 59 | - React-RCTActionSheet (0.60.5): 60 | - React-Core (= 0.60.5) 61 | - React-RCTAnimation (0.60.5): 62 | - React-Core (= 0.60.5) 63 | - React-RCTBlob (0.60.5): 64 | - React-Core (= 0.60.5) 65 | - React-RCTNetwork (= 0.60.5) 66 | - React-RCTWebSocket (= 0.60.5) 67 | - React-RCTImage (0.60.5): 68 | - React-Core (= 0.60.5) 69 | - React-RCTNetwork (= 0.60.5) 70 | - React-RCTLinking (0.60.5): 71 | - React-Core (= 0.60.5) 72 | - React-RCTNetwork (0.60.5): 73 | - React-Core (= 0.60.5) 74 | - React-RCTSettings (0.60.5): 75 | - React-Core (= 0.60.5) 76 | - React-RCTText (0.60.5): 77 | - React-Core (= 0.60.5) 78 | - React-RCTVibration (0.60.5): 79 | - React-Core (= 0.60.5) 80 | - React-RCTWebSocket (0.60.5): 81 | - React-Core (= 0.60.5) 82 | - yoga (0.60.5.React) 83 | 84 | DEPENDENCIES: 85 | - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) 86 | - Folly (from `../node_modules/react-native/third-party-podspecs/Folly.podspec`) 87 | - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) 88 | - React (from `../node_modules/react-native/`) 89 | - React-Core (from `../node_modules/react-native/React`) 90 | - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) 91 | - React-DevSupport (from `../node_modules/react-native/React`) 92 | - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) 93 | - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) 94 | - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`) 95 | - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) 96 | - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) 97 | - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) 98 | - React-RCTImage (from `../node_modules/react-native/Libraries/Image`) 99 | - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`) 100 | - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`) 101 | - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`) 102 | - React-RCTText (from `../node_modules/react-native/Libraries/Text`) 103 | - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) 104 | - React-RCTWebSocket (from `../node_modules/react-native/Libraries/WebSocket`) 105 | - yoga (from `../node_modules/react-native/ReactCommon/yoga`) 106 | 107 | SPEC REPOS: 108 | https://github.com/cocoapods/specs.git: 109 | - boost-for-react-native 110 | 111 | EXTERNAL SOURCES: 112 | DoubleConversion: 113 | :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" 114 | Folly: 115 | :podspec: "../node_modules/react-native/third-party-podspecs/Folly.podspec" 116 | glog: 117 | :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" 118 | React: 119 | :path: "../node_modules/react-native/" 120 | React-Core: 121 | :path: "../node_modules/react-native/React" 122 | React-cxxreact: 123 | :path: "../node_modules/react-native/ReactCommon/cxxreact" 124 | React-DevSupport: 125 | :path: "../node_modules/react-native/React" 126 | React-jsi: 127 | :path: "../node_modules/react-native/ReactCommon/jsi" 128 | React-jsiexecutor: 129 | :path: "../node_modules/react-native/ReactCommon/jsiexecutor" 130 | React-jsinspector: 131 | :path: "../node_modules/react-native/ReactCommon/jsinspector" 132 | React-RCTActionSheet: 133 | :path: "../node_modules/react-native/Libraries/ActionSheetIOS" 134 | React-RCTAnimation: 135 | :path: "../node_modules/react-native/Libraries/NativeAnimation" 136 | React-RCTBlob: 137 | :path: "../node_modules/react-native/Libraries/Blob" 138 | React-RCTImage: 139 | :path: "../node_modules/react-native/Libraries/Image" 140 | React-RCTLinking: 141 | :path: "../node_modules/react-native/Libraries/LinkingIOS" 142 | React-RCTNetwork: 143 | :path: "../node_modules/react-native/Libraries/Network" 144 | React-RCTSettings: 145 | :path: "../node_modules/react-native/Libraries/Settings" 146 | React-RCTText: 147 | :path: "../node_modules/react-native/Libraries/Text" 148 | React-RCTVibration: 149 | :path: "../node_modules/react-native/Libraries/Vibration" 150 | React-RCTWebSocket: 151 | :path: "../node_modules/react-native/Libraries/WebSocket" 152 | yoga: 153 | :path: "../node_modules/react-native/ReactCommon/yoga" 154 | 155 | SPEC CHECKSUMS: 156 | boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c 157 | DoubleConversion: 5805e889d232975c086db112ece9ed034df7a0b2 158 | Folly: 30e7936e1c45c08d884aa59369ed951a8e68cf51 159 | glog: 1f3da668190260b06b429bb211bfbee5cd790c28 160 | React: 53c53c4d99097af47cf60594b8706b4e3321e722 161 | React-Core: ba421f6b4f4cbe2fb17c0b6fc675f87622e78a64 162 | React-cxxreact: 8384287780c4999351ad9b6e7a149d9ed10a2395 163 | React-DevSupport: 197fb409737cff2c4f9986e77c220d7452cb9f9f 164 | React-jsi: 4d8c9efb6312a9725b18d6fc818ffc103f60fec2 165 | React-jsiexecutor: 90ad2f9db09513fc763bc757fdc3c4ff8bde2a30 166 | React-jsinspector: e08662d1bf5b129a3d556eb9ea343a3f40353ae4 167 | React-RCTActionSheet: b0f1ea83f4bf75fb966eae9bfc47b78c8d3efd90 168 | React-RCTAnimation: 359ba1b5690b1e87cc173558a78e82d35919333e 169 | React-RCTBlob: 5e2b55f76e9a1c7ae52b826923502ddc3238df24 170 | React-RCTImage: f5f1c50922164e89bdda67bcd0153952a5cfe719 171 | React-RCTLinking: d0ecbd791e9ddddc41fa1f66b0255de90e8ee1e9 172 | React-RCTNetwork: e26946300b0ab7bb6c4a6348090e93fa21f33a9d 173 | React-RCTSettings: d0d37cb521b7470c998595a44f05847777cc3f42 174 | React-RCTText: b074d89033583d4f2eb5faf7ea2db3a13c7553a2 175 | React-RCTVibration: 2105b2e0e2b66a6408fc69a46c8a7fb5b2fdade0 176 | React-RCTWebSocket: cd932a16b7214898b6b7f788c8bddb3637246ac4 177 | yoga: 312528f5bbbba37b4dcea5ef00e8b4033fdd9411 178 | 179 | PODFILE CHECKSUM: 058d8c07012ced866196b947e8a4396729b62afe 180 | 181 | COCOAPODS: 1.7.2 182 | -------------------------------------------------------------------------------- /ios/ReactNativeCreateWidgetTutorial-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/ReactNativeCreateWidgetTutorial-tvOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/ReactNativeCreateWidgetTutorial.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00E356F31AD99517003FC87E /* ReactNativeCreateWidgetTutorialTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ReactNativeCreateWidgetTutorialTests.m */; }; 11 | 02C853FA882707ECD190DAFF /* libPods-ReactNativeCreateWidgetTutorial.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 936F55ED41008E34AF8FAD84 /* libPods-ReactNativeCreateWidgetTutorial.a */; }; 12 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 13 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 14 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 15 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 16 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 17 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 18 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 19 | 2DCD954D1E0B4F2C00145EB5 /* ReactNativeCreateWidgetTutorialTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ReactNativeCreateWidgetTutorialTests.m */; }; 20 | 659E145323294C030044CC02 /* NotificationCenter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 659E145223294C030044CC02 /* NotificationCenter.framework */; }; 21 | 659E145623294C030044CC02 /* TodayViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 659E145523294C030044CC02 /* TodayViewController.swift */; }; 22 | 659E145923294C030044CC02 /* MainInterface.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 659E145723294C030044CC02 /* MainInterface.storyboard */; }; 23 | 659E145D23294C030044CC02 /* Widget.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 659E145123294C020044CC02 /* Widget.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; 24 | 659E1464232954650044CC02 /* SharedStorage.m in Sources */ = {isa = PBXBuildFile; fileRef = 659E1463232954650044CC02 /* SharedStorage.m */; }; 25 | 6E52295A9543BA7166895767 /* libPods-ReactNativeCreateWidgetTutorial-tvOSTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FCDA86E8DE108B80D065950E /* libPods-ReactNativeCreateWidgetTutorial-tvOSTests.a */; }; 26 | A74DB06BC240847157580B1D /* libPods-ReactNativeCreateWidgetTutorialTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = DA351920E4042BDB5282AF75 /* libPods-ReactNativeCreateWidgetTutorialTests.a */; }; 27 | F2D80D66C0408D247942F943 /* libPods-ReactNativeCreateWidgetTutorial-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E953CF5D963B48F907D1C12A /* libPods-ReactNativeCreateWidgetTutorial-tvOS.a */; }; 28 | /* End PBXBuildFile section */ 29 | 30 | /* Begin PBXContainerItemProxy section */ 31 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 32 | isa = PBXContainerItemProxy; 33 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 34 | proxyType = 1; 35 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 36 | remoteInfo = ReactNativeCreateWidgetTutorial; 37 | }; 38 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 39 | isa = PBXContainerItemProxy; 40 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 41 | proxyType = 1; 42 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 43 | remoteInfo = "ReactNativeCreateWidgetTutorial-tvOS"; 44 | }; 45 | 659E145B23294C030044CC02 /* PBXContainerItemProxy */ = { 46 | isa = PBXContainerItemProxy; 47 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 48 | proxyType = 1; 49 | remoteGlobalIDString = 659E145023294C020044CC02; 50 | remoteInfo = Widget; 51 | }; 52 | /* End PBXContainerItemProxy section */ 53 | 54 | /* Begin PBXCopyFilesBuildPhase section */ 55 | 659E146123294C030044CC02 /* Embed App Extensions */ = { 56 | isa = PBXCopyFilesBuildPhase; 57 | buildActionMask = 2147483647; 58 | dstPath = ""; 59 | dstSubfolderSpec = 13; 60 | files = ( 61 | 659E145D23294C030044CC02 /* Widget.appex in Embed App Extensions */, 62 | ); 63 | name = "Embed App Extensions"; 64 | runOnlyForDeploymentPostprocessing = 0; 65 | }; 66 | /* End PBXCopyFilesBuildPhase section */ 67 | 68 | /* Begin PBXFileReference section */ 69 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 70 | 00E356EE1AD99517003FC87E /* ReactNativeCreateWidgetTutorialTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ReactNativeCreateWidgetTutorialTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 71 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 72 | 00E356F21AD99517003FC87E /* ReactNativeCreateWidgetTutorialTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ReactNativeCreateWidgetTutorialTests.m; sourceTree = ""; }; 73 | 13B07F961A680F5B00A75B9A /* ReactNativeCreateWidgetTutorial.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ReactNativeCreateWidgetTutorial.app; sourceTree = BUILT_PRODUCTS_DIR; }; 74 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = ReactNativeCreateWidgetTutorial/AppDelegate.h; sourceTree = ""; }; 75 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = ReactNativeCreateWidgetTutorial/AppDelegate.m; sourceTree = ""; }; 76 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 77 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = ReactNativeCreateWidgetTutorial/Images.xcassets; sourceTree = ""; }; 78 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = ReactNativeCreateWidgetTutorial/Info.plist; sourceTree = ""; }; 79 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = ReactNativeCreateWidgetTutorial/main.m; sourceTree = ""; }; 80 | 148AC769C739E5CD6885A27A /* Pods-ReactNativeCreateWidgetTutorial-tvOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeCreateWidgetTutorial-tvOS.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeCreateWidgetTutorial-tvOS/Pods-ReactNativeCreateWidgetTutorial-tvOS.release.xcconfig"; sourceTree = ""; }; 81 | 2D02E47B1E0B4A5D006451C7 /* ReactNativeCreateWidgetTutorial-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ReactNativeCreateWidgetTutorial-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 82 | 2D02E4901E0B4A5D006451C7 /* ReactNativeCreateWidgetTutorial-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "ReactNativeCreateWidgetTutorial-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 83 | 3A9CA28FE0FA15BCB3E093DA /* Pods-ReactNativeCreateWidgetTutorial-tvOSTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeCreateWidgetTutorial-tvOSTests.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeCreateWidgetTutorial-tvOSTests/Pods-ReactNativeCreateWidgetTutorial-tvOSTests.debug.xcconfig"; sourceTree = ""; }; 84 | 4E555499D7EFBA9640B9C64B /* Pods-ReactNativeCreateWidgetTutorial-tvOSTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeCreateWidgetTutorial-tvOSTests.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeCreateWidgetTutorial-tvOSTests/Pods-ReactNativeCreateWidgetTutorial-tvOSTests.release.xcconfig"; sourceTree = ""; }; 85 | 659E145123294C020044CC02 /* Widget.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = Widget.appex; sourceTree = BUILT_PRODUCTS_DIR; }; 86 | 659E145223294C030044CC02 /* NotificationCenter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = NotificationCenter.framework; path = System/Library/Frameworks/NotificationCenter.framework; sourceTree = SDKROOT; }; 87 | 659E145523294C030044CC02 /* TodayViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TodayViewController.swift; sourceTree = ""; }; 88 | 659E145823294C030044CC02 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/MainInterface.storyboard; sourceTree = ""; }; 89 | 659E145A23294C030044CC02 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 90 | 659E1462232954650044CC02 /* SharedStorage.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SharedStorage.h; sourceTree = ""; }; 91 | 659E1463232954650044CC02 /* SharedStorage.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SharedStorage.m; sourceTree = ""; }; 92 | 659E146523295F390044CC02 /* Widget.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Widget.entitlements; sourceTree = ""; }; 93 | 659E1466232962F80044CC02 /* ReactNativeCreateWidgetTutorial.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; name = ReactNativeCreateWidgetTutorial.entitlements; path = ReactNativeCreateWidgetTutorial/ReactNativeCreateWidgetTutorial.entitlements; sourceTree = ""; }; 94 | 936F55ED41008E34AF8FAD84 /* libPods-ReactNativeCreateWidgetTutorial.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeCreateWidgetTutorial.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 95 | 9AB7B69E8B940AD1ABBEDE0D /* Pods-ReactNativeCreateWidgetTutorial-tvOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeCreateWidgetTutorial-tvOS.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeCreateWidgetTutorial-tvOS/Pods-ReactNativeCreateWidgetTutorial-tvOS.debug.xcconfig"; sourceTree = ""; }; 96 | C8D77908B5D3631A19952581 /* Pods-ReactNativeCreateWidgetTutorialTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeCreateWidgetTutorialTests.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeCreateWidgetTutorialTests/Pods-ReactNativeCreateWidgetTutorialTests.debug.xcconfig"; sourceTree = ""; }; 97 | D10726F0B462CE73BC77F198 /* Pods-ReactNativeCreateWidgetTutorial.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeCreateWidgetTutorial.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeCreateWidgetTutorial/Pods-ReactNativeCreateWidgetTutorial.debug.xcconfig"; sourceTree = ""; }; 98 | DA351920E4042BDB5282AF75 /* libPods-ReactNativeCreateWidgetTutorialTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeCreateWidgetTutorialTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 99 | E4E7671469D090EAECB03AF9 /* Pods-ReactNativeCreateWidgetTutorialTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeCreateWidgetTutorialTests.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeCreateWidgetTutorialTests/Pods-ReactNativeCreateWidgetTutorialTests.release.xcconfig"; sourceTree = ""; }; 100 | E5388FE5A4D4F4CFF4FB7A32 /* Pods-ReactNativeCreateWidgetTutorial.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeCreateWidgetTutorial.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeCreateWidgetTutorial/Pods-ReactNativeCreateWidgetTutorial.release.xcconfig"; sourceTree = ""; }; 101 | E953CF5D963B48F907D1C12A /* libPods-ReactNativeCreateWidgetTutorial-tvOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeCreateWidgetTutorial-tvOS.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 102 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 103 | 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; }; 104 | FCDA86E8DE108B80D065950E /* libPods-ReactNativeCreateWidgetTutorial-tvOSTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeCreateWidgetTutorial-tvOSTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 105 | /* End PBXFileReference section */ 106 | 107 | /* Begin PBXFrameworksBuildPhase section */ 108 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 109 | isa = PBXFrameworksBuildPhase; 110 | buildActionMask = 2147483647; 111 | files = ( 112 | A74DB06BC240847157580B1D /* libPods-ReactNativeCreateWidgetTutorialTests.a in Frameworks */, 113 | ); 114 | runOnlyForDeploymentPostprocessing = 0; 115 | }; 116 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 117 | isa = PBXFrameworksBuildPhase; 118 | buildActionMask = 2147483647; 119 | files = ( 120 | 02C853FA882707ECD190DAFF /* libPods-ReactNativeCreateWidgetTutorial.a in Frameworks */, 121 | ); 122 | runOnlyForDeploymentPostprocessing = 0; 123 | }; 124 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 125 | isa = PBXFrameworksBuildPhase; 126 | buildActionMask = 2147483647; 127 | files = ( 128 | F2D80D66C0408D247942F943 /* libPods-ReactNativeCreateWidgetTutorial-tvOS.a in Frameworks */, 129 | ); 130 | runOnlyForDeploymentPostprocessing = 0; 131 | }; 132 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 133 | isa = PBXFrameworksBuildPhase; 134 | buildActionMask = 2147483647; 135 | files = ( 136 | 6E52295A9543BA7166895767 /* libPods-ReactNativeCreateWidgetTutorial-tvOSTests.a in Frameworks */, 137 | ); 138 | runOnlyForDeploymentPostprocessing = 0; 139 | }; 140 | 659E144E23294C020044CC02 /* Frameworks */ = { 141 | isa = PBXFrameworksBuildPhase; 142 | buildActionMask = 2147483647; 143 | files = ( 144 | 659E145323294C030044CC02 /* NotificationCenter.framework in Frameworks */, 145 | ); 146 | runOnlyForDeploymentPostprocessing = 0; 147 | }; 148 | /* End PBXFrameworksBuildPhase section */ 149 | 150 | /* Begin PBXGroup section */ 151 | 00E356EF1AD99517003FC87E /* ReactNativeCreateWidgetTutorialTests */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | 00E356F21AD99517003FC87E /* ReactNativeCreateWidgetTutorialTests.m */, 155 | 00E356F01AD99517003FC87E /* Supporting Files */, 156 | ); 157 | path = ReactNativeCreateWidgetTutorialTests; 158 | sourceTree = ""; 159 | }; 160 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 161 | isa = PBXGroup; 162 | children = ( 163 | 00E356F11AD99517003FC87E /* Info.plist */, 164 | ); 165 | name = "Supporting Files"; 166 | sourceTree = ""; 167 | }; 168 | 13B07FAE1A68108700A75B9A /* ReactNativeCreateWidgetTutorial */ = { 169 | isa = PBXGroup; 170 | children = ( 171 | 659E1466232962F80044CC02 /* ReactNativeCreateWidgetTutorial.entitlements */, 172 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 173 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 174 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 175 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 176 | 13B07FB61A68108700A75B9A /* Info.plist */, 177 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 178 | 13B07FB71A68108700A75B9A /* main.m */, 179 | ); 180 | name = ReactNativeCreateWidgetTutorial; 181 | sourceTree = ""; 182 | }; 183 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 184 | isa = PBXGroup; 185 | children = ( 186 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 187 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */, 188 | 936F55ED41008E34AF8FAD84 /* libPods-ReactNativeCreateWidgetTutorial.a */, 189 | E953CF5D963B48F907D1C12A /* libPods-ReactNativeCreateWidgetTutorial-tvOS.a */, 190 | FCDA86E8DE108B80D065950E /* libPods-ReactNativeCreateWidgetTutorial-tvOSTests.a */, 191 | DA351920E4042BDB5282AF75 /* libPods-ReactNativeCreateWidgetTutorialTests.a */, 192 | 659E145223294C030044CC02 /* NotificationCenter.framework */, 193 | ); 194 | name = Frameworks; 195 | sourceTree = ""; 196 | }; 197 | 51046CCD1C0727F1B10BE979 /* Pods */ = { 198 | isa = PBXGroup; 199 | children = ( 200 | D10726F0B462CE73BC77F198 /* Pods-ReactNativeCreateWidgetTutorial.debug.xcconfig */, 201 | E5388FE5A4D4F4CFF4FB7A32 /* Pods-ReactNativeCreateWidgetTutorial.release.xcconfig */, 202 | 9AB7B69E8B940AD1ABBEDE0D /* Pods-ReactNativeCreateWidgetTutorial-tvOS.debug.xcconfig */, 203 | 148AC769C739E5CD6885A27A /* Pods-ReactNativeCreateWidgetTutorial-tvOS.release.xcconfig */, 204 | 3A9CA28FE0FA15BCB3E093DA /* Pods-ReactNativeCreateWidgetTutorial-tvOSTests.debug.xcconfig */, 205 | 4E555499D7EFBA9640B9C64B /* Pods-ReactNativeCreateWidgetTutorial-tvOSTests.release.xcconfig */, 206 | C8D77908B5D3631A19952581 /* Pods-ReactNativeCreateWidgetTutorialTests.debug.xcconfig */, 207 | E4E7671469D090EAECB03AF9 /* Pods-ReactNativeCreateWidgetTutorialTests.release.xcconfig */, 208 | ); 209 | path = Pods; 210 | sourceTree = ""; 211 | }; 212 | 659E145423294C030044CC02 /* Widget */ = { 213 | isa = PBXGroup; 214 | children = ( 215 | 659E146523295F390044CC02 /* Widget.entitlements */, 216 | 659E145523294C030044CC02 /* TodayViewController.swift */, 217 | 659E145723294C030044CC02 /* MainInterface.storyboard */, 218 | 659E145A23294C030044CC02 /* Info.plist */, 219 | ); 220 | path = Widget; 221 | sourceTree = ""; 222 | }; 223 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 224 | isa = PBXGroup; 225 | children = ( 226 | ); 227 | name = Libraries; 228 | sourceTree = ""; 229 | }; 230 | 83CBB9F61A601CBA00E9B192 = { 231 | isa = PBXGroup; 232 | children = ( 233 | 659E1462232954650044CC02 /* SharedStorage.h */, 234 | 659E1463232954650044CC02 /* SharedStorage.m */, 235 | 13B07FAE1A68108700A75B9A /* ReactNativeCreateWidgetTutorial */, 236 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 237 | 00E356EF1AD99517003FC87E /* ReactNativeCreateWidgetTutorialTests */, 238 | 659E145423294C030044CC02 /* Widget */, 239 | 83CBBA001A601CBA00E9B192 /* Products */, 240 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 241 | 51046CCD1C0727F1B10BE979 /* Pods */, 242 | ); 243 | indentWidth = 2; 244 | sourceTree = ""; 245 | tabWidth = 2; 246 | usesTabs = 0; 247 | }; 248 | 83CBBA001A601CBA00E9B192 /* Products */ = { 249 | isa = PBXGroup; 250 | children = ( 251 | 13B07F961A680F5B00A75B9A /* ReactNativeCreateWidgetTutorial.app */, 252 | 00E356EE1AD99517003FC87E /* ReactNativeCreateWidgetTutorialTests.xctest */, 253 | 2D02E47B1E0B4A5D006451C7 /* ReactNativeCreateWidgetTutorial-tvOS.app */, 254 | 2D02E4901E0B4A5D006451C7 /* ReactNativeCreateWidgetTutorial-tvOSTests.xctest */, 255 | 659E145123294C020044CC02 /* Widget.appex */, 256 | ); 257 | name = Products; 258 | sourceTree = ""; 259 | }; 260 | /* End PBXGroup section */ 261 | 262 | /* Begin PBXNativeTarget section */ 263 | 00E356ED1AD99517003FC87E /* ReactNativeCreateWidgetTutorialTests */ = { 264 | isa = PBXNativeTarget; 265 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ReactNativeCreateWidgetTutorialTests" */; 266 | buildPhases = ( 267 | E999A225AE7164DB8343FA5B /* [CP] Check Pods Manifest.lock */, 268 | 00E356EA1AD99517003FC87E /* Sources */, 269 | 00E356EB1AD99517003FC87E /* Frameworks */, 270 | 00E356EC1AD99517003FC87E /* Resources */, 271 | ); 272 | buildRules = ( 273 | ); 274 | dependencies = ( 275 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 276 | ); 277 | name = ReactNativeCreateWidgetTutorialTests; 278 | productName = ReactNativeCreateWidgetTutorialTests; 279 | productReference = 00E356EE1AD99517003FC87E /* ReactNativeCreateWidgetTutorialTests.xctest */; 280 | productType = "com.apple.product-type.bundle.unit-test"; 281 | }; 282 | 13B07F861A680F5B00A75B9A /* ReactNativeCreateWidgetTutorial */ = { 283 | isa = PBXNativeTarget; 284 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativeCreateWidgetTutorial" */; 285 | buildPhases = ( 286 | F9556C8E6C059E940C1FA0B6 /* [CP] Check Pods Manifest.lock */, 287 | FD10A7F022414F080027D42C /* Start Packager */, 288 | 13B07F871A680F5B00A75B9A /* Sources */, 289 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 290 | 13B07F8E1A680F5B00A75B9A /* Resources */, 291 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 292 | 659E146123294C030044CC02 /* Embed App Extensions */, 293 | ); 294 | buildRules = ( 295 | ); 296 | dependencies = ( 297 | 659E145C23294C030044CC02 /* PBXTargetDependency */, 298 | ); 299 | name = ReactNativeCreateWidgetTutorial; 300 | productName = ReactNativeCreateWidgetTutorial; 301 | productReference = 13B07F961A680F5B00A75B9A /* ReactNativeCreateWidgetTutorial.app */; 302 | productType = "com.apple.product-type.application"; 303 | }; 304 | 2D02E47A1E0B4A5D006451C7 /* ReactNativeCreateWidgetTutorial-tvOS */ = { 305 | isa = PBXNativeTarget; 306 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ReactNativeCreateWidgetTutorial-tvOS" */; 307 | buildPhases = ( 308 | 827C5EBC345C66F4FFD7C19E /* [CP] Check Pods Manifest.lock */, 309 | FD10A7F122414F3F0027D42C /* Start Packager */, 310 | 2D02E4771E0B4A5D006451C7 /* Sources */, 311 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 312 | 2D02E4791E0B4A5D006451C7 /* Resources */, 313 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 314 | ); 315 | buildRules = ( 316 | ); 317 | dependencies = ( 318 | ); 319 | name = "ReactNativeCreateWidgetTutorial-tvOS"; 320 | productName = "ReactNativeCreateWidgetTutorial-tvOS"; 321 | productReference = 2D02E47B1E0B4A5D006451C7 /* ReactNativeCreateWidgetTutorial-tvOS.app */; 322 | productType = "com.apple.product-type.application"; 323 | }; 324 | 2D02E48F1E0B4A5D006451C7 /* ReactNativeCreateWidgetTutorial-tvOSTests */ = { 325 | isa = PBXNativeTarget; 326 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ReactNativeCreateWidgetTutorial-tvOSTests" */; 327 | buildPhases = ( 328 | E98481C3068335A5C9EF724D /* [CP] Check Pods Manifest.lock */, 329 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 330 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 331 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 332 | ); 333 | buildRules = ( 334 | ); 335 | dependencies = ( 336 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 337 | ); 338 | name = "ReactNativeCreateWidgetTutorial-tvOSTests"; 339 | productName = "ReactNativeCreateWidgetTutorial-tvOSTests"; 340 | productReference = 2D02E4901E0B4A5D006451C7 /* ReactNativeCreateWidgetTutorial-tvOSTests.xctest */; 341 | productType = "com.apple.product-type.bundle.unit-test"; 342 | }; 343 | 659E145023294C020044CC02 /* Widget */ = { 344 | isa = PBXNativeTarget; 345 | buildConfigurationList = 659E145E23294C030044CC02 /* Build configuration list for PBXNativeTarget "Widget" */; 346 | buildPhases = ( 347 | 659E144D23294C020044CC02 /* Sources */, 348 | 659E144E23294C020044CC02 /* Frameworks */, 349 | 659E144F23294C020044CC02 /* Resources */, 350 | ); 351 | buildRules = ( 352 | ); 353 | dependencies = ( 354 | ); 355 | name = Widget; 356 | productName = Widget; 357 | productReference = 659E145123294C020044CC02 /* Widget.appex */; 358 | productType = "com.apple.product-type.app-extension"; 359 | }; 360 | /* End PBXNativeTarget section */ 361 | 362 | /* Begin PBXProject section */ 363 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 364 | isa = PBXProject; 365 | attributes = { 366 | LastSwiftUpdateCheck = 1010; 367 | LastUpgradeCheck = 0940; 368 | ORGANIZATIONNAME = Facebook; 369 | TargetAttributes = { 370 | 00E356ED1AD99517003FC87E = { 371 | CreatedOnToolsVersion = 6.2; 372 | TestTargetID = 13B07F861A680F5B00A75B9A; 373 | }; 374 | 13B07F861A680F5B00A75B9A = { 375 | DevelopmentTeam = PGA539E5WX; 376 | SystemCapabilities = { 377 | com.apple.ApplicationGroups.iOS = { 378 | enabled = 1; 379 | }; 380 | }; 381 | }; 382 | 2D02E47A1E0B4A5D006451C7 = { 383 | CreatedOnToolsVersion = 8.2.1; 384 | ProvisioningStyle = Automatic; 385 | }; 386 | 2D02E48F1E0B4A5D006451C7 = { 387 | CreatedOnToolsVersion = 8.2.1; 388 | ProvisioningStyle = Automatic; 389 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 390 | }; 391 | 659E145023294C020044CC02 = { 392 | CreatedOnToolsVersion = 10.1; 393 | DevelopmentTeam = PGA539E5WX; 394 | ProvisioningStyle = Automatic; 395 | SystemCapabilities = { 396 | com.apple.ApplicationGroups.iOS = { 397 | enabled = 1; 398 | }; 399 | }; 400 | }; 401 | }; 402 | }; 403 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactNativeCreateWidgetTutorial" */; 404 | compatibilityVersion = "Xcode 3.2"; 405 | developmentRegion = English; 406 | hasScannedForEncodings = 0; 407 | knownRegions = ( 408 | en, 409 | Base, 410 | ); 411 | mainGroup = 83CBB9F61A601CBA00E9B192; 412 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 413 | projectDirPath = ""; 414 | projectRoot = ""; 415 | targets = ( 416 | 13B07F861A680F5B00A75B9A /* ReactNativeCreateWidgetTutorial */, 417 | 00E356ED1AD99517003FC87E /* ReactNativeCreateWidgetTutorialTests */, 418 | 2D02E47A1E0B4A5D006451C7 /* ReactNativeCreateWidgetTutorial-tvOS */, 419 | 2D02E48F1E0B4A5D006451C7 /* ReactNativeCreateWidgetTutorial-tvOSTests */, 420 | 659E145023294C020044CC02 /* Widget */, 421 | ); 422 | }; 423 | /* End PBXProject section */ 424 | 425 | /* Begin PBXResourcesBuildPhase section */ 426 | 00E356EC1AD99517003FC87E /* Resources */ = { 427 | isa = PBXResourcesBuildPhase; 428 | buildActionMask = 2147483647; 429 | files = ( 430 | ); 431 | runOnlyForDeploymentPostprocessing = 0; 432 | }; 433 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 434 | isa = PBXResourcesBuildPhase; 435 | buildActionMask = 2147483647; 436 | files = ( 437 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 438 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 439 | ); 440 | runOnlyForDeploymentPostprocessing = 0; 441 | }; 442 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 443 | isa = PBXResourcesBuildPhase; 444 | buildActionMask = 2147483647; 445 | files = ( 446 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 447 | ); 448 | runOnlyForDeploymentPostprocessing = 0; 449 | }; 450 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 451 | isa = PBXResourcesBuildPhase; 452 | buildActionMask = 2147483647; 453 | files = ( 454 | ); 455 | runOnlyForDeploymentPostprocessing = 0; 456 | }; 457 | 659E144F23294C020044CC02 /* Resources */ = { 458 | isa = PBXResourcesBuildPhase; 459 | buildActionMask = 2147483647; 460 | files = ( 461 | 659E145923294C030044CC02 /* MainInterface.storyboard in Resources */, 462 | ); 463 | runOnlyForDeploymentPostprocessing = 0; 464 | }; 465 | /* End PBXResourcesBuildPhase section */ 466 | 467 | /* Begin PBXShellScriptBuildPhase section */ 468 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 469 | isa = PBXShellScriptBuildPhase; 470 | buildActionMask = 2147483647; 471 | files = ( 472 | ); 473 | inputPaths = ( 474 | ); 475 | name = "Bundle React Native code and images"; 476 | outputPaths = ( 477 | ); 478 | runOnlyForDeploymentPostprocessing = 0; 479 | shellPath = /bin/sh; 480 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 481 | }; 482 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 483 | isa = PBXShellScriptBuildPhase; 484 | buildActionMask = 2147483647; 485 | files = ( 486 | ); 487 | inputPaths = ( 488 | ); 489 | name = "Bundle React Native Code And Images"; 490 | outputPaths = ( 491 | ); 492 | runOnlyForDeploymentPostprocessing = 0; 493 | shellPath = /bin/sh; 494 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 495 | }; 496 | 827C5EBC345C66F4FFD7C19E /* [CP] Check Pods Manifest.lock */ = { 497 | isa = PBXShellScriptBuildPhase; 498 | buildActionMask = 2147483647; 499 | files = ( 500 | ); 501 | inputFileListPaths = ( 502 | ); 503 | inputPaths = ( 504 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 505 | "${PODS_ROOT}/Manifest.lock", 506 | ); 507 | name = "[CP] Check Pods Manifest.lock"; 508 | outputFileListPaths = ( 509 | ); 510 | outputPaths = ( 511 | "$(DERIVED_FILE_DIR)/Pods-ReactNativeCreateWidgetTutorial-tvOS-checkManifestLockResult.txt", 512 | ); 513 | runOnlyForDeploymentPostprocessing = 0; 514 | shellPath = /bin/sh; 515 | 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"; 516 | showEnvVarsInLog = 0; 517 | }; 518 | E98481C3068335A5C9EF724D /* [CP] Check Pods Manifest.lock */ = { 519 | isa = PBXShellScriptBuildPhase; 520 | buildActionMask = 2147483647; 521 | files = ( 522 | ); 523 | inputFileListPaths = ( 524 | ); 525 | inputPaths = ( 526 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 527 | "${PODS_ROOT}/Manifest.lock", 528 | ); 529 | name = "[CP] Check Pods Manifest.lock"; 530 | outputFileListPaths = ( 531 | ); 532 | outputPaths = ( 533 | "$(DERIVED_FILE_DIR)/Pods-ReactNativeCreateWidgetTutorial-tvOSTests-checkManifestLockResult.txt", 534 | ); 535 | runOnlyForDeploymentPostprocessing = 0; 536 | shellPath = /bin/sh; 537 | 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"; 538 | showEnvVarsInLog = 0; 539 | }; 540 | E999A225AE7164DB8343FA5B /* [CP] Check Pods Manifest.lock */ = { 541 | isa = PBXShellScriptBuildPhase; 542 | buildActionMask = 2147483647; 543 | files = ( 544 | ); 545 | inputFileListPaths = ( 546 | ); 547 | inputPaths = ( 548 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 549 | "${PODS_ROOT}/Manifest.lock", 550 | ); 551 | name = "[CP] Check Pods Manifest.lock"; 552 | outputFileListPaths = ( 553 | ); 554 | outputPaths = ( 555 | "$(DERIVED_FILE_DIR)/Pods-ReactNativeCreateWidgetTutorialTests-checkManifestLockResult.txt", 556 | ); 557 | runOnlyForDeploymentPostprocessing = 0; 558 | shellPath = /bin/sh; 559 | 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"; 560 | showEnvVarsInLog = 0; 561 | }; 562 | F9556C8E6C059E940C1FA0B6 /* [CP] Check Pods Manifest.lock */ = { 563 | isa = PBXShellScriptBuildPhase; 564 | buildActionMask = 2147483647; 565 | files = ( 566 | ); 567 | inputFileListPaths = ( 568 | ); 569 | inputPaths = ( 570 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 571 | "${PODS_ROOT}/Manifest.lock", 572 | ); 573 | name = "[CP] Check Pods Manifest.lock"; 574 | outputFileListPaths = ( 575 | ); 576 | outputPaths = ( 577 | "$(DERIVED_FILE_DIR)/Pods-ReactNativeCreateWidgetTutorial-checkManifestLockResult.txt", 578 | ); 579 | runOnlyForDeploymentPostprocessing = 0; 580 | shellPath = /bin/sh; 581 | 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"; 582 | showEnvVarsInLog = 0; 583 | }; 584 | FD10A7F022414F080027D42C /* Start Packager */ = { 585 | isa = PBXShellScriptBuildPhase; 586 | buildActionMask = 2147483647; 587 | files = ( 588 | ); 589 | inputFileListPaths = ( 590 | ); 591 | inputPaths = ( 592 | ); 593 | name = "Start Packager"; 594 | outputFileListPaths = ( 595 | ); 596 | outputPaths = ( 597 | ); 598 | runOnlyForDeploymentPostprocessing = 0; 599 | shellPath = /bin/sh; 600 | 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"; 601 | showEnvVarsInLog = 0; 602 | }; 603 | FD10A7F122414F3F0027D42C /* Start Packager */ = { 604 | isa = PBXShellScriptBuildPhase; 605 | buildActionMask = 2147483647; 606 | files = ( 607 | ); 608 | inputFileListPaths = ( 609 | ); 610 | inputPaths = ( 611 | ); 612 | name = "Start Packager"; 613 | outputFileListPaths = ( 614 | ); 615 | outputPaths = ( 616 | ); 617 | runOnlyForDeploymentPostprocessing = 0; 618 | shellPath = /bin/sh; 619 | 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"; 620 | showEnvVarsInLog = 0; 621 | }; 622 | /* End PBXShellScriptBuildPhase section */ 623 | 624 | /* Begin PBXSourcesBuildPhase section */ 625 | 00E356EA1AD99517003FC87E /* Sources */ = { 626 | isa = PBXSourcesBuildPhase; 627 | buildActionMask = 2147483647; 628 | files = ( 629 | 00E356F31AD99517003FC87E /* ReactNativeCreateWidgetTutorialTests.m in Sources */, 630 | ); 631 | runOnlyForDeploymentPostprocessing = 0; 632 | }; 633 | 13B07F871A680F5B00A75B9A /* Sources */ = { 634 | isa = PBXSourcesBuildPhase; 635 | buildActionMask = 2147483647; 636 | files = ( 637 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 638 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 639 | 659E1464232954650044CC02 /* SharedStorage.m in Sources */, 640 | ); 641 | runOnlyForDeploymentPostprocessing = 0; 642 | }; 643 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 644 | isa = PBXSourcesBuildPhase; 645 | buildActionMask = 2147483647; 646 | files = ( 647 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 648 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 649 | ); 650 | runOnlyForDeploymentPostprocessing = 0; 651 | }; 652 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 653 | isa = PBXSourcesBuildPhase; 654 | buildActionMask = 2147483647; 655 | files = ( 656 | 2DCD954D1E0B4F2C00145EB5 /* ReactNativeCreateWidgetTutorialTests.m in Sources */, 657 | ); 658 | runOnlyForDeploymentPostprocessing = 0; 659 | }; 660 | 659E144D23294C020044CC02 /* Sources */ = { 661 | isa = PBXSourcesBuildPhase; 662 | buildActionMask = 2147483647; 663 | files = ( 664 | 659E145623294C030044CC02 /* TodayViewController.swift in Sources */, 665 | ); 666 | runOnlyForDeploymentPostprocessing = 0; 667 | }; 668 | /* End PBXSourcesBuildPhase section */ 669 | 670 | /* Begin PBXTargetDependency section */ 671 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 672 | isa = PBXTargetDependency; 673 | target = 13B07F861A680F5B00A75B9A /* ReactNativeCreateWidgetTutorial */; 674 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 675 | }; 676 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 677 | isa = PBXTargetDependency; 678 | target = 2D02E47A1E0B4A5D006451C7 /* ReactNativeCreateWidgetTutorial-tvOS */; 679 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 680 | }; 681 | 659E145C23294C030044CC02 /* PBXTargetDependency */ = { 682 | isa = PBXTargetDependency; 683 | target = 659E145023294C020044CC02 /* Widget */; 684 | targetProxy = 659E145B23294C030044CC02 /* PBXContainerItemProxy */; 685 | }; 686 | /* End PBXTargetDependency section */ 687 | 688 | /* Begin PBXVariantGroup section */ 689 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 690 | isa = PBXVariantGroup; 691 | children = ( 692 | 13B07FB21A68108700A75B9A /* Base */, 693 | ); 694 | name = LaunchScreen.xib; 695 | path = ReactNativeCreateWidgetTutorial; 696 | sourceTree = ""; 697 | }; 698 | 659E145723294C030044CC02 /* MainInterface.storyboard */ = { 699 | isa = PBXVariantGroup; 700 | children = ( 701 | 659E145823294C030044CC02 /* Base */, 702 | ); 703 | name = MainInterface.storyboard; 704 | sourceTree = ""; 705 | }; 706 | /* End PBXVariantGroup section */ 707 | 708 | /* Begin XCBuildConfiguration section */ 709 | 00E356F61AD99517003FC87E /* Debug */ = { 710 | isa = XCBuildConfiguration; 711 | baseConfigurationReference = C8D77908B5D3631A19952581 /* Pods-ReactNativeCreateWidgetTutorialTests.debug.xcconfig */; 712 | buildSettings = { 713 | BUNDLE_LOADER = "$(TEST_HOST)"; 714 | GCC_PREPROCESSOR_DEFINITIONS = ( 715 | "DEBUG=1", 716 | "$(inherited)", 717 | ); 718 | INFOPLIST_FILE = ReactNativeCreateWidgetTutorialTests/Info.plist; 719 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 720 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 721 | OTHER_LDFLAGS = ( 722 | "-ObjC", 723 | "-lc++", 724 | "$(inherited)", 725 | ); 726 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 727 | PRODUCT_NAME = "$(TARGET_NAME)"; 728 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativeCreateWidgetTutorial.app/ReactNativeCreateWidgetTutorial"; 729 | }; 730 | name = Debug; 731 | }; 732 | 00E356F71AD99517003FC87E /* Release */ = { 733 | isa = XCBuildConfiguration; 734 | baseConfigurationReference = E4E7671469D090EAECB03AF9 /* Pods-ReactNativeCreateWidgetTutorialTests.release.xcconfig */; 735 | buildSettings = { 736 | BUNDLE_LOADER = "$(TEST_HOST)"; 737 | COPY_PHASE_STRIP = NO; 738 | INFOPLIST_FILE = ReactNativeCreateWidgetTutorialTests/Info.plist; 739 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 740 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 741 | OTHER_LDFLAGS = ( 742 | "-ObjC", 743 | "-lc++", 744 | "$(inherited)", 745 | ); 746 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 747 | PRODUCT_NAME = "$(TARGET_NAME)"; 748 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativeCreateWidgetTutorial.app/ReactNativeCreateWidgetTutorial"; 749 | }; 750 | name = Release; 751 | }; 752 | 13B07F941A680F5B00A75B9A /* Debug */ = { 753 | isa = XCBuildConfiguration; 754 | baseConfigurationReference = D10726F0B462CE73BC77F198 /* Pods-ReactNativeCreateWidgetTutorial.debug.xcconfig */; 755 | buildSettings = { 756 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 757 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 758 | CODE_SIGN_ENTITLEMENTS = ReactNativeCreateWidgetTutorial/ReactNativeCreateWidgetTutorial.entitlements; 759 | CODE_SIGN_IDENTITY = "iPhone Developer"; 760 | CURRENT_PROJECT_VERSION = 1; 761 | DEAD_CODE_STRIPPING = NO; 762 | DEVELOPMENT_TEAM = PGA539E5WX; 763 | INFOPLIST_FILE = ReactNativeCreateWidgetTutorial/Info.plist; 764 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 765 | OTHER_LDFLAGS = ( 766 | "$(inherited)", 767 | "-ObjC", 768 | "-lc++", 769 | ); 770 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 771 | PRODUCT_NAME = ReactNativeCreateWidgetTutorial; 772 | VERSIONING_SYSTEM = "apple-generic"; 773 | }; 774 | name = Debug; 775 | }; 776 | 13B07F951A680F5B00A75B9A /* Release */ = { 777 | isa = XCBuildConfiguration; 778 | baseConfigurationReference = E5388FE5A4D4F4CFF4FB7A32 /* Pods-ReactNativeCreateWidgetTutorial.release.xcconfig */; 779 | buildSettings = { 780 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 781 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 782 | CODE_SIGN_ENTITLEMENTS = ReactNativeCreateWidgetTutorial/ReactNativeCreateWidgetTutorial.entitlements; 783 | CODE_SIGN_IDENTITY = "iPhone Developer"; 784 | CURRENT_PROJECT_VERSION = 1; 785 | DEVELOPMENT_TEAM = PGA539E5WX; 786 | INFOPLIST_FILE = ReactNativeCreateWidgetTutorial/Info.plist; 787 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 788 | OTHER_LDFLAGS = ( 789 | "$(inherited)", 790 | "-ObjC", 791 | "-lc++", 792 | ); 793 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 794 | PRODUCT_NAME = ReactNativeCreateWidgetTutorial; 795 | VERSIONING_SYSTEM = "apple-generic"; 796 | }; 797 | name = Release; 798 | }; 799 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 800 | isa = XCBuildConfiguration; 801 | baseConfigurationReference = 9AB7B69E8B940AD1ABBEDE0D /* Pods-ReactNativeCreateWidgetTutorial-tvOS.debug.xcconfig */; 802 | buildSettings = { 803 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 804 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 805 | CLANG_ANALYZER_NONNULL = YES; 806 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 807 | CLANG_WARN_INFINITE_RECURSION = YES; 808 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 809 | DEBUG_INFORMATION_FORMAT = dwarf; 810 | ENABLE_TESTABILITY = YES; 811 | GCC_NO_COMMON_BLOCKS = YES; 812 | INFOPLIST_FILE = "ReactNativeCreateWidgetTutorial-tvOS/Info.plist"; 813 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 814 | OTHER_LDFLAGS = ( 815 | "$(inherited)", 816 | "-ObjC", 817 | "-lc++", 818 | ); 819 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.ReactNativeCreateWidgetTutorial-tvOS"; 820 | PRODUCT_NAME = "$(TARGET_NAME)"; 821 | SDKROOT = appletvos; 822 | TARGETED_DEVICE_FAMILY = 3; 823 | TVOS_DEPLOYMENT_TARGET = 9.2; 824 | }; 825 | name = Debug; 826 | }; 827 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 828 | isa = XCBuildConfiguration; 829 | baseConfigurationReference = 148AC769C739E5CD6885A27A /* Pods-ReactNativeCreateWidgetTutorial-tvOS.release.xcconfig */; 830 | buildSettings = { 831 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 832 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 833 | CLANG_ANALYZER_NONNULL = YES; 834 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 835 | CLANG_WARN_INFINITE_RECURSION = YES; 836 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 837 | COPY_PHASE_STRIP = NO; 838 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 839 | GCC_NO_COMMON_BLOCKS = YES; 840 | INFOPLIST_FILE = "ReactNativeCreateWidgetTutorial-tvOS/Info.plist"; 841 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 842 | OTHER_LDFLAGS = ( 843 | "$(inherited)", 844 | "-ObjC", 845 | "-lc++", 846 | ); 847 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.ReactNativeCreateWidgetTutorial-tvOS"; 848 | PRODUCT_NAME = "$(TARGET_NAME)"; 849 | SDKROOT = appletvos; 850 | TARGETED_DEVICE_FAMILY = 3; 851 | TVOS_DEPLOYMENT_TARGET = 9.2; 852 | }; 853 | name = Release; 854 | }; 855 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 856 | isa = XCBuildConfiguration; 857 | baseConfigurationReference = 3A9CA28FE0FA15BCB3E093DA /* Pods-ReactNativeCreateWidgetTutorial-tvOSTests.debug.xcconfig */; 858 | buildSettings = { 859 | BUNDLE_LOADER = "$(TEST_HOST)"; 860 | CLANG_ANALYZER_NONNULL = YES; 861 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 862 | CLANG_WARN_INFINITE_RECURSION = YES; 863 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 864 | DEBUG_INFORMATION_FORMAT = dwarf; 865 | ENABLE_TESTABILITY = YES; 866 | GCC_NO_COMMON_BLOCKS = YES; 867 | INFOPLIST_FILE = "ReactNativeCreateWidgetTutorial-tvOSTests/Info.plist"; 868 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 869 | OTHER_LDFLAGS = ( 870 | "$(inherited)", 871 | "-ObjC", 872 | "-lc++", 873 | ); 874 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.ReactNativeCreateWidgetTutorial-tvOSTests"; 875 | PRODUCT_NAME = "$(TARGET_NAME)"; 876 | SDKROOT = appletvos; 877 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativeCreateWidgetTutorial-tvOS.app/ReactNativeCreateWidgetTutorial-tvOS"; 878 | TVOS_DEPLOYMENT_TARGET = 10.1; 879 | }; 880 | name = Debug; 881 | }; 882 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 883 | isa = XCBuildConfiguration; 884 | baseConfigurationReference = 4E555499D7EFBA9640B9C64B /* Pods-ReactNativeCreateWidgetTutorial-tvOSTests.release.xcconfig */; 885 | buildSettings = { 886 | BUNDLE_LOADER = "$(TEST_HOST)"; 887 | CLANG_ANALYZER_NONNULL = YES; 888 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 889 | CLANG_WARN_INFINITE_RECURSION = YES; 890 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 891 | COPY_PHASE_STRIP = NO; 892 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 893 | GCC_NO_COMMON_BLOCKS = YES; 894 | INFOPLIST_FILE = "ReactNativeCreateWidgetTutorial-tvOSTests/Info.plist"; 895 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 896 | OTHER_LDFLAGS = ( 897 | "$(inherited)", 898 | "-ObjC", 899 | "-lc++", 900 | ); 901 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.ReactNativeCreateWidgetTutorial-tvOSTests"; 902 | PRODUCT_NAME = "$(TARGET_NAME)"; 903 | SDKROOT = appletvos; 904 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativeCreateWidgetTutorial-tvOS.app/ReactNativeCreateWidgetTutorial-tvOS"; 905 | TVOS_DEPLOYMENT_TARGET = 10.1; 906 | }; 907 | name = Release; 908 | }; 909 | 659E145F23294C030044CC02 /* Debug */ = { 910 | isa = XCBuildConfiguration; 911 | buildSettings = { 912 | CLANG_ANALYZER_NONNULL = YES; 913 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 914 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 915 | CLANG_ENABLE_OBJC_WEAK = YES; 916 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 917 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 918 | CODE_SIGN_ENTITLEMENTS = Widget/Widget.entitlements; 919 | CODE_SIGN_IDENTITY = "iPhone Developer"; 920 | CODE_SIGN_STYLE = Automatic; 921 | DEBUG_INFORMATION_FORMAT = dwarf; 922 | DEVELOPMENT_TEAM = PGA539E5WX; 923 | GCC_C_LANGUAGE_STANDARD = gnu11; 924 | INFOPLIST_FILE = Widget/Info.plist; 925 | IPHONEOS_DEPLOYMENT_TARGET = 12.1; 926 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"; 927 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 928 | MTL_FAST_MATH = YES; 929 | PRODUCT_BUNDLE_IDENTIFIER = org.reactjs.native.example.ReactNativeCreateWidgetTutorial.Widget; 930 | PRODUCT_NAME = "$(TARGET_NAME)"; 931 | SKIP_INSTALL = YES; 932 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 933 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 934 | SWIFT_VERSION = 4.2; 935 | TARGETED_DEVICE_FAMILY = "1,2"; 936 | }; 937 | name = Debug; 938 | }; 939 | 659E146023294C030044CC02 /* Release */ = { 940 | isa = XCBuildConfiguration; 941 | buildSettings = { 942 | CLANG_ANALYZER_NONNULL = YES; 943 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 944 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 945 | CLANG_ENABLE_OBJC_WEAK = YES; 946 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 947 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 948 | CODE_SIGN_ENTITLEMENTS = Widget/Widget.entitlements; 949 | CODE_SIGN_IDENTITY = "iPhone Developer"; 950 | CODE_SIGN_STYLE = Automatic; 951 | COPY_PHASE_STRIP = NO; 952 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 953 | DEVELOPMENT_TEAM = PGA539E5WX; 954 | GCC_C_LANGUAGE_STANDARD = gnu11; 955 | INFOPLIST_FILE = Widget/Info.plist; 956 | IPHONEOS_DEPLOYMENT_TARGET = 12.1; 957 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"; 958 | MTL_FAST_MATH = YES; 959 | PRODUCT_BUNDLE_IDENTIFIER = org.reactjs.native.example.ReactNativeCreateWidgetTutorial.Widget; 960 | PRODUCT_NAME = "$(TARGET_NAME)"; 961 | SKIP_INSTALL = YES; 962 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 963 | SWIFT_VERSION = 4.2; 964 | TARGETED_DEVICE_FAMILY = "1,2"; 965 | }; 966 | name = Release; 967 | }; 968 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 969 | isa = XCBuildConfiguration; 970 | buildSettings = { 971 | ALWAYS_SEARCH_USER_PATHS = NO; 972 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 973 | CLANG_CXX_LIBRARY = "libc++"; 974 | CLANG_ENABLE_MODULES = YES; 975 | CLANG_ENABLE_OBJC_ARC = YES; 976 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 977 | CLANG_WARN_BOOL_CONVERSION = YES; 978 | CLANG_WARN_COMMA = YES; 979 | CLANG_WARN_CONSTANT_CONVERSION = YES; 980 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 981 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 982 | CLANG_WARN_EMPTY_BODY = YES; 983 | CLANG_WARN_ENUM_CONVERSION = YES; 984 | CLANG_WARN_INFINITE_RECURSION = YES; 985 | CLANG_WARN_INT_CONVERSION = YES; 986 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 987 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 988 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 989 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 990 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 991 | CLANG_WARN_STRICT_PROTOTYPES = YES; 992 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 993 | CLANG_WARN_UNREACHABLE_CODE = YES; 994 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 995 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 996 | COPY_PHASE_STRIP = NO; 997 | ENABLE_STRICT_OBJC_MSGSEND = YES; 998 | ENABLE_TESTABILITY = YES; 999 | GCC_C_LANGUAGE_STANDARD = gnu99; 1000 | GCC_DYNAMIC_NO_PIC = NO; 1001 | GCC_NO_COMMON_BLOCKS = YES; 1002 | GCC_OPTIMIZATION_LEVEL = 0; 1003 | GCC_PREPROCESSOR_DEFINITIONS = ( 1004 | "DEBUG=1", 1005 | "$(inherited)", 1006 | ); 1007 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 1008 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1009 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1010 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1011 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1012 | GCC_WARN_UNUSED_FUNCTION = YES; 1013 | GCC_WARN_UNUSED_VARIABLE = YES; 1014 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1015 | MTL_ENABLE_DEBUG_INFO = YES; 1016 | ONLY_ACTIVE_ARCH = YES; 1017 | SDKROOT = iphoneos; 1018 | }; 1019 | name = Debug; 1020 | }; 1021 | 83CBBA211A601CBA00E9B192 /* Release */ = { 1022 | isa = XCBuildConfiguration; 1023 | buildSettings = { 1024 | ALWAYS_SEARCH_USER_PATHS = NO; 1025 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1026 | CLANG_CXX_LIBRARY = "libc++"; 1027 | CLANG_ENABLE_MODULES = YES; 1028 | CLANG_ENABLE_OBJC_ARC = YES; 1029 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 1030 | CLANG_WARN_BOOL_CONVERSION = YES; 1031 | CLANG_WARN_COMMA = YES; 1032 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1033 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 1034 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1035 | CLANG_WARN_EMPTY_BODY = YES; 1036 | CLANG_WARN_ENUM_CONVERSION = YES; 1037 | CLANG_WARN_INFINITE_RECURSION = YES; 1038 | CLANG_WARN_INT_CONVERSION = YES; 1039 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 1040 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 1041 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 1042 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1043 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 1044 | CLANG_WARN_STRICT_PROTOTYPES = YES; 1045 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1046 | CLANG_WARN_UNREACHABLE_CODE = YES; 1047 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1048 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1049 | COPY_PHASE_STRIP = YES; 1050 | ENABLE_NS_ASSERTIONS = NO; 1051 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1052 | GCC_C_LANGUAGE_STANDARD = gnu99; 1053 | GCC_NO_COMMON_BLOCKS = YES; 1054 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1055 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1056 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1057 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1058 | GCC_WARN_UNUSED_FUNCTION = YES; 1059 | GCC_WARN_UNUSED_VARIABLE = YES; 1060 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1061 | MTL_ENABLE_DEBUG_INFO = NO; 1062 | SDKROOT = iphoneos; 1063 | VALIDATE_PRODUCT = YES; 1064 | }; 1065 | name = Release; 1066 | }; 1067 | /* End XCBuildConfiguration section */ 1068 | 1069 | /* Begin XCConfigurationList section */ 1070 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ReactNativeCreateWidgetTutorialTests" */ = { 1071 | isa = XCConfigurationList; 1072 | buildConfigurations = ( 1073 | 00E356F61AD99517003FC87E /* Debug */, 1074 | 00E356F71AD99517003FC87E /* Release */, 1075 | ); 1076 | defaultConfigurationIsVisible = 0; 1077 | defaultConfigurationName = Release; 1078 | }; 1079 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativeCreateWidgetTutorial" */ = { 1080 | isa = XCConfigurationList; 1081 | buildConfigurations = ( 1082 | 13B07F941A680F5B00A75B9A /* Debug */, 1083 | 13B07F951A680F5B00A75B9A /* Release */, 1084 | ); 1085 | defaultConfigurationIsVisible = 0; 1086 | defaultConfigurationName = Release; 1087 | }; 1088 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ReactNativeCreateWidgetTutorial-tvOS" */ = { 1089 | isa = XCConfigurationList; 1090 | buildConfigurations = ( 1091 | 2D02E4971E0B4A5E006451C7 /* Debug */, 1092 | 2D02E4981E0B4A5E006451C7 /* Release */, 1093 | ); 1094 | defaultConfigurationIsVisible = 0; 1095 | defaultConfigurationName = Release; 1096 | }; 1097 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ReactNativeCreateWidgetTutorial-tvOSTests" */ = { 1098 | isa = XCConfigurationList; 1099 | buildConfigurations = ( 1100 | 2D02E4991E0B4A5E006451C7 /* Debug */, 1101 | 2D02E49A1E0B4A5E006451C7 /* Release */, 1102 | ); 1103 | defaultConfigurationIsVisible = 0; 1104 | defaultConfigurationName = Release; 1105 | }; 1106 | 659E145E23294C030044CC02 /* Build configuration list for PBXNativeTarget "Widget" */ = { 1107 | isa = XCConfigurationList; 1108 | buildConfigurations = ( 1109 | 659E145F23294C030044CC02 /* Debug */, 1110 | 659E146023294C030044CC02 /* Release */, 1111 | ); 1112 | defaultConfigurationIsVisible = 0; 1113 | defaultConfigurationName = Release; 1114 | }; 1115 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactNativeCreateWidgetTutorial" */ = { 1116 | isa = XCConfigurationList; 1117 | buildConfigurations = ( 1118 | 83CBBA201A601CBA00E9B192 /* Debug */, 1119 | 83CBBA211A601CBA00E9B192 /* Release */, 1120 | ); 1121 | defaultConfigurationIsVisible = 0; 1122 | defaultConfigurationName = Release; 1123 | }; 1124 | /* End XCConfigurationList section */ 1125 | }; 1126 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1127 | } 1128 | -------------------------------------------------------------------------------- /ios/ReactNativeCreateWidgetTutorial.xcodeproj/xcshareddata/xcschemes/ReactNativeCreateWidgetTutorial-tvOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /ios/ReactNativeCreateWidgetTutorial.xcodeproj/xcshareddata/xcschemes/ReactNativeCreateWidgetTutorial.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /ios/ReactNativeCreateWidgetTutorial.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/ReactNativeCreateWidgetTutorial.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/ReactNativeCreateWidgetTutorial/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (nonatomic, strong) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /ios/ReactNativeCreateWidgetTutorial/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "AppDelegate.h" 9 | 10 | #import 11 | #import 12 | #import 13 | 14 | @implementation AppDelegate 15 | 16 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 17 | { 18 | RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; 19 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge 20 | moduleName:@"ReactNativeCreateWidgetTutorial" 21 | initialProperties:nil]; 22 | 23 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 24 | 25 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 26 | UIViewController *rootViewController = [UIViewController new]; 27 | rootViewController.view = rootView; 28 | self.window.rootViewController = rootViewController; 29 | [self.window makeKeyAndVisible]; 30 | return YES; 31 | } 32 | 33 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge 34 | { 35 | #if DEBUG 36 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 37 | #else 38 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 39 | #endif 40 | } 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /ios/ReactNativeCreateWidgetTutorial/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /ios/ReactNativeCreateWidgetTutorial/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/ReactNativeCreateWidgetTutorial/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /ios/ReactNativeCreateWidgetTutorial/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ReactNativeCreateWidgetTutorial 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/ReactNativeCreateWidgetTutorial/ReactNativeCreateWidgetTutorial.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.application-groups 6 | 7 | group.com.createwidget.pimenta 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/ReactNativeCreateWidgetTutorial/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /ios/ReactNativeCreateWidgetTutorialTests/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/ReactNativeCreateWidgetTutorialTests/ReactNativeCreateWidgetTutorialTests.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | #import 10 | 11 | #import 12 | #import 13 | 14 | #define TIMEOUT_SECONDS 600 15 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" 16 | 17 | @interface ReactNativeCreateWidgetTutorialTests : XCTestCase 18 | 19 | @end 20 | 21 | @implementation ReactNativeCreateWidgetTutorialTests 22 | 23 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 24 | { 25 | if (test(view)) { 26 | return YES; 27 | } 28 | for (UIView *subview in [view subviews]) { 29 | if ([self findSubviewInView:subview matching:test]) { 30 | return YES; 31 | } 32 | } 33 | return NO; 34 | } 35 | 36 | - (void)testRendersWelcomeScreen 37 | { 38 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; 39 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 40 | BOOL foundElement = NO; 41 | 42 | __block NSString *redboxError = nil; 43 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 44 | if (level >= RCTLogLevelError) { 45 | redboxError = message; 46 | } 47 | }); 48 | 49 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 50 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 51 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 52 | 53 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 54 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 55 | return YES; 56 | } 57 | return NO; 58 | }]; 59 | } 60 | 61 | RCTSetLogFunction(RCTDefaultLogFunction); 62 | 63 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 64 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 65 | } 66 | 67 | 68 | @end 69 | -------------------------------------------------------------------------------- /ios/SharedStorage.h: -------------------------------------------------------------------------------- 1 | // 2 | // SharedStorage.h 3 | // hodl 4 | // 5 | // Created by Andre Pimenta on 19/09/2018. 6 | // Copyright © 2018 Facebook. All rights reserved. 7 | // 8 | 9 | #import "React/RCTBridgeModule.h" 10 | 11 | @interface SharedStorage : NSObject 12 | 13 | @end -------------------------------------------------------------------------------- /ios/SharedStorage.m: -------------------------------------------------------------------------------- 1 | // 2 | // SharedStorage.m 3 | // hodl 4 | // 5 | // Created by Andre Pimenta on 19/09/2018. 6 | // Copyright © 2018 Facebook. All rights reserved. 7 | // 8 | 9 | #import "SharedStorage.h" 10 | #import "React/RCTLog.h" 11 | 12 | @implementation SharedStorage 13 | 14 | RCT_EXPORT_MODULE(); 15 | 16 | // We can send back a promise to our JavaScript environment :) 17 | RCT_EXPORT_METHOD(set:(NSString *)data 18 | resolver:(RCTPromiseResolveBlock)resolve 19 | rejecter:(RCTPromiseRejectBlock)reject) 20 | { 21 | @try{ 22 | NSUserDefaults *shared = [[NSUserDefaults alloc]initWithSuiteName:@"group.com.createwidget.pimenta"]; 23 | [shared setObject:data forKey:@"data"]; 24 | [shared synchronize]; 25 | resolve(@"true"); 26 | }@catch(NSException *exception){ 27 | reject(@"get_error",exception.reason, nil); 28 | } 29 | 30 | } 31 | 32 | @end -------------------------------------------------------------------------------- /ios/Widget/Base.lproj/MainInterface.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /ios/Widget/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | Widget 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | XPC! 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleVersion 22 | 1 23 | NSExtension 24 | 25 | NSExtensionMainStoryboard 26 | MainInterface 27 | NSExtensionPointIdentifier 28 | com.apple.widget-extension 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /ios/Widget/TodayViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TodayViewController.swift 3 | // Widget 4 | // 5 | // Created by Andre Pimenta on 28/07/2019. 6 | // Copyright © 2019 Facebook. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import NotificationCenter 11 | 12 | struct Shared:Decodable { 13 | let text: String 14 | } 15 | 16 | class TodayViewController: UIViewController, NCWidgetProviding { 17 | @IBOutlet weak var textLabel: UILabel! 18 | 19 | //CHANGE THE GROUP NAME 20 | let userDefaults = UserDefaults(suiteName: "group.com.createwidget.pimenta") 21 | 22 | override func viewDidLoad() { 23 | super.viewDidLoad() 24 | // Do any additional setup after loading the view from its nib. 25 | 26 | //ADD THIS 27 | do{ 28 | let shared = userDefaults?.string(forKey: "data") 29 | if(shared != nil){ 30 | let data = try JSONDecoder().decode(Shared.self, from: shared!.data(using: .utf8)!) 31 | textLabel.text = data.text 32 | } 33 | }catch{ 34 | print(error) 35 | } 36 | } 37 | 38 | func widgetPerformUpdate(completionHandler: (@escaping (NCUpdateResult) -> Void)) { 39 | // Perform any setup necessary in order to update the view. 40 | 41 | // If an error is encountered, use NCUpdateResult.Failed 42 | // If there's no update required, use NCUpdateResult.NoData 43 | // If there's an update, use NCUpdateResult.NewData 44 | 45 | completionHandler(NCUpdateResult.newData) 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /ios/Widget/Widget.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.application-groups 6 | 7 | group.com.createwidget.pimenta 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": "ReactNativeCreateWidgetTutorial", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "start": "react-native start", 7 | "test": "jest", 8 | "lint": "eslint ." 9 | }, 10 | "dependencies": { 11 | "react": "16.8.6", 12 | "react-native": "0.60.5" 13 | }, 14 | "devDependencies": { 15 | "@babel/core": "^7.6.0", 16 | "@babel/runtime": "^7.6.0", 17 | "@react-native-community/eslint-config": "^0.0.5", 18 | "babel-jest": "^24.9.0", 19 | "eslint": "^6.3.0", 20 | "jest": "^24.9.0", 21 | "metro-react-native-babel-preset": "^0.56.0", 22 | "react-test-renderer": "16.8.6" 23 | }, 24 | "jest": { 25 | "preset": "react-native" 26 | } 27 | } 28 | --------------------------------------------------------------------------------