├── .gitattributes
├── .gitignore
├── LICENSE
├── README.md
├── SpruceExample
├── .babelrc
├── .buckconfig
├── .flowconfig
├── .gitattributes
├── .gitignore
├── .watchmanconfig
├── App.js
├── Grid.js
├── List.js
├── __tests__
│ └── App.js
├── android
│ ├── .project
│ ├── .settings
│ │ └── org.eclipse.buildship.core.prefs
│ ├── app
│ │ ├── .classpath
│ │ ├── .project
│ │ ├── .settings
│ │ │ └── org.eclipse.buildship.core.prefs
│ │ ├── BUCK
│ │ ├── build.gradle
│ │ ├── proguard-rules.pro
│ │ └── src
│ │ │ └── main
│ │ │ ├── AndroidManifest.xml
│ │ │ ├── java
│ │ │ └── com
│ │ │ │ └── spruceexample
│ │ │ │ ├── MainActivity.java
│ │ │ │ └── MainApplication.java
│ │ │ └── res
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ └── values
│ │ │ ├── strings.xml
│ │ │ └── styles.xml
│ ├── build.gradle
│ ├── gradle.properties
│ ├── gradle
│ │ └── wrapper
│ │ │ ├── gradle-wrapper.jar
│ │ │ └── gradle-wrapper.properties
│ ├── gradlew
│ ├── gradlew.bat
│ ├── keystores
│ │ ├── BUCK
│ │ └── debug.keystore.properties
│ └── settings.gradle
├── app.json
├── index.js
├── ios
│ ├── SpruceExample-tvOS
│ │ └── Info.plist
│ ├── SpruceExample-tvOSTests
│ │ └── Info.plist
│ ├── SpruceExample.xcodeproj
│ │ ├── project.pbxproj
│ │ └── xcshareddata
│ │ │ └── xcschemes
│ │ │ ├── SpruceExample-tvOS.xcscheme
│ │ │ └── SpruceExample.xcscheme
│ ├── SpruceExample
│ │ ├── AppDelegate.h
│ │ ├── AppDelegate.m
│ │ ├── Base.lproj
│ │ │ └── LaunchScreen.xib
│ │ ├── Images.xcassets
│ │ │ ├── AppIcon.appiconset
│ │ │ │ └── Contents.json
│ │ │ └── Contents.json
│ │ ├── Info.plist
│ │ └── main.m
│ └── SpruceExampleTests
│ │ ├── Info.plist
│ │ └── SpruceExampleTests.m
└── package.json
├── android
├── .classpath
├── .project
├── .settings
│ └── org.eclipse.buildship.core.prefs
├── build.gradle
└── src
│ └── main
│ ├── AndroidManifest.xml
│ └── java
│ └── ui
│ └── spruce
│ ├── RNSpruceModule.java
│ ├── RNSprucePackage.java
│ └── RNSpruceViewComponent.java
├── index.android.js
├── index.ios.js
├── ios
├── RNSpruce.h
├── RNSpruce.m
├── RNSpruce.podspec
├── RNSpruce.xcodeproj
│ └── project.pbxproj
└── RNSpruce.xcworkspace
│ └── contents.xcworkspacedata
├── js
├── Spruce.js
├── animation
│ ├── DefaultAnimations.js
│ └── index.js
├── index.js
└── sort
│ ├── ContinuousSort.js
│ ├── CorneredSort.js
│ ├── DefaultSort.js
│ ├── LinearSort.js
│ ├── RadialSort.js
│ ├── RandomSort.js
│ └── index.js
└── package.json
/.gitattributes:
--------------------------------------------------------------------------------
1 | *.pbxproj -text
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | # OSX
3 | #
4 | .DS_Store
5 |
6 | # node.js
7 | #
8 | node_modules/
9 | npm-debug.log
10 | yarn-error.log
11 |
12 |
13 | # Xcode
14 | #
15 | build/
16 | *.pbxuser
17 | !default.pbxuser
18 | *.mode1v3
19 | !default.mode1v3
20 | *.mode2v3
21 | !default.mode2v3
22 | *.perspectivev3
23 | !default.perspectivev3
24 | xcuserdata
25 | *.xccheckout
26 | *.moved-aside
27 | DerivedData
28 | *.hmap
29 | *.ipa
30 | *.xcuserstate
31 | project.xcworkspace
32 |
33 |
34 | # Android/IntelliJ
35 | #
36 | build/
37 | .idea
38 | .gradle
39 | local.properties
40 | *.iml
41 |
42 | # BUCK
43 | buck-out/
44 | \.buckd/
45 | *.keystore
46 |
47 |
48 | .history/*
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "[]"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright @ [Pranav Raj Singh Chauhan]
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | ReactNative Spruce - (Android & iOS): Deprecated
15 |
16 | Due to time constraint, this library is deprecated and not maintained anymore, You can still use this library.
17 |
18 | If this project has helped you out, please support us with a star 🌟
19 |
20 |
21 | Spruce is a lightweight animation library that helps choreograph the animations on the screen. With so many different animation libraries out there, developers need to make sure that each view is animating at the appropriate time. Spruce can help designers request complex multi-view animations and not have the developers cringe at the prototype.
22 |
23 | It provides a React Native Bridge around native spruce library. Here is a quick example of how you can Spruce up your screens!
24 |
25 | > **Note**: Currently on iOS it is not supported due to unavailable of Spruce Objective-C wrappers, please refer issue: [101](https://github.com/willowtreeapps/spruce-ios/issues/101)
26 |
27 |
28 |
29 |
30 |
31 | ## 📖 Getting started
32 |
33 | `$ npm install react-native-spruce --save`
34 |
35 | `$ react-native link react-native-spruce`
36 |
37 | - **Android**
38 |
39 | - Please copy below snippet in your app `build.gradle` file:
40 |
41 | ```
42 | buildscript {
43 | repositories {
44 | jcenter()
45 | google()
46 | ...
47 | }
48 | }
49 |
50 | allprojects {
51 | repositories {
52 | mavenLocal()
53 | jcenter()
54 | google()
55 | ...
56 | }
57 | }
58 | ```
59 |
60 | > **Note**: Android SDK 27 > is supported
61 |
62 | ## 💻 Usage
63 |
64 | ```javascript
65 | import {
66 | Spruce,
67 | CorneredSort,
68 | DefaultAnimations
69 | } from "react-native-spruce";
70 |
71 |
72 | // TODO: What to do with the module?
73 |
74 | render () {
75 | let sortWith = new CorneredSort(100);
76 | let animateWith = DefaultAnimations.shrinkAnimator(1000)
77 |
78 |
79 |
80 |
81 | }
82 |
83 | ```
84 |
85 | ## Using a SortFunction
86 | Luckily, RNSpruce comes with 8 `SortFunction` implementations with a wide open possibility to make more! Use the `SortFunction` to change the order in which views animate. Consider the following example:
87 |
88 | ```javascript
89 | let sort = new LinearSort(/*interObjectDelay=*/100L, /*reversed=*/false, LinearSort.Direction.TOP_TO_BOTTOM);
90 | ```
91 |
92 | To make sure that developers can use RNSpruce out of the box, we included about 8 stock `SortFunction` implementations. These are some of the main functions we use at WillowTree and are so excited to see what others come up with!
93 |
94 | - `DefaultSort`
95 | ```javascript
96 | let sort = new DefaultSort(/*interObjectDelay=*/100L);
97 | ```
98 |
99 | - `LinearSort`
100 | ```javascript
101 | let sort = new LinearSort(/*interObjectDelay=*/100L, /*reversed=*/false, LinearSort.Direction.TOP_TO_BOTTOM);
102 | ```
103 |
104 | - `CorneredSort`
105 | ```javascript
106 | let sort = new CorneredSort(/*interObjectDelay=*/100L, /*reversed=*/false, CorneredSort.Corner.TOP_LEFT);
107 | ```
108 |
109 | - `RadialSort`
110 | ```javascript
111 | let sort = new RadialSort(/*interObjectDelay=*/100L, /*reversed=*/false, RadialSort.Position.TOP_LEFT);
112 | ```
113 |
114 | - `RandomSort`
115 | ```javascript
116 | let sort = new RandomSort(/*interObjectDelay=*/100L);
117 | ```
118 |
119 | - `InlineSort`
120 | ```javascript
121 | let sort = new InlineSort(/*interObjectDelay=*/100L, /*reversed=*/false, LinearSort.Direction.TOP_TO_BOTTOM);
122 | ```
123 |
124 | - `ContinousSort`
125 | ```javascript
126 | let sort = new ContinousSort(/*interObjectDelay=*/100L, /*reversed=*/false, ContinousSort.Position.TOP_LEFT);
127 | ```
128 |
129 | ## Stock Animators
130 |
131 | To make everybody's lives easier, the stock animators perform basic View animations that a lot of apps use today. Mix and match these animators to get the core motion you are looking for.
132 |
133 | - `DefaultAnimations.growAnimator(duration:number)`
134 | - `DefaultAnimations.shrinkAnimator(duration:number)`
135 | - `DefaultAnimations.fadeAwayAnimator(duration:number)`
136 | - `DefaultAnimations.fadeInAnimator(duration:number)`
137 | - `DefaultAnimations.spinAnimator(duration:number)`
138 |
139 |
140 | Experiment which ones work for you! If you think of anymore feel free to add them to the library yourself!
141 |
142 |
143 | ## ✨ Credits
144 |
145 | - [willowtreeapps/spruce-android](https://github.com/willowtreeapps/spruce-android)
146 | - [willowtreeapps/spruce-ios](https://github.com/willowtreeapps/spruce-ios)
147 |
148 | ## 🤔 How to contribute
149 | Have an idea? Found a bug? Please raise to [ISSUES](https://github.com/prscX/react-native-spruce/issues).
150 | Contributions are welcome and are greatly appreciated! Every little bit helps, and credit will always be given.
151 |
152 | ## 💫 Where is this library used?
153 | If you are using this library in one of your projects, add it in this list below. ✨
154 |
155 |
156 | ## 📜 License
157 | This library is provided under the Apache 2 License.
158 |
159 | RNSpruce @ [prscX](https://github.com/prscX)
160 |
161 | ## 💖 Support my projects
162 | I open-source almost everything I can, and I try to reply everyone needing help using these projects. Obviously, this takes time. You can integrate and use these projects in your applications for free! You can even change the source code and redistribute (even resell it).
163 |
164 | However, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:
165 | * Starring and sharing the projects you like 🚀
166 | * If you're feeling especially charitable, please follow [prscX](https://github.com/prscX) on GitHub.
167 |
168 |
169 |
170 | Thanks! ❤️
171 |
172 | [prscX.github.io](https://prscx.github.io)
173 |
174 | Pranav >
175 |
--------------------------------------------------------------------------------
/SpruceExample/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["react-native"]
3 | }
4 |
--------------------------------------------------------------------------------
/SpruceExample/.buckconfig:
--------------------------------------------------------------------------------
1 |
2 | [android]
3 | target = Google Inc.:Google APIs:23
4 |
5 | [maven_repositories]
6 | central = https://repo1.maven.org/maven2
7 |
--------------------------------------------------------------------------------
/SpruceExample/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | ; We fork some components by platform
3 | .*/*[.]android.js
4 |
5 | ; Ignore "BUCK" generated dirs
6 | /\.buckd/
7 |
8 | ; Ignore unexpected extra "@providesModule"
9 | .*/node_modules/.*/node_modules/fbjs/.*
10 |
11 | ; Ignore duplicate module providers
12 | ; For RN Apps installed via npm, "Libraries" folder is inside
13 | ; "node_modules/react-native" but in the source repo it is in the root
14 | .*/Libraries/react-native/React.js
15 |
16 | ; Ignore polyfills
17 | .*/Libraries/polyfills/.*
18 |
19 | [include]
20 |
21 | [libs]
22 | node_modules/react-native/Libraries/react-native/react-native-interface.js
23 | node_modules/react-native/flow/
24 |
25 | [options]
26 | emoji=true
27 |
28 | module.system=haste
29 |
30 | munge_underscores=true
31 |
32 | 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'
33 |
34 | suppress_type=$FlowIssue
35 | suppress_type=$FlowFixMe
36 | suppress_type=$FlowFixMeProps
37 | suppress_type=$FlowFixMeState
38 | suppress_type=$FixMe
39 |
40 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(5[0-7]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
41 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(5[0-7]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
42 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
43 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
44 |
45 | unsafe.enable_getters_and_setters=true
46 |
47 | [version]
48 | ^0.57.0
49 |
--------------------------------------------------------------------------------
/SpruceExample/.gitattributes:
--------------------------------------------------------------------------------
1 | *.pbxproj -text
2 |
--------------------------------------------------------------------------------
/SpruceExample/.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 |
--------------------------------------------------------------------------------
/SpruceExample/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/SpruceExample/App.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from "react";
2 | import { StyleSheet, View, Text } from "react-native";
3 | import GridView from "react-native-super-grid"; // 2.0.2
4 | import { Spruce, CorneredSort, DefaultAnimations } from "react-native-spruce"; // 0.0.2
5 |
6 | export default class App extends Component {
7 | render() {
8 | let sortWith = new CorneredSort(60);
9 | let animateWith = DefaultAnimations.growAnimator(1000);
10 | const items = [
11 | { name: "TURQUOISE", code: "#1abc9c" },
12 | { name: "EMERALD", code: "#2ecc71" },
13 | { name: "PETER RIVER", code: "#3498db" },
14 | { name: "AMETHYST", code: "#9b59b6" },
15 | { name: "WET ASPHALT", code: "#34495e" },
16 | { name: "GREEN SEA", code: "#16a085" },
17 | { name: "NEPHRITIS", code: "#27ae60" },
18 | { name: "BELIZE HOLE", code: "#2980b9" },
19 | { name: "WISTERIA", code: "#8e44ad" },
20 | { name: "MIDNIGHT BLUE", code: "#2c3e50" },
21 | { name: "SUN FLOWER", code: "#f1c40f" },
22 | { name: "CARROT", code: "#e67e22" },
23 | { name: "ALIZARIN", code: "#e74c3c" },
24 | { name: "CLOUDS", code: "#ecf0f1" },
25 | { name: "CONCRETE", code: "#95a5a6" },
26 | { name: "ORANGE", code: "#f39c12" },
27 | { name: "PUMPKIN", code: "#d35400" },
28 | { name: "POMEGRANATE", code: "#c0392b" },
29 | { name: "SILVER", code: "#bdc3c7" },
30 | { name: "ASBESTOS", code: "#7f8c8d" },
31 | { name: "TURQUOISE", code: "#1abc9c" },
32 | { name: "EMERALD", code: "#2ecc71" },
33 | { name: "PETER RIVER", code: "#3498db" },
34 | { name: "AMETHYST", code: "#9b59b6" },
35 | { name: "WET ASPHALT", code: "#34495e" },
36 | { name: "GREEN SEA", code: "#16a085" },
37 | { name: "NEPHRITIS", code: "#27ae60" },
38 | { name: "BELIZE HOLE", code: "#2980b9" },
39 | { name: "WISTERIA", code: "#8e44ad" },
40 | { name: "MIDNIGHT BLUE", code: "#2c3e50" },
41 | { name: "SUN FLOWER", code: "#f1c40f" },
42 | { name: "CARROT", code: "#e67e22" },
43 | { name: "ALIZARIN", code: "#e74c3c" },
44 | { name: "CLOUDS", code: "#ecf0f1" },
45 | { name: "CONCRETE", code: "#95a5a6" },
46 | { name: "ORANGE", code: "#f39c12" },
47 | { name: "PUMPKIN", code: "#d35400" },
48 | { name: "POMEGRANATE", code: "#c0392b" },
49 | { name: "SILVER", code: "#bdc3c7" },
50 | { name: "ASBESTOS", code: "#7f8c8d" },
51 | { name: "TURQUOISE", code: "#1abc9c" },
52 | { name: "EMERALD", code: "#2ecc71" },
53 | { name: "PETER RIVER", code: "#3498db" },
54 | { name: "AMETHYST", code: "#9b59b6" },
55 | { name: "WET ASPHALT", code: "#34495e" },
56 | { name: "GREEN SEA", code: "#16a085" },
57 | { name: "NEPHRITIS", code: "#27ae60" },
58 | { name: "BELIZE HOLE", code: "#2980b9" },
59 | { name: "WISTERIA", code: "#8e44ad" },
60 | { name: "MIDNIGHT BLUE", code: "#2c3e50" },
61 | { name: "SUN FLOWER", code: "#f1c40f" },
62 | { name: "CARROT", code: "#e67e22" },
63 | { name: "ALIZARIN", code: "#e74c3c" },
64 | { name: "CLOUDS", code: "#ecf0f1" },
65 | { name: "CONCRETE", code: "#95a5a6" },
66 | { name: "ORANGE", code: "#f39c12" },
67 | { name: "PUMPKIN", code: "#d35400" },
68 | { name: "POMEGRANATE", code: "#c0392b" },
69 | { name: "SILVER", code: "#bdc3c7" },
70 | { name: "ASBESTOS", code: "#7f8c8d" },
71 | { name: "TURQUOISE", code: "#1abc9c" },
72 | { name: "EMERALD", code: "#2ecc71" },
73 | { name: "PETER RIVER", code: "#3498db" },
74 | { name: "AMETHYST", code: "#9b59b6" },
75 | { name: "WET ASPHALT", code: "#34495e" },
76 | { name: "GREEN SEA", code: "#16a085" },
77 | { name: "NEPHRITIS", code: "#27ae60" },
78 | { name: "BELIZE HOLE", code: "#2980b9" },
79 | { name: "WISTERIA", code: "#8e44ad" },
80 | { name: "MIDNIGHT BLUE", code: "#2c3e50" },
81 | { name: "SUN FLOWER", code: "#f1c40f" },
82 | { name: "CARROT", code: "#e67e22" },
83 | { name: "ALIZARIN", code: "#e74c3c" },
84 | { name: "CLOUDS", code: "#ecf0f1" },
85 | { name: "CONCRETE", code: "#95a5a6" },
86 | { name: "ORANGE", code: "#f39c12" },
87 | { name: "PUMPKIN", code: "#d35400" },
88 | { name: "POMEGRANATE", code: "#c0392b" },
89 | { name: "SILVER", code: "#bdc3c7" },
90 | { name: "ASBESTOS", code: "#7f8c8d" },
91 | { name: "TURQUOISE", code: "#1abc9c" },
92 | { name: "EMERALD", code: "#2ecc71" },
93 | { name: "PETER RIVER", code: "#3498db" },
94 | { name: "AMETHYST", code: "#9b59b6" },
95 | { name: "WET ASPHALT", code: "#34495e" },
96 | { name: "GREEN SEA", code: "#16a085" },
97 | { name: "NEPHRITIS", code: "#27ae60" },
98 | { name: "BELIZE HOLE", code: "#2980b9" },
99 | { name: "WISTERIA", code: "#8e44ad" },
100 | { name: "MIDNIGHT BLUE", code: "#2c3e50" },
101 | { name: "SUN FLOWER", code: "#f1c40f" },
102 | { name: "CARROT", code: "#e67e22" },
103 | { name: "ALIZARIN", code: "#e74c3c" },
104 | { name: "CLOUDS", code: "#ecf0f1" },
105 | { name: "CONCRETE", code: "#95a5a6" },
106 | { name: "ORANGE", code: "#f39c12" },
107 | { name: "PUMPKIN", code: "#d35400" },
108 | { name: "POMEGRANATE", code: "#c0392b" },
109 | { name: "SILVER", code: "#bdc3c7" },
110 | { name: "ASBESTOS", code: "#7f8c8d" },
111 | { name: "TURQUOISE", code: "#1abc9c" },
112 | { name: "EMERALD", code: "#2ecc71" },
113 | { name: "PETER RIVER", code: "#3498db" },
114 | { name: "AMETHYST", code: "#9b59b6" },
115 | { name: "WET ASPHALT", code: "#34495e" },
116 | { name: "GREEN SEA", code: "#16a085" },
117 | { name: "NEPHRITIS", code: "#27ae60" },
118 | { name: "BELIZE HOLE", code: "#2980b9" },
119 | { name: "WISTERIA", code: "#8e44ad" },
120 | { name: "MIDNIGHT BLUE", code: "#2c3e50" },
121 | { name: "SUN FLOWER", code: "#f1c40f" },
122 | { name: "CARROT", code: "#e67e22" },
123 | { name: "ALIZARIN", code: "#e74c3c" },
124 | { name: "CLOUDS", code: "#ecf0f1" },
125 | { name: "CONCRETE", code: "#95a5a6" },
126 | { name: "ORANGE", code: "#f39c12" },
127 | { name: "PUMPKIN", code: "#d35400" },
128 | { name: "POMEGRANATE", code: "#c0392b" },
129 | { name: "SILVER", code: "#bdc3c7" },
130 | { name: "ASBESTOS", code: "#7f8c8d" }
131 | ];
132 |
133 | return (
134 |
143 | (
148 |
151 | {item.name}
152 | {item.code}
153 |
154 | )}
155 | />
156 |
157 | );
158 | }
159 | }
160 |
161 | const styles = StyleSheet.create({
162 | gridView: {
163 | paddingTop: 25,
164 | flex: 1
165 | },
166 | itemContainer: {
167 | justifyContent: "flex-end",
168 | borderRadius: 5,
169 | padding: 10,
170 | height: 150
171 | },
172 | itemName: {
173 | fontSize: 16,
174 | color: "#fff",
175 | fontWeight: "600"
176 | },
177 | itemCode: {
178 | fontWeight: "600",
179 | fontSize: 12,
180 | color: "#fff"
181 | }
182 | });
183 |
--------------------------------------------------------------------------------
/SpruceExample/Grid.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from "react";
2 | import { StyleSheet, View, Text } from "react-native";
3 | import GridView from "react-native-super-grid"; // 2.0.2
4 | import { Spruce, CorneredSort, DefaultAnimations } from "react-native-spruce"; // 0.0.2
5 |
6 | export default class Grid extends Component {
7 | render() {
8 | let sortWith = new CorneredSort(60);
9 | let animateWith = DefaultAnimations.growAnimator(1000);
10 | const items = [
11 | { name: "TURQUOISE", code: "#1abc9c" },
12 | { name: "EMERALD", code: "#2ecc71" },
13 | { name: "PETER RIVER", code: "#3498db" },
14 | { name: "AMETHYST", code: "#9b59b6" },
15 | { name: "WET ASPHALT", code: "#34495e" },
16 | { name: "GREEN SEA", code: "#16a085" },
17 | { name: "NEPHRITIS", code: "#27ae60" },
18 | { name: "BELIZE HOLE", code: "#2980b9" },
19 | { name: "WISTERIA", code: "#8e44ad" },
20 | { name: "MIDNIGHT BLUE", code: "#2c3e50" },
21 | { name: "SUN FLOWER", code: "#f1c40f" },
22 | { name: "CARROT", code: "#e67e22" },
23 | { name: "ALIZARIN", code: "#e74c3c" },
24 | { name: "CLOUDS", code: "#ecf0f1" },
25 | { name: "CONCRETE", code: "#95a5a6" },
26 | { name: "ORANGE", code: "#f39c12" },
27 | { name: "PUMPKIN", code: "#d35400" },
28 | { name: "POMEGRANATE", code: "#c0392b" },
29 | { name: "SILVER", code: "#bdc3c7" },
30 | { name: "ASBESTOS", code: "#7f8c8d" },
31 | { name: "TURQUOISE", code: "#1abc9c" },
32 | { name: "EMERALD", code: "#2ecc71" },
33 | { name: "PETER RIVER", code: "#3498db" },
34 | { name: "AMETHYST", code: "#9b59b6" },
35 | { name: "WET ASPHALT", code: "#34495e" },
36 | { name: "GREEN SEA", code: "#16a085" },
37 | { name: "NEPHRITIS", code: "#27ae60" },
38 | { name: "BELIZE HOLE", code: "#2980b9" },
39 | { name: "WISTERIA", code: "#8e44ad" },
40 | { name: "MIDNIGHT BLUE", code: "#2c3e50" },
41 | { name: "SUN FLOWER", code: "#f1c40f" },
42 | { name: "CARROT", code: "#e67e22" },
43 | { name: "ALIZARIN", code: "#e74c3c" },
44 | { name: "CLOUDS", code: "#ecf0f1" },
45 | { name: "CONCRETE", code: "#95a5a6" },
46 | { name: "ORANGE", code: "#f39c12" },
47 | { name: "PUMPKIN", code: "#d35400" },
48 | { name: "POMEGRANATE", code: "#c0392b" },
49 | { name: "SILVER", code: "#bdc3c7" },
50 | { name: "ASBESTOS", code: "#7f8c8d" },
51 | { name: "TURQUOISE", code: "#1abc9c" },
52 | { name: "EMERALD", code: "#2ecc71" },
53 | { name: "PETER RIVER", code: "#3498db" },
54 | { name: "AMETHYST", code: "#9b59b6" },
55 | { name: "WET ASPHALT", code: "#34495e" },
56 | { name: "GREEN SEA", code: "#16a085" },
57 | { name: "NEPHRITIS", code: "#27ae60" },
58 | { name: "BELIZE HOLE", code: "#2980b9" },
59 | { name: "WISTERIA", code: "#8e44ad" },
60 | { name: "MIDNIGHT BLUE", code: "#2c3e50" },
61 | { name: "SUN FLOWER", code: "#f1c40f" },
62 | { name: "CARROT", code: "#e67e22" },
63 | { name: "ALIZARIN", code: "#e74c3c" },
64 | { name: "CLOUDS", code: "#ecf0f1" },
65 | { name: "CONCRETE", code: "#95a5a6" },
66 | { name: "ORANGE", code: "#f39c12" },
67 | { name: "PUMPKIN", code: "#d35400" },
68 | { name: "POMEGRANATE", code: "#c0392b" },
69 | { name: "SILVER", code: "#bdc3c7" },
70 | { name: "ASBESTOS", code: "#7f8c8d" },
71 | { name: "TURQUOISE", code: "#1abc9c" },
72 | { name: "EMERALD", code: "#2ecc71" },
73 | { name: "PETER RIVER", code: "#3498db" },
74 | { name: "AMETHYST", code: "#9b59b6" },
75 | { name: "WET ASPHALT", code: "#34495e" },
76 | { name: "GREEN SEA", code: "#16a085" },
77 | { name: "NEPHRITIS", code: "#27ae60" },
78 | { name: "BELIZE HOLE", code: "#2980b9" },
79 | { name: "WISTERIA", code: "#8e44ad" },
80 | { name: "MIDNIGHT BLUE", code: "#2c3e50" },
81 | { name: "SUN FLOWER", code: "#f1c40f" },
82 | { name: "CARROT", code: "#e67e22" },
83 | { name: "ALIZARIN", code: "#e74c3c" },
84 | { name: "CLOUDS", code: "#ecf0f1" },
85 | { name: "CONCRETE", code: "#95a5a6" },
86 | { name: "ORANGE", code: "#f39c12" },
87 | { name: "PUMPKIN", code: "#d35400" },
88 | { name: "POMEGRANATE", code: "#c0392b" },
89 | { name: "SILVER", code: "#bdc3c7" },
90 | { name: "ASBESTOS", code: "#7f8c8d" },
91 | { name: "TURQUOISE", code: "#1abc9c" },
92 | { name: "EMERALD", code: "#2ecc71" },
93 | { name: "PETER RIVER", code: "#3498db" },
94 | { name: "AMETHYST", code: "#9b59b6" },
95 | { name: "WET ASPHALT", code: "#34495e" },
96 | { name: "GREEN SEA", code: "#16a085" },
97 | { name: "NEPHRITIS", code: "#27ae60" },
98 | { name: "BELIZE HOLE", code: "#2980b9" },
99 | { name: "WISTERIA", code: "#8e44ad" },
100 | { name: "MIDNIGHT BLUE", code: "#2c3e50" },
101 | { name: "SUN FLOWER", code: "#f1c40f" },
102 | { name: "CARROT", code: "#e67e22" },
103 | { name: "ALIZARIN", code: "#e74c3c" },
104 | { name: "CLOUDS", code: "#ecf0f1" },
105 | { name: "CONCRETE", code: "#95a5a6" },
106 | { name: "ORANGE", code: "#f39c12" },
107 | { name: "PUMPKIN", code: "#d35400" },
108 | { name: "POMEGRANATE", code: "#c0392b" },
109 | { name: "SILVER", code: "#bdc3c7" },
110 | { name: "ASBESTOS", code: "#7f8c8d" },
111 | { name: "TURQUOISE", code: "#1abc9c" },
112 | { name: "EMERALD", code: "#2ecc71" },
113 | { name: "PETER RIVER", code: "#3498db" },
114 | { name: "AMETHYST", code: "#9b59b6" },
115 | { name: "WET ASPHALT", code: "#34495e" },
116 | { name: "GREEN SEA", code: "#16a085" },
117 | { name: "NEPHRITIS", code: "#27ae60" },
118 | { name: "BELIZE HOLE", code: "#2980b9" },
119 | { name: "WISTERIA", code: "#8e44ad" },
120 | { name: "MIDNIGHT BLUE", code: "#2c3e50" },
121 | { name: "SUN FLOWER", code: "#f1c40f" },
122 | { name: "CARROT", code: "#e67e22" },
123 | { name: "ALIZARIN", code: "#e74c3c" },
124 | { name: "CLOUDS", code: "#ecf0f1" },
125 | { name: "CONCRETE", code: "#95a5a6" },
126 | { name: "ORANGE", code: "#f39c12" },
127 | { name: "PUMPKIN", code: "#d35400" },
128 | { name: "POMEGRANATE", code: "#c0392b" },
129 | { name: "SILVER", code: "#bdc3c7" },
130 | { name: "ASBESTOS", code: "#7f8c8d" }
131 | ];
132 |
133 | return (
134 |
143 | (
148 |
151 | {item.name}
152 | {item.code}
153 |
154 | )}
155 | />
156 |
157 | );
158 | }
159 | }
160 |
161 | const styles = StyleSheet.create({
162 | gridView: {
163 | paddingTop: 25,
164 | flex: 1
165 | },
166 | itemContainer: {
167 | justifyContent: "flex-end",
168 | borderRadius: 5,
169 | padding: 10,
170 | height: 150
171 | },
172 | itemName: {
173 | fontSize: 16,
174 | color: "#fff",
175 | fontWeight: "600"
176 | },
177 | itemCode: {
178 | fontWeight: "600",
179 | fontSize: 12,
180 | color: "#fff"
181 | }
182 | });
183 |
--------------------------------------------------------------------------------
/SpruceExample/List.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Sample React Native App
3 | * https://github.com/facebook/react-native
4 | * @flow
5 | */
6 |
7 | import React, { Component } from "react";
8 | import {
9 | Platform,
10 | StyleSheet,
11 | Text,
12 | View,
13 | findNodeHandle,
14 | FlatList
15 | } from "react-native";
16 |
17 | import {
18 | Spruce,
19 | DefaultSort,
20 | RandomSort,
21 | CorneredSort,
22 | LinearSort,
23 | RadialSort,
24 | DefaultAnimations
25 | } from "react-native-spruce";
26 | import Placeholder from "rn-placeholder";
27 |
28 | const instructions = Platform.select({
29 | ios: "Press Cmd+R to reload,\n" + "Cmd+D or shake for dev menu",
30 | android:
31 | "Double tap R on your keyboard to reload,\n" +
32 | "Shake or press menu button for dev menu"
33 | });
34 |
35 | const items = [
36 | {
37 | topicCat: "Wise"
38 | },
39 | {
40 | topicCat: "Wise 1"
41 | },
42 | {
43 | topicCat: "Wise 2"
44 | },
45 | {
46 | topicCat: "Wise 3"
47 | },
48 | {
49 | topicCat: "Wise 4"
50 | },
51 | {
52 | topicCat: "Wise 5"
53 | },
54 | {
55 | topicCat: "Wise 6"
56 | }
57 | ];
58 |
59 | export default class List extends Component<{}> {
60 | renderFlatListItem(item) {
61 | return (
62 |
63 |
73 |
82 |
83 | Placeholder has finished :D
84 |
85 |
86 |
87 |
88 | );
89 | }
90 |
91 | renderSeparator() {
92 | return ;
93 | }
94 |
95 | render() {
96 | let sortWith = new CorneredSort(100);
97 | let animateWith = DefaultAnimations.shrinkAnimator(1000);
98 |
99 | return (
100 |
101 |
110 | this.renderFlatListItem(item)}
114 | ItemSeparatorComponent={this.renderSeparator}
115 | style={{ backgroundColor: "#ededed" }}
116 | keyExtractor={(item, index) => index}
117 | />
118 |
119 |
120 | );
121 | }
122 | }
123 |
124 | const styles = StyleSheet.create({
125 | container: {
126 | flex: 1,
127 | justifyContent: "center",
128 | alignItems: "center",
129 | backgroundColor: "#F5FCFF"
130 | },
131 | welcome: {
132 | fontSize: 20,
133 | textAlign: "center",
134 | margin: 10
135 | },
136 | instructions: {
137 | textAlign: "center",
138 | color: "#333333",
139 | marginBottom: 5
140 | }
141 | });
142 |
--------------------------------------------------------------------------------
/SpruceExample/__tests__/App.js:
--------------------------------------------------------------------------------
1 | import 'react-native';
2 | import React from 'react';
3 | import App from '../App';
4 |
5 | // Note: test renderer must be required after react-native.
6 | import renderer from 'react-test-renderer';
7 |
8 | it('renders correctly', () => {
9 | const tree = renderer.create(
10 |
11 | );
12 | });
13 |
--------------------------------------------------------------------------------
/SpruceExample/android/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | SpruceExample
4 | Project SpruceExample 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 |
--------------------------------------------------------------------------------
/SpruceExample/android/.settings/org.eclipse.buildship.core.prefs:
--------------------------------------------------------------------------------
1 | #Mon May 21 14:56:15 IST 2018
2 | connection.project.dir=
3 |
--------------------------------------------------------------------------------
/SpruceExample/android/app/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/SpruceExample/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 |
--------------------------------------------------------------------------------
/SpruceExample/android/app/.settings/org.eclipse.buildship.core.prefs:
--------------------------------------------------------------------------------
1 | #Mon May 21 14:56:16 IST 2018
2 | connection.project.dir=..
3 |
--------------------------------------------------------------------------------
/SpruceExample/android/app/BUCK:
--------------------------------------------------------------------------------
1 | # To learn about Buck see [Docs](https://buckbuild.com/).
2 | # To run your application with Buck:
3 | # - install Buck
4 | # - `npm start` - to start the packager
5 | # - `cd android`
6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
8 | # - `buck install -r android/app` - compile, install and run application
9 | #
10 |
11 | lib_deps = []
12 |
13 | for jarfile in glob(['libs/*.jar']):
14 | name = 'jars__' + jarfile[jarfile.rindex('/') + 1: jarfile.rindex('.jar')]
15 | lib_deps.append(':' + name)
16 | prebuilt_jar(
17 | name = name,
18 | binary_jar = jarfile,
19 | )
20 |
21 | for aarfile in glob(['libs/*.aar']):
22 | name = 'aars__' + aarfile[aarfile.rindex('/') + 1: aarfile.rindex('.aar')]
23 | lib_deps.append(':' + name)
24 | android_prebuilt_aar(
25 | name = name,
26 | aar = aarfile,
27 | )
28 |
29 | android_library(
30 | name = "all-libs",
31 | exported_deps = lib_deps,
32 | )
33 |
34 | android_library(
35 | name = "app-code",
36 | srcs = glob([
37 | "src/main/java/**/*.java",
38 | ]),
39 | deps = [
40 | ":all-libs",
41 | ":build_config",
42 | ":res",
43 | ],
44 | )
45 |
46 | android_build_config(
47 | name = "build_config",
48 | package = "com.spruceexample",
49 | )
50 |
51 | android_resource(
52 | name = "res",
53 | package = "com.spruceexample",
54 | res = "src/main/res",
55 | )
56 |
57 | android_binary(
58 | name = "app",
59 | keystore = "//android/keystores:debug",
60 | manifest = "src/main/AndroidManifest.xml",
61 | package_type = "debug",
62 | deps = [
63 | ":app-code",
64 | ],
65 | )
66 |
--------------------------------------------------------------------------------
/SpruceExample/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: "com.android.application"
2 |
3 | import com.android.build.OutputFile
4 |
5 | /**
6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
7 | * and bundleReleaseJsAndAssets).
8 | * These basically call `react-native bundle` with the correct arguments during the Android build
9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
10 | * bundle directly from the development server. Below you can see all the possible configurations
11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the
12 | * `apply from: "../../node_modules/react-native/react.gradle"` line.
13 | *
14 | * project.ext.react = [
15 | * // the name of the generated asset file containing your JS bundle
16 | * bundleAssetName: "index.android.bundle",
17 | *
18 | * // the entry file for bundle generation
19 | * entryFile: "index.android.js",
20 | *
21 | * // whether to bundle JS and assets in debug mode
22 | * bundleInDebug: false,
23 | *
24 | * // whether to bundle JS and assets in release mode
25 | * bundleInRelease: true,
26 | *
27 | * // whether to bundle JS and assets in another build variant (if configured).
28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
29 | * // The configuration property can be in the following formats
30 | * // 'bundleIn${productFlavor}${buildType}'
31 | * // 'bundleIn${buildType}'
32 | * // bundleInFreeDebug: true,
33 | * // bundleInPaidRelease: true,
34 | * // bundleInBeta: true,
35 | *
36 | * // whether to disable dev mode in custom build variants (by default only disabled in release)
37 | * // for example: to disable dev mode in the staging build type (if configured)
38 | * devDisabledInStaging: true,
39 | * // The configuration property can be in the following formats
40 | * // 'devDisabledIn${productFlavor}${buildType}'
41 | * // 'devDisabledIn${buildType}'
42 | *
43 | * // the root of your project, i.e. where "package.json" lives
44 | * root: "../../",
45 | *
46 | * // where to put the JS bundle asset in debug mode
47 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
48 | *
49 | * // where to put the JS bundle asset in release mode
50 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release",
51 | *
52 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
53 | * // require('./image.png')), in debug mode
54 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
55 | *
56 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
57 | * // require('./image.png')), in release mode
58 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
59 | *
60 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means
61 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
62 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle
63 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
64 | * // for example, you might want to remove it from here.
65 | * inputExcludes: ["android/**", "ios/**"],
66 | *
67 | * // override which node gets called and with what additional arguments
68 | * nodeExecutableAndArgs: ["node"],
69 | *
70 | * // supply additional arguments to the packager
71 | * extraPackagerArgs: []
72 | * ]
73 | */
74 |
75 | project.ext.react = [
76 | entryFile: "index.js"
77 | ]
78 |
79 | apply from: "../../node_modules/react-native/react.gradle"
80 |
81 | /**
82 | * Set this to true to create two separate APKs instead of one:
83 | * - An APK that only works on ARM devices
84 | * - An APK that only works on x86 devices
85 | * The advantage is the size of the APK is reduced by about 4MB.
86 | * Upload all the APKs to the Play Store and people will download
87 | * the correct one based on the CPU architecture of their device.
88 | */
89 | def enableSeparateBuildPerCPUArchitecture = false
90 |
91 | /**
92 | * Run Proguard to shrink the Java bytecode in release builds.
93 | */
94 | def enableProguardInReleaseBuilds = false
95 |
96 | android {
97 | compileSdkVersion 27
98 | buildToolsVersion "27.0.3"
99 |
100 | defaultConfig {
101 | applicationId "com.spruceexample"
102 | minSdkVersion 16
103 | targetSdkVersion 27
104 | versionCode 1
105 | versionName "1.0"
106 | ndk {
107 | abiFilters "armeabi-v7a", "x86"
108 | }
109 | }
110 | splits {
111 | abi {
112 | reset()
113 | enable enableSeparateBuildPerCPUArchitecture
114 | universalApk false // If true, also generate a universal APK
115 | include "armeabi-v7a", "x86"
116 | }
117 | }
118 | buildTypes {
119 | release {
120 | minifyEnabled enableProguardInReleaseBuilds
121 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
122 | }
123 | }
124 | // applicationVariants are e.g. debug, release
125 | applicationVariants.all { variant ->
126 | variant.outputs.each { output ->
127 | // For each separate APK per architecture, set a unique version code as described here:
128 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
129 | def versionCodes = ["armeabi-v7a":1, "x86":2]
130 | def abi = output.getFilter(OutputFile.ABI)
131 | if (abi != null) { // null for the universal-debug, universal-release variants
132 | output.versionCodeOverride =
133 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
134 | }
135 | }
136 | }
137 | }
138 |
139 | dependencies {
140 | compile fileTree(dir: "libs", include: ["*.jar"])
141 | compile "com.facebook.react:react-native:+" // From node_modules
142 | compile project(':react-native-spruce')
143 | }
144 |
145 | // Run this once to be able to run the application with BUCK
146 | // puts all compile dependencies into folder libs for BUCK to use
147 | task copyDownloadableDepsToLibs(type: Copy) {
148 | from configurations.compile
149 | into 'libs'
150 | }
151 |
--------------------------------------------------------------------------------
/SpruceExample/android/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
19 | # Disabling obfuscation is useful if you collect stack traces from production crashes
20 | # (unless you are using a system that supports de-obfuscate the stack traces).
21 | -dontobfuscate
22 |
23 | # React Native
24 |
25 | # Keep our interfaces so they can be used by other ProGuard rules.
26 | # See http://sourceforge.net/p/proguard/bugs/466/
27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip
28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters
29 | -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip
30 |
31 | # Do not strip any method/class that is annotated with @DoNotStrip
32 | -keep @com.facebook.proguard.annotations.DoNotStrip class *
33 | -keep @com.facebook.common.internal.DoNotStrip class *
34 | -keepclassmembers class * {
35 | @com.facebook.proguard.annotations.DoNotStrip *;
36 | @com.facebook.common.internal.DoNotStrip *;
37 | }
38 |
39 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * {
40 | void set*(***);
41 | *** get*();
42 | }
43 |
44 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; }
45 | -keep class * extends com.facebook.react.bridge.NativeModule { *; }
46 | -keepclassmembers,includedescriptorclasses class * { native ; }
47 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; }
48 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; }
49 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; }
50 |
51 | -dontwarn com.facebook.react.**
52 |
53 | # TextLayoutBuilder uses a non-public Android constructor within StaticLayout.
54 | # See libs/proxy/src/main/java/com/facebook/fbui/textlayoutbuilder/proxy for details.
55 | -dontwarn android.text.StaticLayout
56 |
57 | # okhttp
58 |
59 | -keepattributes Signature
60 | -keepattributes *Annotation*
61 | -keep class okhttp3.** { *; }
62 | -keep interface okhttp3.** { *; }
63 | -dontwarn okhttp3.**
64 |
65 | # okio
66 |
67 | -keep class sun.misc.Unsafe { *; }
68 | -dontwarn java.nio.file.*
69 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
70 | -dontwarn okio.**
71 |
--------------------------------------------------------------------------------
/SpruceExample/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
12 |
13 |
19 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/SpruceExample/android/app/src/main/java/com/spruceexample/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.spruceexample;
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 "SpruceExample";
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/SpruceExample/android/app/src/main/java/com/spruceexample/MainApplication.java:
--------------------------------------------------------------------------------
1 | package com.spruceexample;
2 |
3 | import android.app.Application;
4 |
5 | import com.facebook.react.ReactApplication;
6 | import ui.spruce.RNSprucePackage;
7 | import com.facebook.react.ReactNativeHost;
8 | import com.facebook.react.ReactPackage;
9 | import com.facebook.react.shell.MainReactPackage;
10 | import com.facebook.soloader.SoLoader;
11 |
12 | import java.util.Arrays;
13 | import java.util.List;
14 |
15 | public class MainApplication extends Application implements ReactApplication {
16 |
17 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
18 | @Override
19 | public boolean getUseDeveloperSupport() {
20 | return BuildConfig.DEBUG;
21 | }
22 |
23 | @Override
24 | protected List getPackages() {
25 | return Arrays.asList(
26 | new MainReactPackage(),
27 | new RNSprucePackage()
28 | );
29 | }
30 |
31 | @Override
32 | protected String getJSMainModuleName() {
33 | return "index";
34 | }
35 | };
36 |
37 | @Override
38 | public ReactNativeHost getReactNativeHost() {
39 | return mReactNativeHost;
40 | }
41 |
42 | @Override
43 | public void onCreate() {
44 | super.onCreate();
45 | SoLoader.init(this, /* native exopackage */ false);
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/SpruceExample/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prscX/react-native-spruce/6eef94ef6758b64c6c5560ba6c3ca0d7786a6e8b/SpruceExample/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SpruceExample/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prscX/react-native-spruce/6eef94ef6758b64c6c5560ba6c3ca0d7786a6e8b/SpruceExample/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SpruceExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prscX/react-native-spruce/6eef94ef6758b64c6c5560ba6c3ca0d7786a6e8b/SpruceExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SpruceExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prscX/react-native-spruce/6eef94ef6758b64c6c5560ba6c3ca0d7786a6e8b/SpruceExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SpruceExample/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | SpruceExample
3 |
4 |
--------------------------------------------------------------------------------
/SpruceExample/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/SpruceExample/android/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | google()
7 | }
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.0.1'
10 |
11 | // NOTE: Do not place your application dependencies here; they belong
12 | // in the individual module build.gradle files
13 | }
14 | }
15 |
16 | allprojects {
17 | repositories {
18 | mavenLocal()
19 | jcenter()
20 | google()
21 | maven {
22 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
23 | url "$rootDir/../node_modules/react-native/android"
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/SpruceExample/android/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
19 |
20 | android.useDeprecatedNdk=true
21 |
--------------------------------------------------------------------------------
/SpruceExample/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prscX/react-native-spruce/6eef94ef6758b64c6c5560ba6c3ca0d7786a6e8b/SpruceExample/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/SpruceExample/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Wed Dec 13 16:45:21 IST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
7 |
--------------------------------------------------------------------------------
/SpruceExample/android/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10 | DEFAULT_JVM_OPTS=""
11 |
12 | APP_NAME="Gradle"
13 | APP_BASE_NAME=`basename "$0"`
14 |
15 | # Use the maximum available, or set MAX_FD != -1 to use that value.
16 | MAX_FD="maximum"
17 |
18 | warn ( ) {
19 | echo "$*"
20 | }
21 |
22 | die ( ) {
23 | echo
24 | echo "$*"
25 | echo
26 | exit 1
27 | }
28 |
29 | # OS specific support (must be 'true' or 'false').
30 | cygwin=false
31 | msys=false
32 | darwin=false
33 | case "`uname`" in
34 | CYGWIN* )
35 | cygwin=true
36 | ;;
37 | Darwin* )
38 | darwin=true
39 | ;;
40 | MINGW* )
41 | msys=true
42 | ;;
43 | esac
44 |
45 | # For Cygwin, ensure paths are in UNIX format before anything is touched.
46 | if $cygwin ; then
47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
48 | fi
49 |
50 | # Attempt to set APP_HOME
51 | # Resolve links: $0 may be a link
52 | PRG="$0"
53 | # Need this for relative symlinks.
54 | while [ -h "$PRG" ] ; do
55 | ls=`ls -ld "$PRG"`
56 | link=`expr "$ls" : '.*-> \(.*\)$'`
57 | if expr "$link" : '/.*' > /dev/null; then
58 | PRG="$link"
59 | else
60 | PRG=`dirname "$PRG"`"/$link"
61 | fi
62 | done
63 | SAVED="`pwd`"
64 | cd "`dirname \"$PRG\"`/" >&-
65 | APP_HOME="`pwd -P`"
66 | cd "$SAVED" >&-
67 |
68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
69 |
70 | # Determine the Java command to use to start the JVM.
71 | if [ -n "$JAVA_HOME" ] ; then
72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
73 | # IBM's JDK on AIX uses strange locations for the executables
74 | JAVACMD="$JAVA_HOME/jre/sh/java"
75 | else
76 | JAVACMD="$JAVA_HOME/bin/java"
77 | fi
78 | if [ ! -x "$JAVACMD" ] ; then
79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
80 |
81 | Please set the JAVA_HOME variable in your environment to match the
82 | location of your Java installation."
83 | fi
84 | else
85 | JAVACMD="java"
86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
87 |
88 | Please set the JAVA_HOME variable in your environment to match the
89 | location of your Java installation."
90 | fi
91 |
92 | # Increase the maximum file descriptors if we can.
93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
94 | MAX_FD_LIMIT=`ulimit -H -n`
95 | if [ $? -eq 0 ] ; then
96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
97 | MAX_FD="$MAX_FD_LIMIT"
98 | fi
99 | ulimit -n $MAX_FD
100 | if [ $? -ne 0 ] ; then
101 | warn "Could not set maximum file descriptor limit: $MAX_FD"
102 | fi
103 | else
104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
105 | fi
106 | fi
107 |
108 | # For Darwin, add options to specify how the application appears in the dock
109 | if $darwin; then
110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
111 | fi
112 |
113 | # For Cygwin, switch paths to Windows format before running java
114 | if $cygwin ; then
115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
158 | function splitJvmOpts() {
159 | JVM_OPTS=("$@")
160 | }
161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
163 |
164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
165 |
--------------------------------------------------------------------------------
/SpruceExample/android/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/SpruceExample/android/keystores/BUCK:
--------------------------------------------------------------------------------
1 | keystore(
2 | name = "debug",
3 | properties = "debug.keystore.properties",
4 | store = "debug.keystore",
5 | visibility = [
6 | "PUBLIC",
7 | ],
8 | )
9 |
--------------------------------------------------------------------------------
/SpruceExample/android/keystores/debug.keystore.properties:
--------------------------------------------------------------------------------
1 | key.store=debug.keystore
2 | key.alias=androiddebugkey
3 | key.store.password=android
4 | key.alias.password=android
5 |
--------------------------------------------------------------------------------
/SpruceExample/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'SpruceExample'
2 | include ':react-native-spruce'
3 | project(':react-native-spruce').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-spruce/android')
4 |
5 | include ':app'
6 |
--------------------------------------------------------------------------------
/SpruceExample/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "SpruceExample",
3 | "displayName": "SpruceExample"
4 | }
--------------------------------------------------------------------------------
/SpruceExample/index.js:
--------------------------------------------------------------------------------
1 | import { AppRegistry } from 'react-native';
2 | import App from './App';
3 |
4 | AppRegistry.registerComponent('SpruceExample', () => App);
5 |
--------------------------------------------------------------------------------
/SpruceExample/ios/SpruceExample-tvOS/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UIViewControllerBasedStatusBarAppearance
38 |
39 | NSLocationWhenInUseUsageDescription
40 |
41 | NSAppTransportSecurity
42 |
43 |
44 | NSExceptionDomains
45 |
46 | localhost
47 |
48 | NSExceptionAllowsInsecureHTTPLoads
49 |
50 |
51 |
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/SpruceExample/ios/SpruceExample-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 |
--------------------------------------------------------------------------------
/SpruceExample/ios/SpruceExample.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; };
11 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; };
12 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; };
13 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; };
14 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; };
15 | 00E356F31AD99517003FC87E /* SpruceExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* SpruceExampleTests.m */; };
16 | 130E9958241D418386015BB2 /* libRNSpruce.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 997E5FA0D088460094769E37 /* libRNSpruce.a */; };
17 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; };
18 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; };
19 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; };
20 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
21 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; };
22 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
23 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
24 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
25 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
26 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
27 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
28 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
29 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */; };
30 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */; };
31 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */; };
32 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */; };
33 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */; };
34 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */; };
35 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */; };
36 | 2D02E4C91E0B4AEC006451C7 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3EA31DF850E9000B6D8A /* libReact.a */; };
37 | 2DCD954D1E0B4F2C00145EB5 /* SpruceExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* SpruceExampleTests.m */; };
38 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; };
39 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; };
40 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */; };
41 | /* End PBXBuildFile section */
42 |
43 | /* Begin PBXContainerItemProxy section */
44 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = {
45 | isa = PBXContainerItemProxy;
46 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
47 | proxyType = 2;
48 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
49 | remoteInfo = RCTActionSheet;
50 | };
51 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = {
52 | isa = PBXContainerItemProxy;
53 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */;
54 | proxyType = 2;
55 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
56 | remoteInfo = RCTGeolocation;
57 | };
58 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = {
59 | isa = PBXContainerItemProxy;
60 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
61 | proxyType = 2;
62 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676;
63 | remoteInfo = RCTImage;
64 | };
65 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = {
66 | isa = PBXContainerItemProxy;
67 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
68 | proxyType = 2;
69 | remoteGlobalIDString = 58B511DB1A9E6C8500147676;
70 | remoteInfo = RCTNetwork;
71 | };
72 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = {
73 | isa = PBXContainerItemProxy;
74 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */;
75 | proxyType = 2;
76 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7;
77 | remoteInfo = RCTVibration;
78 | };
79 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = {
80 | isa = PBXContainerItemProxy;
81 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
82 | proxyType = 1;
83 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A;
84 | remoteInfo = SpruceExample;
85 | };
86 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = {
87 | isa = PBXContainerItemProxy;
88 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
89 | proxyType = 2;
90 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
91 | remoteInfo = RCTSettings;
92 | };
93 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = {
94 | isa = PBXContainerItemProxy;
95 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
96 | proxyType = 2;
97 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A;
98 | remoteInfo = RCTWebSocket;
99 | };
100 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = {
101 | isa = PBXContainerItemProxy;
102 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
103 | proxyType = 2;
104 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192;
105 | remoteInfo = React;
106 | };
107 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = {
108 | isa = PBXContainerItemProxy;
109 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
110 | proxyType = 1;
111 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7;
112 | remoteInfo = "SpruceExample-tvOS";
113 | };
114 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = {
115 | isa = PBXContainerItemProxy;
116 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
117 | proxyType = 2;
118 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D;
119 | remoteInfo = "RCTImage-tvOS";
120 | };
121 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = {
122 | isa = PBXContainerItemProxy;
123 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
124 | proxyType = 2;
125 | remoteGlobalIDString = 2D2A28471D9B043800D4039D;
126 | remoteInfo = "RCTLinking-tvOS";
127 | };
128 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
129 | isa = PBXContainerItemProxy;
130 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
131 | proxyType = 2;
132 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D;
133 | remoteInfo = "RCTNetwork-tvOS";
134 | };
135 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
136 | isa = PBXContainerItemProxy;
137 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
138 | proxyType = 2;
139 | remoteGlobalIDString = 2D2A28611D9B046600D4039D;
140 | remoteInfo = "RCTSettings-tvOS";
141 | };
142 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = {
143 | isa = PBXContainerItemProxy;
144 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
145 | proxyType = 2;
146 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D;
147 | remoteInfo = "RCTText-tvOS";
148 | };
149 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = {
150 | isa = PBXContainerItemProxy;
151 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
152 | proxyType = 2;
153 | remoteGlobalIDString = 2D2A28881D9B049200D4039D;
154 | remoteInfo = "RCTWebSocket-tvOS";
155 | };
156 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = {
157 | isa = PBXContainerItemProxy;
158 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
159 | proxyType = 2;
160 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D;
161 | remoteInfo = "React-tvOS";
162 | };
163 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = {
164 | isa = PBXContainerItemProxy;
165 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
166 | proxyType = 2;
167 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA;
168 | remoteInfo = yoga;
169 | };
170 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = {
171 | isa = PBXContainerItemProxy;
172 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
173 | proxyType = 2;
174 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA;
175 | remoteInfo = "yoga-tvOS";
176 | };
177 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = {
178 | isa = PBXContainerItemProxy;
179 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
180 | proxyType = 2;
181 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4;
182 | remoteInfo = cxxreact;
183 | };
184 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
185 | isa = PBXContainerItemProxy;
186 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
187 | proxyType = 2;
188 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4;
189 | remoteInfo = "cxxreact-tvOS";
190 | };
191 | 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
192 | isa = PBXContainerItemProxy;
193 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
194 | proxyType = 2;
195 | remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4;
196 | remoteInfo = jschelpers;
197 | };
198 | 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
199 | isa = PBXContainerItemProxy;
200 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
201 | proxyType = 2;
202 | remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4;
203 | remoteInfo = "jschelpers-tvOS";
204 | };
205 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = {
206 | isa = PBXContainerItemProxy;
207 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
208 | proxyType = 2;
209 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
210 | remoteInfo = RCTAnimation;
211 | };
212 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = {
213 | isa = PBXContainerItemProxy;
214 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
215 | proxyType = 2;
216 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D;
217 | remoteInfo = "RCTAnimation-tvOS";
218 | };
219 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = {
220 | isa = PBXContainerItemProxy;
221 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
222 | proxyType = 2;
223 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
224 | remoteInfo = RCTLinking;
225 | };
226 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = {
227 | isa = PBXContainerItemProxy;
228 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
229 | proxyType = 2;
230 | remoteGlobalIDString = 58B5119B1A9E6C1200147676;
231 | remoteInfo = RCTText;
232 | };
233 | ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */ = {
234 | isa = PBXContainerItemProxy;
235 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */;
236 | proxyType = 2;
237 | remoteGlobalIDString = 358F4ED71D1E81A9004DF814;
238 | remoteInfo = RCTBlob;
239 | };
240 | CE6BCC241FE3D15A00521097 /* PBXContainerItemProxy */ = {
241 | isa = PBXContainerItemProxy;
242 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */;
243 | proxyType = 2;
244 | remoteGlobalIDString = ADD01A681E09402E00F6D226;
245 | remoteInfo = "RCTBlob-tvOS";
246 | };
247 | CE6BCC361FE3D15A00521097 /* PBXContainerItemProxy */ = {
248 | isa = PBXContainerItemProxy;
249 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
250 | proxyType = 2;
251 | remoteGlobalIDString = 3DBE0D001F3B181A0099AA32;
252 | remoteInfo = fishhook;
253 | };
254 | CE6BCC381FE3D15A00521097 /* PBXContainerItemProxy */ = {
255 | isa = PBXContainerItemProxy;
256 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
257 | proxyType = 2;
258 | remoteGlobalIDString = 3DBE0D0D1F3B181C0099AA32;
259 | remoteInfo = "fishhook-tvOS";
260 | };
261 | CE6BCC3D1FE3D15C00521097 /* PBXContainerItemProxy */ = {
262 | isa = PBXContainerItemProxy;
263 | containerPortal = 6B11E78DEA5F47E68AC003EF /* RNSpruce.xcodeproj */;
264 | proxyType = 2;
265 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
266 | remoteInfo = RNSpruce;
267 | };
268 | CEE10334204CFFF900784938 /* PBXContainerItemProxy */ = {
269 | isa = PBXContainerItemProxy;
270 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
271 | proxyType = 2;
272 | remoteGlobalIDString = 139D7ECE1E25DB7D00323FB7;
273 | remoteInfo = "third-party";
274 | };
275 | CEE10336204CFFF900784938 /* PBXContainerItemProxy */ = {
276 | isa = PBXContainerItemProxy;
277 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
278 | proxyType = 2;
279 | remoteGlobalIDString = 3D383D3C1EBD27B6005632C8;
280 | remoteInfo = "third-party-tvOS";
281 | };
282 | CEE10338204CFFF900784938 /* PBXContainerItemProxy */ = {
283 | isa = PBXContainerItemProxy;
284 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
285 | proxyType = 2;
286 | remoteGlobalIDString = 139D7E881E25C6D100323FB7;
287 | remoteInfo = "double-conversion";
288 | };
289 | CEE1033A204CFFF900784938 /* PBXContainerItemProxy */ = {
290 | isa = PBXContainerItemProxy;
291 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
292 | proxyType = 2;
293 | remoteGlobalIDString = 3D383D621EBD27B9005632C8;
294 | remoteInfo = "double-conversion-tvOS";
295 | };
296 | CEE1033C204CFFF900784938 /* PBXContainerItemProxy */ = {
297 | isa = PBXContainerItemProxy;
298 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
299 | proxyType = 2;
300 | remoteGlobalIDString = 9936F3131F5F2E4B0010BF04;
301 | remoteInfo = privatedata;
302 | };
303 | CEE1033E204CFFF900784938 /* PBXContainerItemProxy */ = {
304 | isa = PBXContainerItemProxy;
305 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
306 | proxyType = 2;
307 | remoteGlobalIDString = 9936F32F1F5F2E5B0010BF04;
308 | remoteInfo = "privatedata-tvOS";
309 | };
310 | /* End PBXContainerItemProxy section */
311 |
312 | /* Begin PBXFileReference section */
313 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; };
314 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; };
315 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; };
316 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; };
317 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; };
318 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; };
319 | 00E356EE1AD99517003FC87E /* SpruceExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SpruceExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
320 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
321 | 00E356F21AD99517003FC87E /* SpruceExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SpruceExampleTests.m; sourceTree = ""; };
322 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; };
323 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; };
324 | 13B07F961A680F5B00A75B9A /* SpruceExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SpruceExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
325 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = SpruceExample/AppDelegate.h; sourceTree = ""; };
326 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = SpruceExample/AppDelegate.m; sourceTree = ""; };
327 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; };
328 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = SpruceExample/Images.xcassets; sourceTree = ""; };
329 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = SpruceExample/Info.plist; sourceTree = ""; };
330 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = SpruceExample/main.m; sourceTree = ""; };
331 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; };
332 | 2D02E47B1E0B4A5D006451C7 /* SpruceExample-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "SpruceExample-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; };
333 | 2D02E4901E0B4A5D006451C7 /* SpruceExample-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "SpruceExample-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
334 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; };
335 | 6B11E78DEA5F47E68AC003EF /* RNSpruce.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RNSpruce.xcodeproj; path = "../node_modules/react-native-spruce/ios/RNSpruce.xcodeproj"; sourceTree = ""; };
336 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; };
337 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; };
338 | 997E5FA0D088460094769E37 /* libRNSpruce.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNSpruce.a; sourceTree = ""; };
339 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTBlob.xcodeproj; path = "../node_modules/react-native/Libraries/Blob/RCTBlob.xcodeproj"; sourceTree = ""; };
340 | /* End PBXFileReference section */
341 |
342 | /* Begin PBXFrameworksBuildPhase section */
343 | 00E356EB1AD99517003FC87E /* Frameworks */ = {
344 | isa = PBXFrameworksBuildPhase;
345 | buildActionMask = 2147483647;
346 | files = (
347 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */,
348 | );
349 | runOnlyForDeploymentPostprocessing = 0;
350 | };
351 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
352 | isa = PBXFrameworksBuildPhase;
353 | buildActionMask = 2147483647;
354 | files = (
355 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */,
356 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */,
357 | 146834051AC3E58100842450 /* libReact.a in Frameworks */,
358 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */,
359 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */,
360 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */,
361 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */,
362 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */,
363 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */,
364 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */,
365 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */,
366 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */,
367 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */,
368 | 130E9958241D418386015BB2 /* libRNSpruce.a in Frameworks */,
369 | );
370 | runOnlyForDeploymentPostprocessing = 0;
371 | };
372 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = {
373 | isa = PBXFrameworksBuildPhase;
374 | buildActionMask = 2147483647;
375 | files = (
376 | 2D02E4C91E0B4AEC006451C7 /* libReact.a in Frameworks */,
377 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */,
378 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */,
379 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */,
380 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */,
381 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */,
382 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */,
383 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */,
384 | );
385 | runOnlyForDeploymentPostprocessing = 0;
386 | };
387 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = {
388 | isa = PBXFrameworksBuildPhase;
389 | buildActionMask = 2147483647;
390 | files = (
391 | );
392 | runOnlyForDeploymentPostprocessing = 0;
393 | };
394 | /* End PBXFrameworksBuildPhase section */
395 |
396 | /* Begin PBXGroup section */
397 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = {
398 | isa = PBXGroup;
399 | children = (
400 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */,
401 | );
402 | name = Products;
403 | sourceTree = "";
404 | };
405 | 00C302B61ABCB90400DB3ED1 /* Products */ = {
406 | isa = PBXGroup;
407 | children = (
408 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */,
409 | );
410 | name = Products;
411 | sourceTree = "";
412 | };
413 | 00C302BC1ABCB91800DB3ED1 /* Products */ = {
414 | isa = PBXGroup;
415 | children = (
416 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */,
417 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */,
418 | );
419 | name = Products;
420 | sourceTree = "";
421 | };
422 | 00C302D41ABCB9D200DB3ED1 /* Products */ = {
423 | isa = PBXGroup;
424 | children = (
425 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */,
426 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */,
427 | );
428 | name = Products;
429 | sourceTree = "";
430 | };
431 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = {
432 | isa = PBXGroup;
433 | children = (
434 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */,
435 | );
436 | name = Products;
437 | sourceTree = "";
438 | };
439 | 00E356EF1AD99517003FC87E /* SpruceExampleTests */ = {
440 | isa = PBXGroup;
441 | children = (
442 | 00E356F21AD99517003FC87E /* SpruceExampleTests.m */,
443 | 00E356F01AD99517003FC87E /* Supporting Files */,
444 | );
445 | path = SpruceExampleTests;
446 | sourceTree = "";
447 | };
448 | 00E356F01AD99517003FC87E /* Supporting Files */ = {
449 | isa = PBXGroup;
450 | children = (
451 | 00E356F11AD99517003FC87E /* Info.plist */,
452 | );
453 | name = "Supporting Files";
454 | sourceTree = "";
455 | };
456 | 139105B71AF99BAD00B5F7CC /* Products */ = {
457 | isa = PBXGroup;
458 | children = (
459 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */,
460 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */,
461 | );
462 | name = Products;
463 | sourceTree = "";
464 | };
465 | 139FDEE71B06529A00C62182 /* Products */ = {
466 | isa = PBXGroup;
467 | children = (
468 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */,
469 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */,
470 | CE6BCC371FE3D15A00521097 /* libfishhook.a */,
471 | CE6BCC391FE3D15A00521097 /* libfishhook-tvOS.a */,
472 | );
473 | name = Products;
474 | sourceTree = "";
475 | };
476 | 13B07FAE1A68108700A75B9A /* SpruceExample */ = {
477 | isa = PBXGroup;
478 | children = (
479 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */,
480 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */,
481 | 13B07FB01A68108700A75B9A /* AppDelegate.m */,
482 | 13B07FB51A68108700A75B9A /* Images.xcassets */,
483 | 13B07FB61A68108700A75B9A /* Info.plist */,
484 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */,
485 | 13B07FB71A68108700A75B9A /* main.m */,
486 | );
487 | name = SpruceExample;
488 | sourceTree = "";
489 | };
490 | 146834001AC3E56700842450 /* Products */ = {
491 | isa = PBXGroup;
492 | children = (
493 | 146834041AC3E56700842450 /* libReact.a */,
494 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */,
495 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */,
496 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */,
497 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */,
498 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */,
499 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */,
500 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */,
501 | CEE10335204CFFF900784938 /* libthird-party.a */,
502 | CEE10337204CFFF900784938 /* libthird-party.a */,
503 | CEE10339204CFFF900784938 /* libdouble-conversion.a */,
504 | CEE1033B204CFFF900784938 /* libdouble-conversion.a */,
505 | CEE1033D204CFFF900784938 /* libprivatedata.a */,
506 | CEE1033F204CFFF900784938 /* libprivatedata-tvOS.a */,
507 | );
508 | name = Products;
509 | sourceTree = "";
510 | };
511 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = {
512 | isa = PBXGroup;
513 | children = (
514 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */,
515 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */,
516 | );
517 | name = Products;
518 | sourceTree = "";
519 | };
520 | 78C398B11ACF4ADC00677621 /* Products */ = {
521 | isa = PBXGroup;
522 | children = (
523 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */,
524 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */,
525 | );
526 | name = Products;
527 | sourceTree = "";
528 | };
529 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = {
530 | isa = PBXGroup;
531 | children = (
532 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */,
533 | 146833FF1AC3E56700842450 /* React.xcodeproj */,
534 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */,
535 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */,
536 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */,
537 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */,
538 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */,
539 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */,
540 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */,
541 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */,
542 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */,
543 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */,
544 | 6B11E78DEA5F47E68AC003EF /* RNSpruce.xcodeproj */,
545 | );
546 | name = Libraries;
547 | sourceTree = "";
548 | };
549 | 832341B11AAA6A8300B99B32 /* Products */ = {
550 | isa = PBXGroup;
551 | children = (
552 | 832341B51AAA6A8300B99B32 /* libRCTText.a */,
553 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */,
554 | );
555 | name = Products;
556 | sourceTree = "";
557 | };
558 | 83CBB9F61A601CBA00E9B192 = {
559 | isa = PBXGroup;
560 | children = (
561 | 13B07FAE1A68108700A75B9A /* SpruceExample */,
562 | 832341AE1AAA6A7D00B99B32 /* Libraries */,
563 | 00E356EF1AD99517003FC87E /* SpruceExampleTests */,
564 | 83CBBA001A601CBA00E9B192 /* Products */,
565 | CE6BCC1E1FE3D15A00521097 /* Recovered References */,
566 | );
567 | indentWidth = 2;
568 | sourceTree = "";
569 | tabWidth = 2;
570 | usesTabs = 0;
571 | };
572 | 83CBBA001A601CBA00E9B192 /* Products */ = {
573 | isa = PBXGroup;
574 | children = (
575 | 13B07F961A680F5B00A75B9A /* SpruceExample.app */,
576 | 00E356EE1AD99517003FC87E /* SpruceExampleTests.xctest */,
577 | 2D02E47B1E0B4A5D006451C7 /* SpruceExample-tvOS.app */,
578 | 2D02E4901E0B4A5D006451C7 /* SpruceExample-tvOSTests.xctest */,
579 | );
580 | name = Products;
581 | sourceTree = "";
582 | };
583 | ADBDB9201DFEBF0600ED6528 /* Products */ = {
584 | isa = PBXGroup;
585 | children = (
586 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */,
587 | CE6BCC251FE3D15A00521097 /* libRCTBlob-tvOS.a */,
588 | );
589 | name = Products;
590 | sourceTree = "";
591 | };
592 | CE6BCC1E1FE3D15A00521097 /* Recovered References */ = {
593 | isa = PBXGroup;
594 | children = (
595 | 997E5FA0D088460094769E37 /* libRNSpruce.a */,
596 | );
597 | name = "Recovered References";
598 | sourceTree = "";
599 | };
600 | CE6BCC3A1FE3D15C00521097 /* Products */ = {
601 | isa = PBXGroup;
602 | children = (
603 | CE6BCC3E1FE3D15C00521097 /* libRNSpruce.a */,
604 | );
605 | name = Products;
606 | sourceTree = "";
607 | };
608 | /* End PBXGroup section */
609 |
610 | /* Begin PBXNativeTarget section */
611 | 00E356ED1AD99517003FC87E /* SpruceExampleTests */ = {
612 | isa = PBXNativeTarget;
613 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "SpruceExampleTests" */;
614 | buildPhases = (
615 | 00E356EA1AD99517003FC87E /* Sources */,
616 | 00E356EB1AD99517003FC87E /* Frameworks */,
617 | 00E356EC1AD99517003FC87E /* Resources */,
618 | );
619 | buildRules = (
620 | );
621 | dependencies = (
622 | 00E356F51AD99517003FC87E /* PBXTargetDependency */,
623 | );
624 | name = SpruceExampleTests;
625 | productName = SpruceExampleTests;
626 | productReference = 00E356EE1AD99517003FC87E /* SpruceExampleTests.xctest */;
627 | productType = "com.apple.product-type.bundle.unit-test";
628 | };
629 | 13B07F861A680F5B00A75B9A /* SpruceExample */ = {
630 | isa = PBXNativeTarget;
631 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "SpruceExample" */;
632 | buildPhases = (
633 | 13B07F871A680F5B00A75B9A /* Sources */,
634 | 13B07F8C1A680F5B00A75B9A /* Frameworks */,
635 | 13B07F8E1A680F5B00A75B9A /* Resources */,
636 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
637 | );
638 | buildRules = (
639 | );
640 | dependencies = (
641 | );
642 | name = SpruceExample;
643 | productName = "Hello World";
644 | productReference = 13B07F961A680F5B00A75B9A /* SpruceExample.app */;
645 | productType = "com.apple.product-type.application";
646 | };
647 | 2D02E47A1E0B4A5D006451C7 /* SpruceExample-tvOS */ = {
648 | isa = PBXNativeTarget;
649 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "SpruceExample-tvOS" */;
650 | buildPhases = (
651 | 2D02E4771E0B4A5D006451C7 /* Sources */,
652 | 2D02E4781E0B4A5D006451C7 /* Frameworks */,
653 | 2D02E4791E0B4A5D006451C7 /* Resources */,
654 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */,
655 | );
656 | buildRules = (
657 | );
658 | dependencies = (
659 | );
660 | name = "SpruceExample-tvOS";
661 | productName = "SpruceExample-tvOS";
662 | productReference = 2D02E47B1E0B4A5D006451C7 /* SpruceExample-tvOS.app */;
663 | productType = "com.apple.product-type.application";
664 | };
665 | 2D02E48F1E0B4A5D006451C7 /* SpruceExample-tvOSTests */ = {
666 | isa = PBXNativeTarget;
667 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "SpruceExample-tvOSTests" */;
668 | buildPhases = (
669 | 2D02E48C1E0B4A5D006451C7 /* Sources */,
670 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */,
671 | 2D02E48E1E0B4A5D006451C7 /* Resources */,
672 | );
673 | buildRules = (
674 | );
675 | dependencies = (
676 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */,
677 | );
678 | name = "SpruceExample-tvOSTests";
679 | productName = "SpruceExample-tvOSTests";
680 | productReference = 2D02E4901E0B4A5D006451C7 /* SpruceExample-tvOSTests.xctest */;
681 | productType = "com.apple.product-type.bundle.unit-test";
682 | };
683 | /* End PBXNativeTarget section */
684 |
685 | /* Begin PBXProject section */
686 | 83CBB9F71A601CBA00E9B192 /* Project object */ = {
687 | isa = PBXProject;
688 | attributes = {
689 | LastUpgradeCheck = 610;
690 | ORGANIZATIONNAME = Facebook;
691 | TargetAttributes = {
692 | 00E356ED1AD99517003FC87E = {
693 | CreatedOnToolsVersion = 6.2;
694 | TestTargetID = 13B07F861A680F5B00A75B9A;
695 | };
696 | 2D02E47A1E0B4A5D006451C7 = {
697 | CreatedOnToolsVersion = 8.2.1;
698 | ProvisioningStyle = Automatic;
699 | };
700 | 2D02E48F1E0B4A5D006451C7 = {
701 | CreatedOnToolsVersion = 8.2.1;
702 | ProvisioningStyle = Automatic;
703 | TestTargetID = 2D02E47A1E0B4A5D006451C7;
704 | };
705 | };
706 | };
707 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "SpruceExample" */;
708 | compatibilityVersion = "Xcode 3.2";
709 | developmentRegion = English;
710 | hasScannedForEncodings = 0;
711 | knownRegions = (
712 | en,
713 | Base,
714 | );
715 | mainGroup = 83CBB9F61A601CBA00E9B192;
716 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
717 | projectDirPath = "";
718 | projectReferences = (
719 | {
720 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */;
721 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
722 | },
723 | {
724 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */;
725 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
726 | },
727 | {
728 | ProductGroup = ADBDB9201DFEBF0600ED6528 /* Products */;
729 | ProjectRef = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */;
730 | },
731 | {
732 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */;
733 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */;
734 | },
735 | {
736 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */;
737 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
738 | },
739 | {
740 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */;
741 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
742 | },
743 | {
744 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */;
745 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
746 | },
747 | {
748 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */;
749 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
750 | },
751 | {
752 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */;
753 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
754 | },
755 | {
756 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */;
757 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */;
758 | },
759 | {
760 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */;
761 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
762 | },
763 | {
764 | ProductGroup = 146834001AC3E56700842450 /* Products */;
765 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */;
766 | },
767 | {
768 | ProductGroup = CE6BCC3A1FE3D15C00521097 /* Products */;
769 | ProjectRef = 6B11E78DEA5F47E68AC003EF /* RNSpruce.xcodeproj */;
770 | },
771 | );
772 | projectRoot = "";
773 | targets = (
774 | 13B07F861A680F5B00A75B9A /* SpruceExample */,
775 | 00E356ED1AD99517003FC87E /* SpruceExampleTests */,
776 | 2D02E47A1E0B4A5D006451C7 /* SpruceExample-tvOS */,
777 | 2D02E48F1E0B4A5D006451C7 /* SpruceExample-tvOSTests */,
778 | );
779 | };
780 | /* End PBXProject section */
781 |
782 | /* Begin PBXReferenceProxy section */
783 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = {
784 | isa = PBXReferenceProxy;
785 | fileType = archive.ar;
786 | path = libRCTActionSheet.a;
787 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */;
788 | sourceTree = BUILT_PRODUCTS_DIR;
789 | };
790 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = {
791 | isa = PBXReferenceProxy;
792 | fileType = archive.ar;
793 | path = libRCTGeolocation.a;
794 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */;
795 | sourceTree = BUILT_PRODUCTS_DIR;
796 | };
797 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = {
798 | isa = PBXReferenceProxy;
799 | fileType = archive.ar;
800 | path = libRCTImage.a;
801 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */;
802 | sourceTree = BUILT_PRODUCTS_DIR;
803 | };
804 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = {
805 | isa = PBXReferenceProxy;
806 | fileType = archive.ar;
807 | path = libRCTNetwork.a;
808 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */;
809 | sourceTree = BUILT_PRODUCTS_DIR;
810 | };
811 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = {
812 | isa = PBXReferenceProxy;
813 | fileType = archive.ar;
814 | path = libRCTVibration.a;
815 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */;
816 | sourceTree = BUILT_PRODUCTS_DIR;
817 | };
818 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = {
819 | isa = PBXReferenceProxy;
820 | fileType = archive.ar;
821 | path = libRCTSettings.a;
822 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */;
823 | sourceTree = BUILT_PRODUCTS_DIR;
824 | };
825 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = {
826 | isa = PBXReferenceProxy;
827 | fileType = archive.ar;
828 | path = libRCTWebSocket.a;
829 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */;
830 | sourceTree = BUILT_PRODUCTS_DIR;
831 | };
832 | 146834041AC3E56700842450 /* libReact.a */ = {
833 | isa = PBXReferenceProxy;
834 | fileType = archive.ar;
835 | path = libReact.a;
836 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */;
837 | sourceTree = BUILT_PRODUCTS_DIR;
838 | };
839 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = {
840 | isa = PBXReferenceProxy;
841 | fileType = archive.ar;
842 | path = "libRCTImage-tvOS.a";
843 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */;
844 | sourceTree = BUILT_PRODUCTS_DIR;
845 | };
846 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = {
847 | isa = PBXReferenceProxy;
848 | fileType = archive.ar;
849 | path = "libRCTLinking-tvOS.a";
850 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */;
851 | sourceTree = BUILT_PRODUCTS_DIR;
852 | };
853 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = {
854 | isa = PBXReferenceProxy;
855 | fileType = archive.ar;
856 | path = "libRCTNetwork-tvOS.a";
857 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */;
858 | sourceTree = BUILT_PRODUCTS_DIR;
859 | };
860 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = {
861 | isa = PBXReferenceProxy;
862 | fileType = archive.ar;
863 | path = "libRCTSettings-tvOS.a";
864 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */;
865 | sourceTree = BUILT_PRODUCTS_DIR;
866 | };
867 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = {
868 | isa = PBXReferenceProxy;
869 | fileType = archive.ar;
870 | path = "libRCTText-tvOS.a";
871 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */;
872 | sourceTree = BUILT_PRODUCTS_DIR;
873 | };
874 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = {
875 | isa = PBXReferenceProxy;
876 | fileType = archive.ar;
877 | path = "libRCTWebSocket-tvOS.a";
878 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */;
879 | sourceTree = BUILT_PRODUCTS_DIR;
880 | };
881 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = {
882 | isa = PBXReferenceProxy;
883 | fileType = archive.ar;
884 | path = libReact.a;
885 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */;
886 | sourceTree = BUILT_PRODUCTS_DIR;
887 | };
888 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = {
889 | isa = PBXReferenceProxy;
890 | fileType = archive.ar;
891 | path = libyoga.a;
892 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */;
893 | sourceTree = BUILT_PRODUCTS_DIR;
894 | };
895 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = {
896 | isa = PBXReferenceProxy;
897 | fileType = archive.ar;
898 | path = libyoga.a;
899 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */;
900 | sourceTree = BUILT_PRODUCTS_DIR;
901 | };
902 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = {
903 | isa = PBXReferenceProxy;
904 | fileType = archive.ar;
905 | path = libcxxreact.a;
906 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */;
907 | sourceTree = BUILT_PRODUCTS_DIR;
908 | };
909 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = {
910 | isa = PBXReferenceProxy;
911 | fileType = archive.ar;
912 | path = libcxxreact.a;
913 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */;
914 | sourceTree = BUILT_PRODUCTS_DIR;
915 | };
916 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = {
917 | isa = PBXReferenceProxy;
918 | fileType = archive.ar;
919 | path = libjschelpers.a;
920 | remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */;
921 | sourceTree = BUILT_PRODUCTS_DIR;
922 | };
923 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = {
924 | isa = PBXReferenceProxy;
925 | fileType = archive.ar;
926 | path = libjschelpers.a;
927 | remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */;
928 | sourceTree = BUILT_PRODUCTS_DIR;
929 | };
930 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = {
931 | isa = PBXReferenceProxy;
932 | fileType = archive.ar;
933 | path = libRCTAnimation.a;
934 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */;
935 | sourceTree = BUILT_PRODUCTS_DIR;
936 | };
937 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */ = {
938 | isa = PBXReferenceProxy;
939 | fileType = archive.ar;
940 | path = libRCTAnimation.a;
941 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */;
942 | sourceTree = BUILT_PRODUCTS_DIR;
943 | };
944 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = {
945 | isa = PBXReferenceProxy;
946 | fileType = archive.ar;
947 | path = libRCTLinking.a;
948 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */;
949 | sourceTree = BUILT_PRODUCTS_DIR;
950 | };
951 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = {
952 | isa = PBXReferenceProxy;
953 | fileType = archive.ar;
954 | path = libRCTText.a;
955 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */;
956 | sourceTree = BUILT_PRODUCTS_DIR;
957 | };
958 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */ = {
959 | isa = PBXReferenceProxy;
960 | fileType = archive.ar;
961 | path = libRCTBlob.a;
962 | remoteRef = ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */;
963 | sourceTree = BUILT_PRODUCTS_DIR;
964 | };
965 | CE6BCC251FE3D15A00521097 /* libRCTBlob-tvOS.a */ = {
966 | isa = PBXReferenceProxy;
967 | fileType = archive.ar;
968 | path = "libRCTBlob-tvOS.a";
969 | remoteRef = CE6BCC241FE3D15A00521097 /* PBXContainerItemProxy */;
970 | sourceTree = BUILT_PRODUCTS_DIR;
971 | };
972 | CE6BCC371FE3D15A00521097 /* libfishhook.a */ = {
973 | isa = PBXReferenceProxy;
974 | fileType = archive.ar;
975 | path = libfishhook.a;
976 | remoteRef = CE6BCC361FE3D15A00521097 /* PBXContainerItemProxy */;
977 | sourceTree = BUILT_PRODUCTS_DIR;
978 | };
979 | CE6BCC391FE3D15A00521097 /* libfishhook-tvOS.a */ = {
980 | isa = PBXReferenceProxy;
981 | fileType = archive.ar;
982 | path = "libfishhook-tvOS.a";
983 | remoteRef = CE6BCC381FE3D15A00521097 /* PBXContainerItemProxy */;
984 | sourceTree = BUILT_PRODUCTS_DIR;
985 | };
986 | CE6BCC3E1FE3D15C00521097 /* libRNSpruce.a */ = {
987 | isa = PBXReferenceProxy;
988 | fileType = archive.ar;
989 | path = libRNSpruce.a;
990 | remoteRef = CE6BCC3D1FE3D15C00521097 /* PBXContainerItemProxy */;
991 | sourceTree = BUILT_PRODUCTS_DIR;
992 | };
993 | CEE10335204CFFF900784938 /* libthird-party.a */ = {
994 | isa = PBXReferenceProxy;
995 | fileType = archive.ar;
996 | path = "libthird-party.a";
997 | remoteRef = CEE10334204CFFF900784938 /* PBXContainerItemProxy */;
998 | sourceTree = BUILT_PRODUCTS_DIR;
999 | };
1000 | CEE10337204CFFF900784938 /* libthird-party.a */ = {
1001 | isa = PBXReferenceProxy;
1002 | fileType = archive.ar;
1003 | path = "libthird-party.a";
1004 | remoteRef = CEE10336204CFFF900784938 /* PBXContainerItemProxy */;
1005 | sourceTree = BUILT_PRODUCTS_DIR;
1006 | };
1007 | CEE10339204CFFF900784938 /* libdouble-conversion.a */ = {
1008 | isa = PBXReferenceProxy;
1009 | fileType = archive.ar;
1010 | path = "libdouble-conversion.a";
1011 | remoteRef = CEE10338204CFFF900784938 /* PBXContainerItemProxy */;
1012 | sourceTree = BUILT_PRODUCTS_DIR;
1013 | };
1014 | CEE1033B204CFFF900784938 /* libdouble-conversion.a */ = {
1015 | isa = PBXReferenceProxy;
1016 | fileType = archive.ar;
1017 | path = "libdouble-conversion.a";
1018 | remoteRef = CEE1033A204CFFF900784938 /* PBXContainerItemProxy */;
1019 | sourceTree = BUILT_PRODUCTS_DIR;
1020 | };
1021 | CEE1033D204CFFF900784938 /* libprivatedata.a */ = {
1022 | isa = PBXReferenceProxy;
1023 | fileType = archive.ar;
1024 | path = libprivatedata.a;
1025 | remoteRef = CEE1033C204CFFF900784938 /* PBXContainerItemProxy */;
1026 | sourceTree = BUILT_PRODUCTS_DIR;
1027 | };
1028 | CEE1033F204CFFF900784938 /* libprivatedata-tvOS.a */ = {
1029 | isa = PBXReferenceProxy;
1030 | fileType = archive.ar;
1031 | path = "libprivatedata-tvOS.a";
1032 | remoteRef = CEE1033E204CFFF900784938 /* PBXContainerItemProxy */;
1033 | sourceTree = BUILT_PRODUCTS_DIR;
1034 | };
1035 | /* End PBXReferenceProxy section */
1036 |
1037 | /* Begin PBXResourcesBuildPhase section */
1038 | 00E356EC1AD99517003FC87E /* Resources */ = {
1039 | isa = PBXResourcesBuildPhase;
1040 | buildActionMask = 2147483647;
1041 | files = (
1042 | );
1043 | runOnlyForDeploymentPostprocessing = 0;
1044 | };
1045 | 13B07F8E1A680F5B00A75B9A /* Resources */ = {
1046 | isa = PBXResourcesBuildPhase;
1047 | buildActionMask = 2147483647;
1048 | files = (
1049 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
1050 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */,
1051 | );
1052 | runOnlyForDeploymentPostprocessing = 0;
1053 | };
1054 | 2D02E4791E0B4A5D006451C7 /* Resources */ = {
1055 | isa = PBXResourcesBuildPhase;
1056 | buildActionMask = 2147483647;
1057 | files = (
1058 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */,
1059 | );
1060 | runOnlyForDeploymentPostprocessing = 0;
1061 | };
1062 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = {
1063 | isa = PBXResourcesBuildPhase;
1064 | buildActionMask = 2147483647;
1065 | files = (
1066 | );
1067 | runOnlyForDeploymentPostprocessing = 0;
1068 | };
1069 | /* End PBXResourcesBuildPhase section */
1070 |
1071 | /* Begin PBXShellScriptBuildPhase section */
1072 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
1073 | isa = PBXShellScriptBuildPhase;
1074 | buildActionMask = 2147483647;
1075 | files = (
1076 | );
1077 | inputPaths = (
1078 | );
1079 | name = "Bundle React Native code and images";
1080 | outputPaths = (
1081 | );
1082 | runOnlyForDeploymentPostprocessing = 0;
1083 | shellPath = /bin/sh;
1084 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh";
1085 | };
1086 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = {
1087 | isa = PBXShellScriptBuildPhase;
1088 | buildActionMask = 2147483647;
1089 | files = (
1090 | );
1091 | inputPaths = (
1092 | );
1093 | name = "Bundle React Native Code And Images";
1094 | outputPaths = (
1095 | );
1096 | runOnlyForDeploymentPostprocessing = 0;
1097 | shellPath = /bin/sh;
1098 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh";
1099 | };
1100 | /* End PBXShellScriptBuildPhase section */
1101 |
1102 | /* Begin PBXSourcesBuildPhase section */
1103 | 00E356EA1AD99517003FC87E /* Sources */ = {
1104 | isa = PBXSourcesBuildPhase;
1105 | buildActionMask = 2147483647;
1106 | files = (
1107 | 00E356F31AD99517003FC87E /* SpruceExampleTests.m in Sources */,
1108 | );
1109 | runOnlyForDeploymentPostprocessing = 0;
1110 | };
1111 | 13B07F871A680F5B00A75B9A /* Sources */ = {
1112 | isa = PBXSourcesBuildPhase;
1113 | buildActionMask = 2147483647;
1114 | files = (
1115 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */,
1116 | 13B07FC11A68108700A75B9A /* main.m in Sources */,
1117 | );
1118 | runOnlyForDeploymentPostprocessing = 0;
1119 | };
1120 | 2D02E4771E0B4A5D006451C7 /* Sources */ = {
1121 | isa = PBXSourcesBuildPhase;
1122 | buildActionMask = 2147483647;
1123 | files = (
1124 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */,
1125 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */,
1126 | );
1127 | runOnlyForDeploymentPostprocessing = 0;
1128 | };
1129 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = {
1130 | isa = PBXSourcesBuildPhase;
1131 | buildActionMask = 2147483647;
1132 | files = (
1133 | 2DCD954D1E0B4F2C00145EB5 /* SpruceExampleTests.m in Sources */,
1134 | );
1135 | runOnlyForDeploymentPostprocessing = 0;
1136 | };
1137 | /* End PBXSourcesBuildPhase section */
1138 |
1139 | /* Begin PBXTargetDependency section */
1140 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = {
1141 | isa = PBXTargetDependency;
1142 | target = 13B07F861A680F5B00A75B9A /* SpruceExample */;
1143 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */;
1144 | };
1145 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = {
1146 | isa = PBXTargetDependency;
1147 | target = 2D02E47A1E0B4A5D006451C7 /* SpruceExample-tvOS */;
1148 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */;
1149 | };
1150 | /* End PBXTargetDependency section */
1151 |
1152 | /* Begin PBXVariantGroup section */
1153 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = {
1154 | isa = PBXVariantGroup;
1155 | children = (
1156 | 13B07FB21A68108700A75B9A /* Base */,
1157 | );
1158 | name = LaunchScreen.xib;
1159 | path = SpruceExample;
1160 | sourceTree = "";
1161 | };
1162 | /* End PBXVariantGroup section */
1163 |
1164 | /* Begin XCBuildConfiguration section */
1165 | 00E356F61AD99517003FC87E /* Debug */ = {
1166 | isa = XCBuildConfiguration;
1167 | buildSettings = {
1168 | BUNDLE_LOADER = "$(TEST_HOST)";
1169 | GCC_PREPROCESSOR_DEFINITIONS = (
1170 | "DEBUG=1",
1171 | "$(inherited)",
1172 | );
1173 | HEADER_SEARCH_PATHS = (
1174 | "$(inherited)",
1175 | "$(SRCROOT)/../node_modules/react-native-spruce/ios/**",
1176 | );
1177 | INFOPLIST_FILE = SpruceExampleTests/Info.plist;
1178 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
1179 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1180 | LIBRARY_SEARCH_PATHS = (
1181 | "$(inherited)",
1182 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1183 | );
1184 | OTHER_LDFLAGS = (
1185 | "-ObjC",
1186 | "-lc++",
1187 | );
1188 | PRODUCT_NAME = "$(TARGET_NAME)";
1189 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SpruceExample.app/SpruceExample";
1190 | };
1191 | name = Debug;
1192 | };
1193 | 00E356F71AD99517003FC87E /* Release */ = {
1194 | isa = XCBuildConfiguration;
1195 | buildSettings = {
1196 | BUNDLE_LOADER = "$(TEST_HOST)";
1197 | COPY_PHASE_STRIP = NO;
1198 | HEADER_SEARCH_PATHS = (
1199 | "$(inherited)",
1200 | "$(SRCROOT)/../node_modules/react-native-spruce/ios/**",
1201 | );
1202 | INFOPLIST_FILE = SpruceExampleTests/Info.plist;
1203 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
1204 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1205 | LIBRARY_SEARCH_PATHS = (
1206 | "$(inherited)",
1207 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1208 | );
1209 | OTHER_LDFLAGS = (
1210 | "-ObjC",
1211 | "-lc++",
1212 | );
1213 | PRODUCT_NAME = "$(TARGET_NAME)";
1214 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SpruceExample.app/SpruceExample";
1215 | };
1216 | name = Release;
1217 | };
1218 | 13B07F941A680F5B00A75B9A /* Debug */ = {
1219 | isa = XCBuildConfiguration;
1220 | buildSettings = {
1221 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
1222 | CURRENT_PROJECT_VERSION = 1;
1223 | DEAD_CODE_STRIPPING = NO;
1224 | HEADER_SEARCH_PATHS = (
1225 | "$(inherited)",
1226 | "$(SRCROOT)/../node_modules/react-native-spruce/ios/**",
1227 | );
1228 | INFOPLIST_FILE = SpruceExample/Info.plist;
1229 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1230 | OTHER_LDFLAGS = (
1231 | "$(inherited)",
1232 | "-ObjC",
1233 | "-lc++",
1234 | );
1235 | PRODUCT_NAME = SpruceExample;
1236 | TARGETED_DEVICE_FAMILY = "1,2";
1237 | VERSIONING_SYSTEM = "apple-generic";
1238 | };
1239 | name = Debug;
1240 | };
1241 | 13B07F951A680F5B00A75B9A /* Release */ = {
1242 | isa = XCBuildConfiguration;
1243 | buildSettings = {
1244 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
1245 | CURRENT_PROJECT_VERSION = 1;
1246 | HEADER_SEARCH_PATHS = (
1247 | "$(inherited)",
1248 | "$(SRCROOT)/../node_modules/react-native-spruce/ios/**",
1249 | );
1250 | INFOPLIST_FILE = SpruceExample/Info.plist;
1251 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1252 | OTHER_LDFLAGS = (
1253 | "$(inherited)",
1254 | "-ObjC",
1255 | "-lc++",
1256 | );
1257 | PRODUCT_NAME = SpruceExample;
1258 | TARGETED_DEVICE_FAMILY = "1,2";
1259 | VERSIONING_SYSTEM = "apple-generic";
1260 | };
1261 | name = Release;
1262 | };
1263 | 2D02E4971E0B4A5E006451C7 /* Debug */ = {
1264 | isa = XCBuildConfiguration;
1265 | buildSettings = {
1266 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image";
1267 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
1268 | CLANG_ANALYZER_NONNULL = YES;
1269 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
1270 | CLANG_WARN_INFINITE_RECURSION = YES;
1271 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1272 | DEBUG_INFORMATION_FORMAT = dwarf;
1273 | ENABLE_TESTABILITY = YES;
1274 | GCC_NO_COMMON_BLOCKS = YES;
1275 | HEADER_SEARCH_PATHS = (
1276 | "$(inherited)",
1277 | "$(SRCROOT)/../node_modules/react-native-spruce/ios/**",
1278 | );
1279 | INFOPLIST_FILE = "SpruceExample-tvOS/Info.plist";
1280 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1281 | LIBRARY_SEARCH_PATHS = (
1282 | "$(inherited)",
1283 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1284 | );
1285 | OTHER_LDFLAGS = (
1286 | "-ObjC",
1287 | "-lc++",
1288 | );
1289 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.SpruceExample-tvOS";
1290 | PRODUCT_NAME = "$(TARGET_NAME)";
1291 | SDKROOT = appletvos;
1292 | TARGETED_DEVICE_FAMILY = 3;
1293 | TVOS_DEPLOYMENT_TARGET = 9.2;
1294 | };
1295 | name = Debug;
1296 | };
1297 | 2D02E4981E0B4A5E006451C7 /* Release */ = {
1298 | isa = XCBuildConfiguration;
1299 | buildSettings = {
1300 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image";
1301 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
1302 | CLANG_ANALYZER_NONNULL = YES;
1303 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
1304 | CLANG_WARN_INFINITE_RECURSION = YES;
1305 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1306 | COPY_PHASE_STRIP = NO;
1307 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
1308 | GCC_NO_COMMON_BLOCKS = YES;
1309 | HEADER_SEARCH_PATHS = (
1310 | "$(inherited)",
1311 | "$(SRCROOT)/../node_modules/react-native-spruce/ios/**",
1312 | );
1313 | INFOPLIST_FILE = "SpruceExample-tvOS/Info.plist";
1314 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1315 | LIBRARY_SEARCH_PATHS = (
1316 | "$(inherited)",
1317 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1318 | );
1319 | OTHER_LDFLAGS = (
1320 | "-ObjC",
1321 | "-lc++",
1322 | );
1323 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.SpruceExample-tvOS";
1324 | PRODUCT_NAME = "$(TARGET_NAME)";
1325 | SDKROOT = appletvos;
1326 | TARGETED_DEVICE_FAMILY = 3;
1327 | TVOS_DEPLOYMENT_TARGET = 9.2;
1328 | };
1329 | name = Release;
1330 | };
1331 | 2D02E4991E0B4A5E006451C7 /* Debug */ = {
1332 | isa = XCBuildConfiguration;
1333 | buildSettings = {
1334 | BUNDLE_LOADER = "$(TEST_HOST)";
1335 | CLANG_ANALYZER_NONNULL = YES;
1336 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
1337 | CLANG_WARN_INFINITE_RECURSION = YES;
1338 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1339 | DEBUG_INFORMATION_FORMAT = dwarf;
1340 | ENABLE_TESTABILITY = YES;
1341 | GCC_NO_COMMON_BLOCKS = YES;
1342 | INFOPLIST_FILE = "SpruceExample-tvOSTests/Info.plist";
1343 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1344 | LIBRARY_SEARCH_PATHS = (
1345 | "$(inherited)",
1346 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1347 | );
1348 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.SpruceExample-tvOSTests";
1349 | PRODUCT_NAME = "$(TARGET_NAME)";
1350 | SDKROOT = appletvos;
1351 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SpruceExample-tvOS.app/SpruceExample-tvOS";
1352 | TVOS_DEPLOYMENT_TARGET = 10.1;
1353 | };
1354 | name = Debug;
1355 | };
1356 | 2D02E49A1E0B4A5E006451C7 /* Release */ = {
1357 | isa = XCBuildConfiguration;
1358 | buildSettings = {
1359 | BUNDLE_LOADER = "$(TEST_HOST)";
1360 | CLANG_ANALYZER_NONNULL = YES;
1361 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
1362 | CLANG_WARN_INFINITE_RECURSION = YES;
1363 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1364 | COPY_PHASE_STRIP = NO;
1365 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
1366 | GCC_NO_COMMON_BLOCKS = YES;
1367 | INFOPLIST_FILE = "SpruceExample-tvOSTests/Info.plist";
1368 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1369 | LIBRARY_SEARCH_PATHS = (
1370 | "$(inherited)",
1371 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1372 | );
1373 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.SpruceExample-tvOSTests";
1374 | PRODUCT_NAME = "$(TARGET_NAME)";
1375 | SDKROOT = appletvos;
1376 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SpruceExample-tvOS.app/SpruceExample-tvOS";
1377 | TVOS_DEPLOYMENT_TARGET = 10.1;
1378 | };
1379 | name = Release;
1380 | };
1381 | 83CBBA201A601CBA00E9B192 /* Debug */ = {
1382 | isa = XCBuildConfiguration;
1383 | buildSettings = {
1384 | ALWAYS_SEARCH_USER_PATHS = NO;
1385 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
1386 | CLANG_CXX_LIBRARY = "libc++";
1387 | CLANG_ENABLE_MODULES = YES;
1388 | CLANG_ENABLE_OBJC_ARC = YES;
1389 | CLANG_WARN_BOOL_CONVERSION = YES;
1390 | CLANG_WARN_CONSTANT_CONVERSION = YES;
1391 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
1392 | CLANG_WARN_EMPTY_BODY = YES;
1393 | CLANG_WARN_ENUM_CONVERSION = YES;
1394 | CLANG_WARN_INT_CONVERSION = YES;
1395 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
1396 | CLANG_WARN_UNREACHABLE_CODE = YES;
1397 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
1398 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1399 | COPY_PHASE_STRIP = NO;
1400 | ENABLE_STRICT_OBJC_MSGSEND = YES;
1401 | GCC_C_LANGUAGE_STANDARD = gnu99;
1402 | GCC_DYNAMIC_NO_PIC = NO;
1403 | GCC_OPTIMIZATION_LEVEL = 0;
1404 | GCC_PREPROCESSOR_DEFINITIONS = (
1405 | "DEBUG=1",
1406 | "$(inherited)",
1407 | );
1408 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
1409 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
1410 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
1411 | GCC_WARN_UNDECLARED_SELECTOR = YES;
1412 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
1413 | GCC_WARN_UNUSED_FUNCTION = YES;
1414 | GCC_WARN_UNUSED_VARIABLE = YES;
1415 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
1416 | MTL_ENABLE_DEBUG_INFO = YES;
1417 | ONLY_ACTIVE_ARCH = YES;
1418 | SDKROOT = iphoneos;
1419 | };
1420 | name = Debug;
1421 | };
1422 | 83CBBA211A601CBA00E9B192 /* Release */ = {
1423 | isa = XCBuildConfiguration;
1424 | buildSettings = {
1425 | ALWAYS_SEARCH_USER_PATHS = NO;
1426 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
1427 | CLANG_CXX_LIBRARY = "libc++";
1428 | CLANG_ENABLE_MODULES = YES;
1429 | CLANG_ENABLE_OBJC_ARC = YES;
1430 | CLANG_WARN_BOOL_CONVERSION = YES;
1431 | CLANG_WARN_CONSTANT_CONVERSION = YES;
1432 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
1433 | CLANG_WARN_EMPTY_BODY = YES;
1434 | CLANG_WARN_ENUM_CONVERSION = YES;
1435 | CLANG_WARN_INT_CONVERSION = YES;
1436 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
1437 | CLANG_WARN_UNREACHABLE_CODE = YES;
1438 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
1439 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1440 | COPY_PHASE_STRIP = YES;
1441 | ENABLE_NS_ASSERTIONS = NO;
1442 | ENABLE_STRICT_OBJC_MSGSEND = YES;
1443 | GCC_C_LANGUAGE_STANDARD = gnu99;
1444 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
1445 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
1446 | GCC_WARN_UNDECLARED_SELECTOR = YES;
1447 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
1448 | GCC_WARN_UNUSED_FUNCTION = YES;
1449 | GCC_WARN_UNUSED_VARIABLE = YES;
1450 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
1451 | MTL_ENABLE_DEBUG_INFO = NO;
1452 | SDKROOT = iphoneos;
1453 | VALIDATE_PRODUCT = YES;
1454 | };
1455 | name = Release;
1456 | };
1457 | /* End XCBuildConfiguration section */
1458 |
1459 | /* Begin XCConfigurationList section */
1460 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "SpruceExampleTests" */ = {
1461 | isa = XCConfigurationList;
1462 | buildConfigurations = (
1463 | 00E356F61AD99517003FC87E /* Debug */,
1464 | 00E356F71AD99517003FC87E /* Release */,
1465 | );
1466 | defaultConfigurationIsVisible = 0;
1467 | defaultConfigurationName = Release;
1468 | };
1469 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "SpruceExample" */ = {
1470 | isa = XCConfigurationList;
1471 | buildConfigurations = (
1472 | 13B07F941A680F5B00A75B9A /* Debug */,
1473 | 13B07F951A680F5B00A75B9A /* Release */,
1474 | );
1475 | defaultConfigurationIsVisible = 0;
1476 | defaultConfigurationName = Release;
1477 | };
1478 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "SpruceExample-tvOS" */ = {
1479 | isa = XCConfigurationList;
1480 | buildConfigurations = (
1481 | 2D02E4971E0B4A5E006451C7 /* Debug */,
1482 | 2D02E4981E0B4A5E006451C7 /* Release */,
1483 | );
1484 | defaultConfigurationIsVisible = 0;
1485 | defaultConfigurationName = Release;
1486 | };
1487 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "SpruceExample-tvOSTests" */ = {
1488 | isa = XCConfigurationList;
1489 | buildConfigurations = (
1490 | 2D02E4991E0B4A5E006451C7 /* Debug */,
1491 | 2D02E49A1E0B4A5E006451C7 /* Release */,
1492 | );
1493 | defaultConfigurationIsVisible = 0;
1494 | defaultConfigurationName = Release;
1495 | };
1496 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "SpruceExample" */ = {
1497 | isa = XCConfigurationList;
1498 | buildConfigurations = (
1499 | 83CBBA201A601CBA00E9B192 /* Debug */,
1500 | 83CBBA211A601CBA00E9B192 /* Release */,
1501 | );
1502 | defaultConfigurationIsVisible = 0;
1503 | defaultConfigurationName = Release;
1504 | };
1505 | /* End XCConfigurationList section */
1506 | };
1507 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
1508 | }
1509 |
--------------------------------------------------------------------------------
/SpruceExample/ios/SpruceExample.xcodeproj/xcshareddata/xcschemes/SpruceExample-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 |
--------------------------------------------------------------------------------
/SpruceExample/ios/SpruceExample.xcodeproj/xcshareddata/xcschemes/SpruceExample.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 |
--------------------------------------------------------------------------------
/SpruceExample/ios/SpruceExample/AppDelegate.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 |
12 | @interface AppDelegate : UIResponder
13 |
14 | @property (nonatomic, strong) UIWindow *window;
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/SpruceExample/ios/SpruceExample/AppDelegate.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import "AppDelegate.h"
11 |
12 | #import
13 | #import
14 |
15 | @implementation AppDelegate
16 |
17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
18 | {
19 | NSURL *jsCodeLocation;
20 |
21 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
22 |
23 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
24 | moduleName:@"SpruceExample"
25 | initialProperties:nil
26 | launchOptions:launchOptions];
27 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
28 |
29 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
30 | UIViewController *rootViewController = [UIViewController new];
31 | rootViewController.view = rootView;
32 | self.window.rootViewController = rootViewController;
33 | [self.window makeKeyAndVisible];
34 | return YES;
35 | }
36 |
37 | @end
38 |
--------------------------------------------------------------------------------
/SpruceExample/ios/SpruceExample/Base.lproj/LaunchScreen.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/SpruceExample/ios/SpruceExample/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 | }
--------------------------------------------------------------------------------
/SpruceExample/ios/SpruceExample/Images.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/SpruceExample/ios/SpruceExample/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | SpruceExample
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | 1
25 | LSRequiresIPhoneOS
26 |
27 | UILaunchStoryboardName
28 | LaunchScreen
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 | UIViewControllerBasedStatusBarAppearance
40 |
41 | NSLocationWhenInUseUsageDescription
42 |
43 | NSAppTransportSecurity
44 |
45 |
46 | NSExceptionDomains
47 |
48 | localhost
49 |
50 | NSExceptionAllowsInsecureHTTPLoads
51 |
52 |
53 |
54 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/SpruceExample/ios/SpruceExample/main.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 |
12 | #import "AppDelegate.h"
13 |
14 | int main(int argc, char * argv[]) {
15 | @autoreleasepool {
16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/SpruceExample/ios/SpruceExampleTests/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 |
--------------------------------------------------------------------------------
/SpruceExample/ios/SpruceExampleTests/SpruceExampleTests.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 | #import
12 |
13 | #import
14 | #import
15 |
16 | #define TIMEOUT_SECONDS 600
17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!"
18 |
19 | @interface SpruceExampleTests : XCTestCase
20 |
21 | @end
22 |
23 | @implementation SpruceExampleTests
24 |
25 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test
26 | {
27 | if (test(view)) {
28 | return YES;
29 | }
30 | for (UIView *subview in [view subviews]) {
31 | if ([self findSubviewInView:subview matching:test]) {
32 | return YES;
33 | }
34 | }
35 | return NO;
36 | }
37 |
38 | - (void)testRendersWelcomeScreen
39 | {
40 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController];
41 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
42 | BOOL foundElement = NO;
43 |
44 | __block NSString *redboxError = nil;
45 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {
46 | if (level >= RCTLogLevelError) {
47 | redboxError = message;
48 | }
49 | });
50 |
51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) {
52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
54 |
55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) {
56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) {
57 | return YES;
58 | }
59 | return NO;
60 | }];
61 | }
62 |
63 | RCTSetLogFunction(RCTDefaultLogFunction);
64 |
65 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError);
66 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS);
67 | }
68 |
69 |
70 | @end
71 |
--------------------------------------------------------------------------------
/SpruceExample/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "SpruceExample",
3 | "version": "0.0.1",
4 | "private": true,
5 | "scripts": {
6 | "start": "node node_modules/react-native/local-cli/cli.js start",
7 | "test": "jest"
8 | },
9 | "dependencies": {
10 | "react": "16.3.1",
11 | "react-native": "0.55.4",
12 | "react-native-spruce": "../",
13 | "rn-placeholder": "1.1.0",
14 | "react-native-super-grid": "2.0.2"
15 | },
16 | "devDependencies": {
17 | "babel-jest": "21.2.0",
18 | "babel-preset-react-native": "4.0.0",
19 | "jest": "21.2.1",
20 | "react-test-renderer": "16.0.0"
21 | },
22 | "jest": {
23 | "preset": "react-native"
24 | }
25 | }
--------------------------------------------------------------------------------
/android/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/android/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | android
4 | Project android 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/.settings/org.eclipse.buildship.core.prefs:
--------------------------------------------------------------------------------
1 | #Mon May 21 14:56:14 IST 2018
2 | connection.project.dir=
3 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 |
2 | buildscript {
3 | repositories {
4 | jcenter()
5 | google()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.0.1'
10 | }
11 | }
12 |
13 | apply plugin: 'com.android.library'
14 |
15 | android {
16 | compileSdkVersion 27
17 | buildToolsVersion "27.0.3"
18 |
19 | defaultConfig {
20 | minSdkVersion 16
21 | targetSdkVersion 27
22 | versionCode 1
23 | versionName "1.0"
24 | }
25 | lintOptions {
26 | abortOnError false
27 | }
28 | }
29 |
30 | repositories {
31 | mavenCentral()
32 | google()
33 | }
34 |
35 | dependencies {
36 | compile 'com.facebook.react:react-native:+'
37 | compile "com.android.support:appcompat-v7:27.0.2"
38 | compile 'com.willowtreeapps.spruce:spruce-android:1.0.1'
39 | }
40 |
--------------------------------------------------------------------------------
/android/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/android/src/main/java/ui/spruce/RNSpruceModule.java:
--------------------------------------------------------------------------------
1 |
2 | package ui.spruce;
3 |
4 | import android.animation.Animator;
5 | import android.animation.ObjectAnimator;
6 | import android.app.Activity;
7 | import android.view.View;
8 | import android.view.ViewGroup;
9 |
10 | import com.facebook.react.bridge.ReactApplicationContext;
11 | import com.facebook.react.bridge.ReactContextBaseJavaModule;
12 | import com.facebook.react.bridge.ReactMethod;
13 | import com.facebook.react.bridge.Callback;
14 | import com.facebook.react.bridge.Promise;
15 |
16 | import com.facebook.react.bridge.ReadableArray;
17 | import com.facebook.react.bridge.ReadableMap;
18 | import com.facebook.react.views.scroll.ReactScrollView;
19 | import com.willowtreeapps.spruce.Spruce;
20 | import com.willowtreeapps.spruce.animation.DefaultAnimations;
21 | import com.willowtreeapps.spruce.sort.ContinuousSort;
22 | import com.willowtreeapps.spruce.sort.CorneredSort;
23 | import com.willowtreeapps.spruce.sort.DefaultSort;
24 | import com.willowtreeapps.spruce.sort.LinearSort;
25 | import com.willowtreeapps.spruce.sort.RadialSort;
26 | import com.willowtreeapps.spruce.sort.RandomSort;
27 |
28 | import java.util.ArrayList;
29 |
30 | public class RNSpruceModule extends ReactContextBaseJavaModule {
31 |
32 | public RNSpruceModule(ReactApplicationContext reactContext) {
33 | super(reactContext);
34 | }
35 |
36 | @Override
37 | public String getName() {
38 | return "RNSpruce";
39 | }
40 |
41 |
42 | @ReactMethod
43 | public void StartAnimator(final int parentView, final ReadableMap sortWith, final ReadableMap animateWith, final ReadableMap animator, final Promise promise) {
44 | final ViewGroup parentTargetView = getCurrentActivity().findViewById(parentView);
45 |
46 | if (parentTargetView == null) return;
47 |
48 | ViewGroup childTargetView = (ViewGroup) parentTargetView.getChildAt(0);
49 | if (childTargetView instanceof ReactScrollView) childTargetView = (ViewGroup) childTargetView.getChildAt(0);
50 |
51 | final ViewGroup targetView = (ViewGroup) childTargetView;
52 |
53 | getCurrentActivity().runOnUiThread(new Runnable() {
54 | @Override
55 | public void run() {
56 | parentTargetView.setVisibility(View.VISIBLE);
57 |
58 | Spruce.SpruceBuilder spruceAnimator = new Spruce.SpruceBuilder(targetView);
59 |
60 | String sortType = sortWith.getString("name");
61 | switch(sortType) {
62 | case "DefaultSort":
63 | long interObjectDelay = sortWith.getInt("interObjectDelay");
64 |
65 | spruceAnimator.sortWith(new DefaultSort(interObjectDelay));
66 | break;
67 | case "CorneredSort":
68 | interObjectDelay = sortWith.getInt("interObjectDelay");
69 | boolean reversed = sortWith.getBoolean("reversed");
70 | String corner = sortWith.getString("corner");
71 |
72 | spruceAnimator.sortWith(new CorneredSort(interObjectDelay, reversed, CorneredSort.Corner.valueOf(corner)));
73 | break;
74 | case "LinearSort":
75 | interObjectDelay = sortWith.getInt("interObjectDelay");
76 | reversed = sortWith.getBoolean("reversed");
77 | String direction = sortWith.getString("direction");
78 |
79 | spruceAnimator.sortWith(new LinearSort(interObjectDelay, reversed, LinearSort.Direction.valueOf(direction)));
80 | break;
81 | case "ContinuousSort":
82 | interObjectDelay = sortWith.getInt("interObjectDelay");
83 | reversed = sortWith.getBoolean("reversed");
84 | String position = sortWith.getString("position");
85 |
86 | spruceAnimator.sortWith(new ContinuousSort(interObjectDelay, reversed, RadialSort.Position.valueOf(position)));
87 | break;
88 | case "RadialSort":
89 | interObjectDelay = sortWith.getInt("interObjectDelay");
90 | reversed = sortWith.getBoolean("reversed");
91 | position = sortWith.getString("position");
92 |
93 | spruceAnimator.sortWith(new RadialSort(interObjectDelay, reversed, RadialSort.Position.valueOf(position)));
94 | break;
95 | case "RandomSort":
96 | interObjectDelay = sortWith.getInt("interObjectDelay");
97 |
98 | spruceAnimator.sortWith(new RandomSort(interObjectDelay));
99 | break;
100 | }
101 |
102 |
103 | String animateType = animateWith.getString("name");
104 | long duration = animateWith.getInt("duration");
105 |
106 | Animator finalAnimator = null;
107 | if (animator != null) {
108 | ReadableArray rnValues = animator.getArray("values");
109 | float[] values = new float[rnValues.size()];
110 |
111 | for (int index = 0; index < rnValues.size();index++) {
112 | values[index] = rnValues.getInt(index);
113 | }
114 |
115 | finalAnimator = ObjectAnimator.ofFloat(targetView, animator.getString("propertyName"), values).setDuration(animator.getInt("duration"));
116 | }
117 |
118 | switch (animateType) {
119 | case "fadeAwayAnimator":
120 | if (finalAnimator == null) {
121 | spruceAnimator.animateWith(DefaultAnimations.fadeAwayAnimator(targetView, duration));
122 | } else {
123 | spruceAnimator.animateWith(DefaultAnimations.fadeAwayAnimator(targetView, duration), finalAnimator);
124 | }
125 |
126 | break;
127 | case "fadeInAnimator":
128 | if (finalAnimator == null) {
129 | spruceAnimator.animateWith(DefaultAnimations.fadeInAnimator(targetView, duration));
130 | } else {
131 | spruceAnimator.animateWith(DefaultAnimations.fadeInAnimator(targetView, duration), finalAnimator);
132 | }
133 |
134 | break;
135 | case "growAnimator":
136 | if (finalAnimator == null) {
137 | spruceAnimator.animateWith(DefaultAnimations.growAnimator(targetView, duration));
138 | } else {
139 | spruceAnimator.animateWith(DefaultAnimations.growAnimator(targetView, duration), finalAnimator);
140 | }
141 |
142 | break;
143 | case "shrinkAnimator":
144 | if (finalAnimator == null) {
145 | spruceAnimator.animateWith(DefaultAnimations.shrinkAnimator(targetView, duration));
146 | } else {
147 | spruceAnimator.animateWith(DefaultAnimations.shrinkAnimator(targetView, duration), finalAnimator);
148 | }
149 |
150 | break;
151 | case "spinAnimator":
152 | if (finalAnimator == null) {
153 | spruceAnimator.animateWith(DefaultAnimations.spinAnimator(targetView, duration));
154 | } else {
155 | spruceAnimator.animateWith(DefaultAnimations.spinAnimator(targetView, duration), finalAnimator);
156 | }
157 |
158 | break;
159 | }
160 |
161 | spruceAnimator.start();
162 | }
163 | });
164 | }
165 | }
--------------------------------------------------------------------------------
/android/src/main/java/ui/spruce/RNSprucePackage.java:
--------------------------------------------------------------------------------
1 |
2 | package ui.spruce;
3 |
4 | import java.util.ArrayList;
5 | import java.util.Collections;
6 | import java.util.List;
7 |
8 | import com.facebook.react.ReactPackage;
9 | import com.facebook.react.bridge.NativeModule;
10 | import com.facebook.react.bridge.ReactApplicationContext;
11 | import com.facebook.react.uimanager.ViewManager;
12 | import com.facebook.react.bridge.JavaScriptModule;
13 |
14 | public class RNSprucePackage implements ReactPackage {
15 | @Override
16 | public List createNativeModules(ReactApplicationContext reactContext) {
17 | List modules = new ArrayList();
18 | modules.add(new RNSpruceModule(reactContext));
19 |
20 | return modules;
21 | }
22 |
23 | // Deprecated from RN 0.47
24 | public List> createJSModules() {
25 | return Collections.emptyList();
26 | }
27 |
28 | @Override
29 | public List createViewManagers(ReactApplicationContext reactContext) {
30 | List modules = new ArrayList<>();
31 | modules.add(new RNSpruceViewComponent());
32 |
33 | return modules;
34 | }
35 | }
--------------------------------------------------------------------------------
/android/src/main/java/ui/spruce/RNSpruceViewComponent.java:
--------------------------------------------------------------------------------
1 |
2 | package ui.spruce;
3 |
4 | import android.animation.Animator;
5 | import android.animation.ObjectAnimator;
6 | import android.app.Activity;
7 | import android.view.View;
8 | import android.view.ViewGroup;
9 | import android.widget.FrameLayout;
10 |
11 | import com.facebook.react.bridge.ReactApplicationContext;
12 | import com.facebook.react.bridge.ReactContextBaseJavaModule;
13 | import com.facebook.react.bridge.ReactMethod;
14 | import com.facebook.react.bridge.Callback;
15 | import com.facebook.react.bridge.Promise;
16 |
17 | import com.facebook.react.bridge.ReadableArray;
18 | import com.facebook.react.bridge.ReadableMap;
19 | import com.facebook.react.uimanager.ThemedReactContext;
20 | import com.facebook.react.uimanager.ViewGroupManager;
21 | import com.facebook.react.uimanager.annotations.ReactProp;
22 |
23 | import java.util.ArrayList;
24 |
25 | import javax.annotation.Nullable;
26 |
27 | public class RNSpruceViewComponent extends ViewGroupManager {
28 |
29 | public static final String REACT_CLASS = "RNSpruceView";
30 |
31 | @Override
32 | public String getName() {
33 | return REACT_CLASS;
34 | }
35 |
36 |
37 | @Override
38 | protected FrameLayout createViewInstance(ThemedReactContext reactContext) {
39 | return new FrameLayout(reactContext);
40 | }
41 |
42 | @ReactProp(name = "hidden")
43 | public void setVisibility(FrameLayout view, @Nullable boolean hidden) {
44 | if (hidden) {
45 | view.setVisibility(View.GONE);
46 | } else {
47 | view.setVisibility(View.VISIBLE);
48 | }
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/index.android.js:
--------------------------------------------------------------------------------
1 |
2 | export * from './js'
3 |
--------------------------------------------------------------------------------
/index.ios.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prscX/react-native-spruce/6eef94ef6758b64c6c5560ba6c3ca0d7786a6e8b/index.ios.js
--------------------------------------------------------------------------------
/ios/RNSpruce.h:
--------------------------------------------------------------------------------
1 |
2 | #if __has_include("RCTBridgeModule.h")
3 | #import "RCTBridgeModule.h"
4 | #else
5 | #import
6 | #endif
7 |
8 | @interface RNSpruce : NSObject
9 |
10 | @end
11 |
--------------------------------------------------------------------------------
/ios/RNSpruce.m:
--------------------------------------------------------------------------------
1 |
2 | #import "RNSpruce.h"
3 |
4 | @implementation RNSpruce
5 |
6 | - (dispatch_queue_t)methodQueue
7 | {
8 | return dispatch_get_main_queue();
9 | }
10 | RCT_EXPORT_MODULE()
11 |
12 |
13 | RCT_EXPORT_METHOD(StartAnimator:(nonnull NSNumber *)view sortWith:(NSDictionary *)sortWith animateWith:(NSDictionary *)animateWith animator:(NSDictionary *)animator) {
14 |
15 |
16 |
17 | }
18 |
19 | @end
20 |
21 |
--------------------------------------------------------------------------------
/ios/RNSpruce.podspec:
--------------------------------------------------------------------------------
1 |
2 | Pod::Spec.new do |s|
3 | s.name = "RNSpruce"
4 | s.version = "1.0.0"
5 | s.summary = "RNSpruce"
6 | s.description = <<-DESC
7 | RNSpruce
8 | DESC
9 | s.homepage = ""
10 | s.license = "MIT"
11 | # s.license = { :type => "MIT", :file => "FILE_LICENSE" }
12 | s.author = { "author" => "author@domain.cn" }
13 | s.platform = :ios, "7.0"
14 | s.source = { :git => "https://github.com/author/RNSpruce.git", :tag => "master" }
15 | s.source_files = "RNSpruce/**/*.{h,m}"
16 | s.requires_arc = true
17 |
18 |
19 | s.dependency "React"
20 | #s.dependency "others"
21 |
22 | end
23 |
24 |
--------------------------------------------------------------------------------
/ios/RNSpruce.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | B3E7B58A1CC2AC0600A0062D /* RNSpruce.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNSpruce.m */; };
11 | /* End PBXBuildFile section */
12 |
13 | /* Begin PBXCopyFilesBuildPhase section */
14 | 58B511D91A9E6C8500147676 /* CopyFiles */ = {
15 | isa = PBXCopyFilesBuildPhase;
16 | buildActionMask = 2147483647;
17 | dstPath = "include/$(PRODUCT_NAME)";
18 | dstSubfolderSpec = 16;
19 | files = (
20 | );
21 | runOnlyForDeploymentPostprocessing = 0;
22 | };
23 | /* End PBXCopyFilesBuildPhase section */
24 |
25 | /* Begin PBXFileReference section */
26 | 134814201AA4EA6300B7C361 /* libRNSpruce.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNSpruce.a; sourceTree = BUILT_PRODUCTS_DIR; };
27 | B3E7B5881CC2AC0600A0062D /* RNSpruce.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNSpruce.h; sourceTree = ""; };
28 | B3E7B5891CC2AC0600A0062D /* RNSpruce.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNSpruce.m; sourceTree = ""; };
29 | /* End PBXFileReference section */
30 |
31 | /* Begin PBXFrameworksBuildPhase section */
32 | 58B511D81A9E6C8500147676 /* Frameworks */ = {
33 | isa = PBXFrameworksBuildPhase;
34 | buildActionMask = 2147483647;
35 | files = (
36 | );
37 | runOnlyForDeploymentPostprocessing = 0;
38 | };
39 | /* End PBXFrameworksBuildPhase section */
40 |
41 | /* Begin PBXGroup section */
42 | 134814211AA4EA7D00B7C361 /* Products */ = {
43 | isa = PBXGroup;
44 | children = (
45 | 134814201AA4EA6300B7C361 /* libRNSpruce.a */,
46 | );
47 | name = Products;
48 | sourceTree = "";
49 | };
50 | 58B511D21A9E6C8500147676 = {
51 | isa = PBXGroup;
52 | children = (
53 | B3E7B5881CC2AC0600A0062D /* RNSpruce.h */,
54 | B3E7B5891CC2AC0600A0062D /* RNSpruce.m */,
55 | 134814211AA4EA7D00B7C361 /* Products */,
56 | );
57 | sourceTree = "";
58 | };
59 | /* End PBXGroup section */
60 |
61 | /* Begin PBXNativeTarget section */
62 | 58B511DA1A9E6C8500147676 /* RNSpruce */ = {
63 | isa = PBXNativeTarget;
64 | buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNSpruce" */;
65 | buildPhases = (
66 | 58B511D71A9E6C8500147676 /* Sources */,
67 | 58B511D81A9E6C8500147676 /* Frameworks */,
68 | 58B511D91A9E6C8500147676 /* CopyFiles */,
69 | );
70 | buildRules = (
71 | );
72 | dependencies = (
73 | );
74 | name = RNSpruce;
75 | productName = RCTDataManager;
76 | productReference = 134814201AA4EA6300B7C361 /* libRNSpruce.a */;
77 | productType = "com.apple.product-type.library.static";
78 | };
79 | /* End PBXNativeTarget section */
80 |
81 | /* Begin PBXProject section */
82 | 58B511D31A9E6C8500147676 /* Project object */ = {
83 | isa = PBXProject;
84 | attributes = {
85 | LastUpgradeCheck = 0830;
86 | ORGANIZATIONNAME = Facebook;
87 | TargetAttributes = {
88 | 58B511DA1A9E6C8500147676 = {
89 | CreatedOnToolsVersion = 6.1.1;
90 | };
91 | };
92 | };
93 | buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNSpruce" */;
94 | compatibilityVersion = "Xcode 3.2";
95 | developmentRegion = English;
96 | hasScannedForEncodings = 0;
97 | knownRegions = (
98 | en,
99 | );
100 | mainGroup = 58B511D21A9E6C8500147676;
101 | productRefGroup = 58B511D21A9E6C8500147676;
102 | projectDirPath = "";
103 | projectRoot = "";
104 | targets = (
105 | 58B511DA1A9E6C8500147676 /* RNSpruce */,
106 | );
107 | };
108 | /* End PBXProject section */
109 |
110 | /* Begin PBXSourcesBuildPhase section */
111 | 58B511D71A9E6C8500147676 /* Sources */ = {
112 | isa = PBXSourcesBuildPhase;
113 | buildActionMask = 2147483647;
114 | files = (
115 | B3E7B58A1CC2AC0600A0062D /* RNSpruce.m in Sources */,
116 | );
117 | runOnlyForDeploymentPostprocessing = 0;
118 | };
119 | /* End PBXSourcesBuildPhase section */
120 |
121 | /* Begin XCBuildConfiguration section */
122 | 58B511ED1A9E6C8500147676 /* Debug */ = {
123 | isa = XCBuildConfiguration;
124 | buildSettings = {
125 | ALWAYS_SEARCH_USER_PATHS = NO;
126 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
127 | CLANG_CXX_LIBRARY = "libc++";
128 | CLANG_ENABLE_MODULES = YES;
129 | CLANG_ENABLE_OBJC_ARC = YES;
130 | CLANG_WARN_BOOL_CONVERSION = YES;
131 | CLANG_WARN_CONSTANT_CONVERSION = YES;
132 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
133 | CLANG_WARN_EMPTY_BODY = YES;
134 | CLANG_WARN_ENUM_CONVERSION = YES;
135 | CLANG_WARN_INFINITE_RECURSION = YES;
136 | CLANG_WARN_INT_CONVERSION = YES;
137 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
138 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
139 | CLANG_WARN_UNREACHABLE_CODE = YES;
140 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
141 | COPY_PHASE_STRIP = NO;
142 | ENABLE_STRICT_OBJC_MSGSEND = YES;
143 | ENABLE_TESTABILITY = YES;
144 | GCC_C_LANGUAGE_STANDARD = gnu99;
145 | GCC_DYNAMIC_NO_PIC = NO;
146 | GCC_NO_COMMON_BLOCKS = YES;
147 | GCC_OPTIMIZATION_LEVEL = 0;
148 | GCC_PREPROCESSOR_DEFINITIONS = (
149 | "DEBUG=1",
150 | "$(inherited)",
151 | );
152 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
153 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
154 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
155 | GCC_WARN_UNDECLARED_SELECTOR = YES;
156 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
157 | GCC_WARN_UNUSED_FUNCTION = YES;
158 | GCC_WARN_UNUSED_VARIABLE = YES;
159 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
160 | MTL_ENABLE_DEBUG_INFO = YES;
161 | ONLY_ACTIVE_ARCH = YES;
162 | SDKROOT = iphoneos;
163 | };
164 | name = Debug;
165 | };
166 | 58B511EE1A9E6C8500147676 /* Release */ = {
167 | isa = XCBuildConfiguration;
168 | buildSettings = {
169 | ALWAYS_SEARCH_USER_PATHS = NO;
170 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
171 | CLANG_CXX_LIBRARY = "libc++";
172 | CLANG_ENABLE_MODULES = YES;
173 | CLANG_ENABLE_OBJC_ARC = YES;
174 | CLANG_WARN_BOOL_CONVERSION = YES;
175 | CLANG_WARN_CONSTANT_CONVERSION = YES;
176 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
177 | CLANG_WARN_EMPTY_BODY = YES;
178 | CLANG_WARN_ENUM_CONVERSION = YES;
179 | CLANG_WARN_INFINITE_RECURSION = YES;
180 | CLANG_WARN_INT_CONVERSION = YES;
181 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
182 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
183 | CLANG_WARN_UNREACHABLE_CODE = YES;
184 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
185 | COPY_PHASE_STRIP = YES;
186 | ENABLE_NS_ASSERTIONS = NO;
187 | ENABLE_STRICT_OBJC_MSGSEND = YES;
188 | GCC_C_LANGUAGE_STANDARD = gnu99;
189 | GCC_NO_COMMON_BLOCKS = YES;
190 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
191 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
192 | GCC_WARN_UNDECLARED_SELECTOR = YES;
193 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
194 | GCC_WARN_UNUSED_FUNCTION = YES;
195 | GCC_WARN_UNUSED_VARIABLE = YES;
196 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
197 | MTL_ENABLE_DEBUG_INFO = NO;
198 | SDKROOT = iphoneos;
199 | VALIDATE_PRODUCT = YES;
200 | };
201 | name = Release;
202 | };
203 | 58B511F01A9E6C8500147676 /* Debug */ = {
204 | isa = XCBuildConfiguration;
205 | buildSettings = {
206 | HEADER_SEARCH_PATHS = (
207 | "$(inherited)",
208 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
209 | "$(SRCROOT)/../../../React/**",
210 | "$(SRCROOT)/../../react-native/React/**",
211 | );
212 | LIBRARY_SEARCH_PATHS = "$(inherited)";
213 | OTHER_LDFLAGS = "-ObjC";
214 | PRODUCT_NAME = RNSpruce;
215 | SKIP_INSTALL = YES;
216 | };
217 | name = Debug;
218 | };
219 | 58B511F11A9E6C8500147676 /* Release */ = {
220 | isa = XCBuildConfiguration;
221 | buildSettings = {
222 | HEADER_SEARCH_PATHS = (
223 | "$(inherited)",
224 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
225 | "$(SRCROOT)/../../../React/**",
226 | "$(SRCROOT)/../../react-native/React/**",
227 | );
228 | LIBRARY_SEARCH_PATHS = "$(inherited)";
229 | OTHER_LDFLAGS = "-ObjC";
230 | PRODUCT_NAME = RNSpruce;
231 | SKIP_INSTALL = YES;
232 | };
233 | name = Release;
234 | };
235 | /* End XCBuildConfiguration section */
236 |
237 | /* Begin XCConfigurationList section */
238 | 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNSpruce" */ = {
239 | isa = XCConfigurationList;
240 | buildConfigurations = (
241 | 58B511ED1A9E6C8500147676 /* Debug */,
242 | 58B511EE1A9E6C8500147676 /* Release */,
243 | );
244 | defaultConfigurationIsVisible = 0;
245 | defaultConfigurationName = Release;
246 | };
247 | 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNSpruce" */ = {
248 | isa = XCConfigurationList;
249 | buildConfigurations = (
250 | 58B511F01A9E6C8500147676 /* Debug */,
251 | 58B511F11A9E6C8500147676 /* Release */,
252 | );
253 | defaultConfigurationIsVisible = 0;
254 | defaultConfigurationName = Release;
255 | };
256 | /* End XCConfigurationList section */
257 | };
258 | rootObject = 58B511D31A9E6C8500147676 /* Project object */;
259 | }
260 |
--------------------------------------------------------------------------------
/ios/RNSpruce.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 |
3 |
5 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/js/Spruce.js:
--------------------------------------------------------------------------------
1 |
2 | import React, { Component } from 'react'
3 | import {
4 | NativeModules,
5 | findNodeHandle,
6 | requireNativeComponent,
7 | ViewPropTypes
8 | } from "react-native";
9 | import PropTypes from 'prop-types'
10 |
11 | const { RNSpruce } = NativeModules;
12 |
13 | import {
14 | DefaultSort
15 | } from "./sort";
16 |
17 | import { DefaultAnimations } from './animation'
18 |
19 | class Spruce extends Component {
20 | static displayName = "Toggle";
21 | static propTypes = {
22 | ...ViewPropTypes,
23 | hidden: PropTypes.bool
24 | };
25 |
26 | static defaultProps = {
27 | hidden: true
28 | };
29 |
30 | componentDidMount() {
31 | setTimeout(() => {
32 | let spruceBuilder = SpruceBuilder(this.ref);
33 |
34 | let sortWith = this.props.sortWith;
35 | if (sortWith === undefined) sortWith = new DefaultSort()
36 |
37 | let animationWith = this.props.animateWith;
38 | if (animationWith === undefined) animationWith = DefaultAnimations.shrinkAnimator()
39 |
40 | spruceBuilder.sortWith(sortWith)
41 | spruceBuilder.animateWith(animationWith)
42 |
43 | let animator = this.props.animator
44 |
45 | spruceBuilder.start(animator);
46 | }, 100);
47 | }
48 |
49 | render() {
50 | return {
51 | this.ref = ref;
52 | }}>
53 | {this.props.children}
54 | ;
55 | }
56 | }
57 |
58 | let SpruceBuilder = (view) => {
59 | this.view = findNodeHandle(view)
60 |
61 | return {
62 | sortWith: (sortWith) => {
63 | this.sortWith = sortWith.toJSON()
64 | },
65 |
66 | animateWith: (animateWith) => {
67 | this.animateWith = animateWith
68 | },
69 |
70 | start: (animator) => {
71 | RNSpruce.StartAnimator(
72 | this.view,
73 | this.sortWith,
74 | this.animateWith,
75 | animator
76 | )
77 | }
78 | }
79 | }
80 |
81 | let RNSpruceView = requireNativeComponent("RNSpruceView", Spruce);
82 |
83 | export { Spruce }
--------------------------------------------------------------------------------
/js/animation/DefaultAnimations.js:
--------------------------------------------------------------------------------
1 |
2 | const DEFAULT_DURATION = 800
3 |
4 | class DefaultAnimations {
5 | static fadeAwayAnimator(duration) {
6 | if (duration === undefined) duration = DEFAULT_DURATION;
7 | return { name: "fadeAwayAnimator", duration: duration };
8 | }
9 |
10 | static fadeInAnimator(duration) {
11 | if (duration === undefined) duration = DEFAULT_DURATION;
12 | return { name: "fadeInAnimator", duration: duration };
13 | }
14 |
15 | static growAnimator(duration) {
16 | if (duration === undefined) duration = DEFAULT_DURATION;
17 | return { name: "growAnimator", duration: duration };
18 | }
19 |
20 | static shrinkAnimator(duration) {
21 | if (duration === undefined) duration = DEFAULT_DURATION;
22 | return { name: "shrinkAnimator", duration: duration };
23 | }
24 |
25 | static spinAnimator(duration) {
26 | if (duration === undefined) duration = DEFAULT_DURATION;
27 | return { name: "spinAnimator", duration: duration };
28 | }
29 | }
30 |
31 | export { DefaultAnimations };
--------------------------------------------------------------------------------
/js/animation/index.js:
--------------------------------------------------------------------------------
1 | export * from './DefaultAnimations'
--------------------------------------------------------------------------------
/js/index.js:
--------------------------------------------------------------------------------
1 | export * from './sort'
2 | export * from './animation'
3 |
4 | export * from './Spruce'
--------------------------------------------------------------------------------
/js/sort/ContinuousSort.js:
--------------------------------------------------------------------------------
1 |
2 | class ContinuousSort {
3 | static Position = {
4 | TOP_LEFT: "TOP_LEFT",
5 | TOP_MIDDLE: "TOP_MIDDLE",
6 | TOP_RIGHT: "TOP_RIGHT",
7 | LEFT: "LEFT",
8 | MIDDLE: "MIDDLE",
9 | RIGHT: "RIGHT",
10 | BOTTOM_LEFT: "BOTTOM_LEFT",
11 | BOTTOM_MIDDLE: "BOTTOM_MIDDLE",
12 | BOTTOM_RIGHT: "BOTTOM_RIGHT"
13 | };
14 |
15 | constructor(interObjectDelay, reversed, position) {
16 | this.interObjectDelay = interObjectDelay
17 | this.reversed = reversed
18 | this.position = position
19 |
20 | if (this.interObjectDelay === undefined) this.interObjectDelay = 50;
21 | if (this.reversed === undefined) this.reversed = false;
22 | if (this.position === undefined) this.position = ContinuousSort.Position.TOP_LEFT;
23 | }
24 |
25 | toJSON() {
26 | return { name: "ContinuousSort", interObjectDelay: this.interObjectDelay, reversed: this.reversed, position: this.position };
27 | }
28 | }
29 |
30 | export { ContinuousSort }
--------------------------------------------------------------------------------
/js/sort/CorneredSort.js:
--------------------------------------------------------------------------------
1 |
2 | class CorneredSort {
3 | static Corner = {
4 | TOP_LEFT: "TOP_LEFT",
5 | TOP_RIGHT: "TOP_RIGHT",
6 | BOTTOM_LEFT: "BOTTOM_LEFT",
7 | BOTTOM_RIGHT: "BOTTOM_RIGHT"
8 | };
9 |
10 | constructor(interObjectDelay, reversed, corner) {
11 | this.interObjectDelay = interObjectDelay
12 | this.reversed = reversed
13 | this.corner = corner
14 |
15 | if (this.interObjectDelay === undefined) this.interObjectDelay = 50
16 | if (this.reversed === undefined) this.reversed = false
17 | if (this.corner === undefined) this.corner = CorneredSort.Corner.TOP_LEFT;
18 | }
19 |
20 | toJSON() {
21 | return { name: 'CorneredSort', interObjectDelay: this.interObjectDelay, reversed: this.reversed, corner: this.corner };
22 | }
23 | }
24 |
25 | export { CorneredSort };
--------------------------------------------------------------------------------
/js/sort/DefaultSort.js:
--------------------------------------------------------------------------------
1 |
2 | const SORT = 'DefaultSort'
3 |
4 | class DefaultSort {
5 | constructor(interObjectDelay) {
6 | this.interObjectDelay = interObjectDelay
7 |
8 | if (this.interObjectDelay === undefined) this.interObjectDelay = 50
9 | }
10 |
11 | toJSON() {
12 | return { name: 'DefaultSort', interObjectDelay: this.interObjectDelay }
13 | }
14 | }
15 |
16 | export { DefaultSort }
--------------------------------------------------------------------------------
/js/sort/LinearSort.js:
--------------------------------------------------------------------------------
1 |
2 | class LinearSort {
3 | static Direction = {
4 | TOP_TO_BOTTOM: "TOP_TO_BOTTOM",
5 | BOTTOM_TO_TOP: "BOTTOM_TO_TOP",
6 | LEFT_TO_RIGHT: "LEFT_TO_RIGHT",
7 | RIGHT_TO_LEFT: "RIGHT_TO_LEFT"
8 | };
9 |
10 | constructor(interObjectDelay, reversed, direction) {
11 | this.interObjectDelay = interObjectDelay;
12 | this.reversed = reversed;
13 | this.direction = direction;
14 |
15 | if (this.interObjectDelay === undefined) this.interObjectDelay = 50
16 | if (this.reversed === undefined) this.reversed = false
17 | if (this.direction === undefined) this.direction = LinearSort.Direction.TOP_TO_BOTTOM
18 | }
19 |
20 | toJSON() {
21 | return { name: "LinearSort", interObjectDelay: this.interObjectDelay, reversed: this.reversed, direction: this.direction };
22 | }
23 | }
24 |
25 | export { LinearSort }
--------------------------------------------------------------------------------
/js/sort/RadialSort.js:
--------------------------------------------------------------------------------
1 |
2 | class RadialSort {
3 | static Position = {
4 | TOP_LEFT: "TOP_LEFT",
5 | TOP_MIDDLE: "TOP_MIDDLE",
6 | TOP_RIGHT: "TOP_RIGHT",
7 | LEFT: "LEFT",
8 | MIDDLE: "MIDDLE",
9 | RIGHT: "RIGHT",
10 | BOTTOM_LEFT: "BOTTOM_LEFT",
11 | BOTTOM_MIDDLE: "BOTTOM_MIDDLE",
12 | BOTTOM_RIGHT: "BOTTOM_RIGHT"
13 | };
14 |
15 | constructor(interObjectDelay, reversed, position) {
16 | this.interObjectDelay = interObjectDelay
17 | this.reversed = reversed
18 | this.position = position
19 |
20 | if (this.interObjectDelay === undefined) this.interObjectDelay = 50
21 | if (this.reversed === undefined) this.reversed = false
22 | if (this.position === undefined) this.position = RadialSort.Position.TOP_LEFT
23 | }
24 |
25 | toJSON() {
26 | return { name: "RadialSort", interObjectDelay: this.interObjectDelay, reversed: this.reversed, position: this.position };
27 | }
28 | }
29 |
30 | export { RadialSort }
--------------------------------------------------------------------------------
/js/sort/RandomSort.js:
--------------------------------------------------------------------------------
1 |
2 | class RandomSort {
3 | constructor(interObjectDelay) {
4 | this.interObjectDelay = interObjectDelay
5 |
6 | if (this.interObjectDelay === undefined) this.interObjectDelay = 50
7 | }
8 |
9 | toJSON() {
10 | return { name: "RandomSort", interObjectDelay: this.interObjectDelay };
11 | }
12 | }
13 |
14 | export { RandomSort }
--------------------------------------------------------------------------------
/js/sort/index.js:
--------------------------------------------------------------------------------
1 |
2 | export * from './CorneredSort'
3 | export * from './ContinuousSort'
4 | export * from './DefaultSort'
5 | export * from './LinearSort'
6 | export * from './RadialSort'
7 | export * from './RandomSort'
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "react-native-spruce",
3 | "version": "0.0.6",
4 | "description": "React Native Bridge for Spruce Library",
5 | "repository": {
6 | "type": "git",
7 | "url": "https://github.com/prscX/react-native-spruce.git"
8 | },
9 | "scripts": {
10 | "test": "echo \"Error: no test specified\" && exit 1"
11 | },
12 | "keywords": ["react-native"],
13 | "author": "Pranav Raj Singh Chauhan",
14 | "devDependencies": {
15 | "prettier-pack": "0.0.7"
16 | },
17 | "license": "Apache License 2.0"
18 | }
19 |
--------------------------------------------------------------------------------