├── .editorconfig ├── .eslintrc.js ├── .flowconfig ├── .gitattributes ├── .gitignore ├── .prettierrc.js ├── .watchmanconfig ├── Readme.md ├── app.json ├── babel.config.js ├── index.js ├── macos ├── .gitignore ├── MaterialColors.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── materialcolors-iOS.xcscheme │ │ └── materialcolors-macOS.xcscheme ├── Podfile ├── Podfile.lock ├── materialcolors-iOS │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── Contents.json │ ├── Info.plist │ └── main.m ├── materialcolors-macOS │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Assets.xcassets │ │ ├── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ └── _logo.png │ │ └── Contents.json │ ├── Base.lproj │ │ └── Main.storyboard │ ├── Info.plist │ ├── ViewController.h │ ├── ViewController.m │ ├── main.m │ └── materialcolors.entitlements └── materialcolors.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ └── IDEWorkspaceChecks.plist ├── metro.config.js ├── package.json ├── src ├── App.js ├── ColorsListPanel.js ├── ColorsPanel.js ├── Header.js ├── Settings.js ├── atoms.js └── colors │ ├── elementary.js │ ├── index.js │ └── material.js └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- 1 | # Windows files 2 | [*.bat] 3 | end_of_line = crlf 4 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: '@react-native-community', 4 | }; 5 | -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | ; We fork some components by platform 3 | .*/*[.]android.js 4 | 5 | ; Ignore "BUCK" generated dirs 6 | /\.buckd/ 7 | 8 | ; Ignore polyfills 9 | node_modules/react-native/Libraries/polyfills/.* 10 | 11 | ; Flow doesn't support platforms 12 | .*/Libraries/Utilities/LoadingView.js 13 | 14 | [untyped] 15 | .*/node_modules/@react-native-community/cli/.*/.* 16 | 17 | [include] 18 | 19 | [libs] 20 | node_modules/react-native/interface.js 21 | node_modules/react-native/flow/ 22 | 23 | [options] 24 | emoji=true 25 | 26 | exact_by_default=true 27 | 28 | format.bracket_spacing=false 29 | 30 | module.file_ext=.js 31 | module.file_ext=.json 32 | module.file_ext=.ios.js 33 | 34 | munge_underscores=true 35 | 36 | module.name_mapper='^react-native/\(.*\)$' -> '/node_modules/react-native/\1' 37 | 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\)$' -> '/node_modules/react-native/Libraries/Image/RelativeImageStub' 38 | 39 | suppress_type=$FlowIssue 40 | suppress_type=$FlowFixMe 41 | suppress_type=$FlowFixMeProps 42 | suppress_type=$FlowFixMeState 43 | 44 | [lints] 45 | sketchy-null-number=warn 46 | sketchy-null-mixed=warn 47 | sketchy-number=warn 48 | untyped-type-import=warn 49 | nonstrict-import=warn 50 | deprecated-type=warn 51 | unsafe-getters-setters=warn 52 | unnecessary-invariant=warn 53 | signature-verification-failure=warn 54 | 55 | [strict] 56 | deprecated-type 57 | nonstrict-import 58 | sketchy-null 59 | unclear-type 60 | unsafe-getters-setters 61 | untyped-import 62 | untyped-type-import 63 | 64 | [version] 65 | ^0.158.0 66 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Windows files should use crlf line endings 2 | # https://help.github.com/articles/dealing-with-line-endings/ 3 | *.bat text eol=crlf 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # MacOS 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | 24 | # Android/IntelliJ 25 | # 26 | build/ 27 | .idea 28 | .gradle 29 | local.properties 30 | *.iml 31 | *.hprof 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 | !debug.keystore 44 | 45 | # fastlane 46 | # 47 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 48 | # screenshots whenever they are needed. 49 | # For more information about the recommended setup visit: 50 | # https://docs.fastlane.tools/best-practices/source-control/ 51 | 52 | */fastlane/report.xml 53 | */fastlane/Preview.html 54 | */fastlane/screenshots 55 | 56 | # Bundle artifact 57 | *.jsbundle 58 | 59 | # CocoaPods 60 | /ios/Pods/ 61 | 62 | __* -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | bracketSpacing: false, 3 | jsxBracketSameLine: true, 4 | singleQuote: true, 5 | trailingComma: 'all', 6 | arrowParens: 'avoid', 7 | }; 8 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- 1 | # Material Colors Native 2 | 3 | Material Colors Native App for OS X 4 | 5 | > [Download the app](https://github.com/BafS/Material-Colors-native/releases/download/v0.3.0/materialcolors.app.zip) 6 | 7 | Heavily inspired by [MaterialColorsApp 8 | ](https://github.com/romannurik/MaterialColorsApp). 9 | 10 | Build with [react-native-macos 11 | ](https://github.com/microsoft/react-native-macos). 12 | 13 |

14 | 15 |

16 | 17 | > Choose your color and click to copy the color code 18 | 19 | # Why ? 20 | 21 | To test react-native-desktop and also MaterialColorsApp is OS X only so why use [Electron](http://electron.atom.io) ? This resulted in a ~114 Mo app vs ~2.5 Mo for this native one. 22 | 23 | ## Running this app 24 | 25 | ``` 26 | git clone https://github.com/BafS/Material-Colors-native.git 27 | cd Material-Colors-native 28 | npm install 29 | ``` 30 | 31 | - Open `osx/MaterialColors.xcodeproj` in Xcode 32 | - Hit the *Run* button 33 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "materialcolors", 3 | "displayName": "Material Colors" 4 | } -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | }; 4 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import {AppRegistry} from 'react-native'; 6 | import App from './src/App'; 7 | import {name as appName} from './app.json'; 8 | 9 | AppRegistry.registerComponent(appName, () => App); 10 | -------------------------------------------------------------------------------- /macos/.gitignore: -------------------------------------------------------------------------------- 1 | # CocoaPods 2 | Pods/ 3 | -------------------------------------------------------------------------------- /macos/MaterialColors.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 11 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 12 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 13 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 14 | 5142014D2437B4B30078DB4F /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 5142014C2437B4B30078DB4F /* AppDelegate.m */; }; 15 | 514201502437B4B30078DB4F /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5142014F2437B4B30078DB4F /* ViewController.m */; }; 16 | 514201522437B4B40078DB4F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 514201512437B4B40078DB4F /* Assets.xcassets */; }; 17 | 514201552437B4B40078DB4F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 514201532437B4B40078DB4F /* Main.storyboard */; }; 18 | 514201582437B4B40078DB4F /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 514201572437B4B40078DB4F /* main.m */; }; 19 | 91E9674F2065806E6E678245 /* libPods-materialcolors-iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 85519E765611FB2AE481D0B4 /* libPods-materialcolors-iOS.a */; }; 20 | D6BC2373F1AF686951E6549F /* libPods-materialcolors-macOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = DDF39E8009EAECD420D4CBF9 /* libPods-materialcolors-macOS.a */; }; 21 | /* End PBXBuildFile section */ 22 | 23 | /* Begin PBXFileReference section */ 24 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 25 | 02422F9FB6FF5F34B4E63E6F /* Pods-Shared-materialcolors-macOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Shared-materialcolors-macOS.debug.xcconfig"; path = "Target Support Files/Pods-Shared-materialcolors-macOS/Pods-Shared-materialcolors-macOS.debug.xcconfig"; sourceTree = ""; }; 26 | 13B07F961A680F5B00A75B9A /* materialcolors.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = materialcolors.app; sourceTree = BUILT_PRODUCTS_DIR; }; 27 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 28 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 29 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 30 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 31 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = materialcolors/Info.plist; sourceTree = ""; }; 32 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 33 | 38423A3E24576CBC00BC2EAC /* main.jsbundle */ = {isa = PBXFileReference; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 34 | 514201492437B4B30078DB4F /* materialcolors.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = materialcolors.app; sourceTree = BUILT_PRODUCTS_DIR; }; 35 | 5142014B2437B4B30078DB4F /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 36 | 5142014C2437B4B30078DB4F /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 37 | 5142014E2437B4B30078DB4F /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 38 | 5142014F2437B4B30078DB4F /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 39 | 514201512437B4B40078DB4F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 40 | 514201542437B4B40078DB4F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 41 | 514201562437B4B40078DB4F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 42 | 514201572437B4B40078DB4F /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 43 | 514201592437B4B40078DB4F /* materialcolors.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = materialcolors.entitlements; sourceTree = ""; }; 44 | 541D8F2662FA350089D86B80 /* Pods-materialcolors-macOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-materialcolors-macOS.debug.xcconfig"; path = "Target Support Files/Pods-materialcolors-macOS/Pods-materialcolors-macOS.debug.xcconfig"; sourceTree = ""; }; 45 | 78723DBD6459FBA3AD6CD0C7 /* Pods-materialcolors-iOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-materialcolors-iOS.release.xcconfig"; path = "Target Support Files/Pods-materialcolors-iOS/Pods-materialcolors-iOS.release.xcconfig"; sourceTree = ""; }; 46 | 7C9BCB419175B1C24A137466 /* Pods-materialcolors-macOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-materialcolors-macOS.release.xcconfig"; path = "Target Support Files/Pods-materialcolors-macOS/Pods-materialcolors-macOS.release.xcconfig"; sourceTree = ""; }; 47 | 85519E765611FB2AE481D0B4 /* libPods-materialcolors-iOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-materialcolors-iOS.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 48 | 9D32DFD059D5DB6DDEF38881 /* Pods-Shared-materialcolors-iOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Shared-materialcolors-iOS.debug.xcconfig"; path = "Target Support Files/Pods-Shared-materialcolors-iOS/Pods-Shared-materialcolors-iOS.debug.xcconfig"; sourceTree = ""; }; 49 | A82DFB63B157C65E5D698CA2 /* Pods-Shared-materialcolors-iOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Shared-materialcolors-iOS.release.xcconfig"; path = "Target Support Files/Pods-Shared-materialcolors-iOS/Pods-Shared-materialcolors-iOS.release.xcconfig"; sourceTree = ""; }; 50 | CDD6B4185A115DA2A620B6CF /* Pods-materialcolors-iOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-materialcolors-iOS.debug.xcconfig"; path = "Target Support Files/Pods-materialcolors-iOS/Pods-materialcolors-iOS.debug.xcconfig"; sourceTree = ""; }; 51 | CE0E74F571E1F48FF00A8324 /* Pods-Shared-materialcolors-macOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Shared-materialcolors-macOS.release.xcconfig"; path = "Target Support Files/Pods-Shared-materialcolors-macOS/Pods-Shared-materialcolors-macOS.release.xcconfig"; sourceTree = ""; }; 52 | DDF39E8009EAECD420D4CBF9 /* libPods-materialcolors-macOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-materialcolors-macOS.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 53 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 54 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; }; 55 | /* End PBXFileReference section */ 56 | 57 | /* Begin PBXFrameworksBuildPhase section */ 58 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 59 | isa = PBXFrameworksBuildPhase; 60 | buildActionMask = 2147483647; 61 | files = ( 62 | 91E9674F2065806E6E678245 /* libPods-materialcolors-iOS.a in Frameworks */, 63 | ); 64 | runOnlyForDeploymentPostprocessing = 0; 65 | }; 66 | 514201462437B4B30078DB4F /* Frameworks */ = { 67 | isa = PBXFrameworksBuildPhase; 68 | buildActionMask = 2147483647; 69 | files = ( 70 | D6BC2373F1AF686951E6549F /* libPods-materialcolors-macOS.a in Frameworks */, 71 | ); 72 | runOnlyForDeploymentPostprocessing = 0; 73 | }; 74 | /* End PBXFrameworksBuildPhase section */ 75 | 76 | /* Begin PBXGroup section */ 77 | 13B07FAE1A68108700A75B9A /* materialcolors-iOS */ = { 78 | isa = PBXGroup; 79 | children = ( 80 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 81 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 82 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 83 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 84 | 13B07FB61A68108700A75B9A /* Info.plist */, 85 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 86 | 13B07FB71A68108700A75B9A /* main.m */, 87 | ); 88 | path = "materialcolors-iOS"; 89 | sourceTree = ""; 90 | }; 91 | 1986A43FA6A91CFACDF0A798 /* Pods */ = { 92 | isa = PBXGroup; 93 | children = ( 94 | 9D32DFD059D5DB6DDEF38881 /* Pods-Shared-materialcolors-iOS.debug.xcconfig */, 95 | A82DFB63B157C65E5D698CA2 /* Pods-Shared-materialcolors-iOS.release.xcconfig */, 96 | 02422F9FB6FF5F34B4E63E6F /* Pods-Shared-materialcolors-macOS.debug.xcconfig */, 97 | CE0E74F571E1F48FF00A8324 /* Pods-Shared-materialcolors-macOS.release.xcconfig */, 98 | CDD6B4185A115DA2A620B6CF /* Pods-materialcolors-iOS.debug.xcconfig */, 99 | 78723DBD6459FBA3AD6CD0C7 /* Pods-materialcolors-iOS.release.xcconfig */, 100 | 541D8F2662FA350089D86B80 /* Pods-materialcolors-macOS.debug.xcconfig */, 101 | 7C9BCB419175B1C24A137466 /* Pods-materialcolors-macOS.release.xcconfig */, 102 | ); 103 | path = Pods; 104 | sourceTree = ""; 105 | }; 106 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 107 | isa = PBXGroup; 108 | children = ( 109 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 110 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */, 111 | 85519E765611FB2AE481D0B4 /* libPods-materialcolors-iOS.a */, 112 | DDF39E8009EAECD420D4CBF9 /* libPods-materialcolors-macOS.a */, 113 | ); 114 | name = Frameworks; 115 | sourceTree = ""; 116 | }; 117 | 5142014A2437B4B30078DB4F /* materialcolors-macOS */ = { 118 | isa = PBXGroup; 119 | children = ( 120 | 38423A3E24576CBC00BC2EAC /* main.jsbundle */, 121 | 5142014B2437B4B30078DB4F /* AppDelegate.h */, 122 | 5142014C2437B4B30078DB4F /* AppDelegate.m */, 123 | 5142014E2437B4B30078DB4F /* ViewController.h */, 124 | 5142014F2437B4B30078DB4F /* ViewController.m */, 125 | 514201512437B4B40078DB4F /* Assets.xcassets */, 126 | 514201532437B4B40078DB4F /* Main.storyboard */, 127 | 514201562437B4B40078DB4F /* Info.plist */, 128 | 514201572437B4B40078DB4F /* main.m */, 129 | 514201592437B4B40078DB4F /* materialcolors.entitlements */, 130 | ); 131 | path = "materialcolors-macOS"; 132 | sourceTree = ""; 133 | }; 134 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 135 | isa = PBXGroup; 136 | children = ( 137 | ); 138 | name = Libraries; 139 | sourceTree = ""; 140 | }; 141 | 83CBB9F61A601CBA00E9B192 = { 142 | isa = PBXGroup; 143 | children = ( 144 | 5142014A2437B4B30078DB4F /* materialcolors-macOS */, 145 | 13B07FAE1A68108700A75B9A /* materialcolors-iOS */, 146 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 147 | 83CBBA001A601CBA00E9B192 /* Products */, 148 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 149 | 1986A43FA6A91CFACDF0A798 /* Pods */, 150 | ); 151 | indentWidth = 2; 152 | sourceTree = ""; 153 | tabWidth = 2; 154 | usesTabs = 0; 155 | }; 156 | 83CBBA001A601CBA00E9B192 /* Products */ = { 157 | isa = PBXGroup; 158 | children = ( 159 | 13B07F961A680F5B00A75B9A /* materialcolors.app */, 160 | 514201492437B4B30078DB4F /* materialcolors.app */, 161 | ); 162 | name = Products; 163 | sourceTree = ""; 164 | }; 165 | /* End PBXGroup section */ 166 | 167 | /* Begin PBXNativeTarget section */ 168 | 13B07F861A680F5B00A75B9A /* materialcolors-iOS */ = { 169 | isa = PBXNativeTarget; 170 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "materialcolors-iOS" */; 171 | buildPhases = ( 172 | 7BC40D98CAD1562CFD247217 /* [CP] Check Pods Manifest.lock */, 173 | FD10A7F022414F080027D42C /* Start Packager */, 174 | 13B07F871A680F5B00A75B9A /* Sources */, 175 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 176 | 13B07F8E1A680F5B00A75B9A /* Resources */, 177 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 178 | 696ACE90633818DD6B17053F /* [CP] Embed Pods Frameworks */, 179 | 055AECE72BECBDAB03AC8EAA /* [CP] Copy Pods Resources */, 180 | ); 181 | buildRules = ( 182 | ); 183 | dependencies = ( 184 | ); 185 | name = "materialcolors-iOS"; 186 | productName = materialcolors; 187 | productReference = 13B07F961A680F5B00A75B9A /* materialcolors.app */; 188 | productType = "com.apple.product-type.application"; 189 | }; 190 | 514201482437B4B30078DB4F /* materialcolors-macOS */ = { 191 | isa = PBXNativeTarget; 192 | buildConfigurationList = 5142015A2437B4B40078DB4F /* Build configuration list for PBXNativeTarget "materialcolors-macOS" */; 193 | buildPhases = ( 194 | 1A938104A937498D81B3BD3B /* [CP] Check Pods Manifest.lock */, 195 | 381D8A6F24576A6C00465D17 /* Start Packager */, 196 | 514201452437B4B30078DB4F /* Sources */, 197 | 514201462437B4B30078DB4F /* Frameworks */, 198 | 514201472437B4B30078DB4F /* Resources */, 199 | 381D8A6E24576A4E00465D17 /* Bundle React Native code and images */, 200 | 8C7ED00A75113719AC515493 /* [CP] Copy Pods Resources */, 201 | ); 202 | buildRules = ( 203 | ); 204 | dependencies = ( 205 | ); 206 | name = "materialcolors-macOS"; 207 | productName = materialcolors; 208 | productReference = 514201492437B4B30078DB4F /* materialcolors.app */; 209 | productType = "com.apple.product-type.application"; 210 | }; 211 | /* End PBXNativeTarget section */ 212 | 213 | /* Begin PBXProject section */ 214 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 215 | isa = PBXProject; 216 | attributes = { 217 | LastUpgradeCheck = 1130; 218 | TargetAttributes = { 219 | 13B07F861A680F5B00A75B9A = { 220 | LastSwiftMigration = 1120; 221 | }; 222 | 514201482437B4B30078DB4F = { 223 | CreatedOnToolsVersion = 11.4; 224 | ProvisioningStyle = Automatic; 225 | }; 226 | }; 227 | }; 228 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "materialcolors" */; 229 | compatibilityVersion = "Xcode 3.2"; 230 | developmentRegion = en; 231 | hasScannedForEncodings = 0; 232 | knownRegions = ( 233 | en, 234 | Base, 235 | ); 236 | mainGroup = 83CBB9F61A601CBA00E9B192; 237 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 238 | projectDirPath = ""; 239 | projectRoot = ""; 240 | targets = ( 241 | 13B07F861A680F5B00A75B9A /* materialcolors-iOS */, 242 | 514201482437B4B30078DB4F /* materialcolors-macOS */, 243 | ); 244 | }; 245 | /* End PBXProject section */ 246 | 247 | /* Begin PBXResourcesBuildPhase section */ 248 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 249 | isa = PBXResourcesBuildPhase; 250 | buildActionMask = 2147483647; 251 | files = ( 252 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 253 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 254 | ); 255 | runOnlyForDeploymentPostprocessing = 0; 256 | }; 257 | 514201472437B4B30078DB4F /* Resources */ = { 258 | isa = PBXResourcesBuildPhase; 259 | buildActionMask = 2147483647; 260 | files = ( 261 | 514201522437B4B40078DB4F /* Assets.xcassets in Resources */, 262 | 514201552437B4B40078DB4F /* Main.storyboard in Resources */, 263 | ); 264 | runOnlyForDeploymentPostprocessing = 0; 265 | }; 266 | /* End PBXResourcesBuildPhase section */ 267 | 268 | /* Begin PBXShellScriptBuildPhase section */ 269 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 270 | isa = PBXShellScriptBuildPhase; 271 | buildActionMask = 2147483647; 272 | files = ( 273 | ); 274 | inputPaths = ( 275 | ); 276 | name = "Bundle React Native code and images"; 277 | outputPaths = ( 278 | ); 279 | runOnlyForDeploymentPostprocessing = 0; 280 | shellPath = /bin/sh; 281 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native-macos/scripts/react-native-xcode.sh\n"; 282 | }; 283 | 055AECE72BECBDAB03AC8EAA /* [CP] Copy Pods Resources */ = { 284 | isa = PBXShellScriptBuildPhase; 285 | buildActionMask = 2147483647; 286 | files = ( 287 | ); 288 | inputPaths = ( 289 | "${PODS_ROOT}/Target Support Files/Pods-materialcolors-iOS/Pods-materialcolors-iOS-resources.sh", 290 | "${PODS_CONFIGURATION_BUILD_DIR}/React-Core-iOS/AccessibilityResources.bundle", 291 | ); 292 | name = "[CP] Copy Pods Resources"; 293 | outputPaths = ( 294 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle", 295 | ); 296 | runOnlyForDeploymentPostprocessing = 0; 297 | shellPath = /bin/sh; 298 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-materialcolors-iOS/Pods-materialcolors-iOS-resources.sh\"\n"; 299 | showEnvVarsInLog = 0; 300 | }; 301 | 1A938104A937498D81B3BD3B /* [CP] Check Pods Manifest.lock */ = { 302 | isa = PBXShellScriptBuildPhase; 303 | buildActionMask = 2147483647; 304 | files = ( 305 | ); 306 | inputFileListPaths = ( 307 | ); 308 | inputPaths = ( 309 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 310 | "${PODS_ROOT}/Manifest.lock", 311 | ); 312 | name = "[CP] Check Pods Manifest.lock"; 313 | outputFileListPaths = ( 314 | ); 315 | outputPaths = ( 316 | "$(DERIVED_FILE_DIR)/Pods-materialcolors-macOS-checkManifestLockResult.txt", 317 | ); 318 | runOnlyForDeploymentPostprocessing = 0; 319 | shellPath = /bin/sh; 320 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 321 | showEnvVarsInLog = 0; 322 | }; 323 | 381D8A6E24576A4E00465D17 /* Bundle React Native code and images */ = { 324 | isa = PBXShellScriptBuildPhase; 325 | buildActionMask = 2147483647; 326 | files = ( 327 | ); 328 | inputFileListPaths = ( 329 | ); 330 | inputPaths = ( 331 | ); 332 | name = "Bundle React Native code and images"; 333 | outputFileListPaths = ( 334 | ); 335 | outputPaths = ( 336 | ); 337 | runOnlyForDeploymentPostprocessing = 0; 338 | shellPath = /bin/sh; 339 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native-macos/scripts/react-native-xcode.sh\n"; 340 | }; 341 | 381D8A6F24576A6C00465D17 /* Start Packager */ = { 342 | isa = PBXShellScriptBuildPhase; 343 | buildActionMask = 2147483647; 344 | files = ( 345 | ); 346 | inputFileListPaths = ( 347 | ); 348 | inputPaths = ( 349 | ); 350 | name = "Start Packager"; 351 | outputFileListPaths = ( 352 | ); 353 | outputPaths = ( 354 | ); 355 | runOnlyForDeploymentPostprocessing = 0; 356 | shellPath = /bin/sh; 357 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native-macos/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native-macos/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; 358 | }; 359 | 696ACE90633818DD6B17053F /* [CP] Embed Pods Frameworks */ = { 360 | isa = PBXShellScriptBuildPhase; 361 | buildActionMask = 2147483647; 362 | files = ( 363 | ); 364 | inputPaths = ( 365 | "${PODS_ROOT}/Target Support Files/Pods-materialcolors-iOS/Pods-materialcolors-iOS-frameworks.sh", 366 | "${PODS_XCFRAMEWORKS_BUILD_DIR}/OpenSSL-Universal/OpenSSL.framework/OpenSSL", 367 | ); 368 | name = "[CP] Embed Pods Frameworks"; 369 | outputPaths = ( 370 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/OpenSSL.framework", 371 | ); 372 | runOnlyForDeploymentPostprocessing = 0; 373 | shellPath = /bin/sh; 374 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-materialcolors-iOS/Pods-materialcolors-iOS-frameworks.sh\"\n"; 375 | showEnvVarsInLog = 0; 376 | }; 377 | 7BC40D98CAD1562CFD247217 /* [CP] Check Pods Manifest.lock */ = { 378 | isa = PBXShellScriptBuildPhase; 379 | buildActionMask = 2147483647; 380 | files = ( 381 | ); 382 | inputFileListPaths = ( 383 | ); 384 | inputPaths = ( 385 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 386 | "${PODS_ROOT}/Manifest.lock", 387 | ); 388 | name = "[CP] Check Pods Manifest.lock"; 389 | outputFileListPaths = ( 390 | ); 391 | outputPaths = ( 392 | "$(DERIVED_FILE_DIR)/Pods-materialcolors-iOS-checkManifestLockResult.txt", 393 | ); 394 | runOnlyForDeploymentPostprocessing = 0; 395 | shellPath = /bin/sh; 396 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 397 | showEnvVarsInLog = 0; 398 | }; 399 | 8C7ED00A75113719AC515493 /* [CP] Copy Pods Resources */ = { 400 | isa = PBXShellScriptBuildPhase; 401 | buildActionMask = 2147483647; 402 | files = ( 403 | ); 404 | inputPaths = ( 405 | "${PODS_ROOT}/Target Support Files/Pods-materialcolors-macOS/Pods-materialcolors-macOS-resources.sh", 406 | "${PODS_CONFIGURATION_BUILD_DIR}/React-Core-macOS/AccessibilityResources.bundle", 407 | ); 408 | name = "[CP] Copy Pods Resources"; 409 | outputPaths = ( 410 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle", 411 | ); 412 | runOnlyForDeploymentPostprocessing = 0; 413 | shellPath = /bin/sh; 414 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-materialcolors-macOS/Pods-materialcolors-macOS-resources.sh\"\n"; 415 | showEnvVarsInLog = 0; 416 | }; 417 | FD10A7F022414F080027D42C /* Start Packager */ = { 418 | isa = PBXShellScriptBuildPhase; 419 | buildActionMask = 2147483647; 420 | files = ( 421 | ); 422 | inputFileListPaths = ( 423 | ); 424 | inputPaths = ( 425 | ); 426 | name = "Start Packager"; 427 | outputFileListPaths = ( 428 | ); 429 | outputPaths = ( 430 | ); 431 | runOnlyForDeploymentPostprocessing = 0; 432 | shellPath = /bin/sh; 433 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native-macos/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native-macos/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; 434 | showEnvVarsInLog = 0; 435 | }; 436 | /* End PBXShellScriptBuildPhase section */ 437 | 438 | /* Begin PBXSourcesBuildPhase section */ 439 | 13B07F871A680F5B00A75B9A /* Sources */ = { 440 | isa = PBXSourcesBuildPhase; 441 | buildActionMask = 2147483647; 442 | files = ( 443 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 444 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 445 | ); 446 | runOnlyForDeploymentPostprocessing = 0; 447 | }; 448 | 514201452437B4B30078DB4F /* Sources */ = { 449 | isa = PBXSourcesBuildPhase; 450 | buildActionMask = 2147483647; 451 | files = ( 452 | 514201502437B4B30078DB4F /* ViewController.m in Sources */, 453 | 514201582437B4B40078DB4F /* main.m in Sources */, 454 | 5142014D2437B4B30078DB4F /* AppDelegate.m in Sources */, 455 | ); 456 | runOnlyForDeploymentPostprocessing = 0; 457 | }; 458 | /* End PBXSourcesBuildPhase section */ 459 | 460 | /* Begin PBXVariantGroup section */ 461 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 462 | isa = PBXVariantGroup; 463 | children = ( 464 | 13B07FB21A68108700A75B9A /* Base */, 465 | ); 466 | name = LaunchScreen.xib; 467 | sourceTree = ""; 468 | }; 469 | 514201532437B4B40078DB4F /* Main.storyboard */ = { 470 | isa = PBXVariantGroup; 471 | children = ( 472 | 514201542437B4B40078DB4F /* Base */, 473 | ); 474 | name = Main.storyboard; 475 | sourceTree = ""; 476 | }; 477 | /* End PBXVariantGroup section */ 478 | 479 | /* Begin XCBuildConfiguration section */ 480 | 13B07F941A680F5B00A75B9A /* Debug */ = { 481 | isa = XCBuildConfiguration; 482 | baseConfigurationReference = CDD6B4185A115DA2A620B6CF /* Pods-materialcolors-iOS.debug.xcconfig */; 483 | buildSettings = { 484 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 485 | CLANG_ENABLE_MODULES = YES; 486 | CURRENT_PROJECT_VERSION = 1; 487 | ENABLE_BITCODE = NO; 488 | INFOPLIST_FILE = "materialcolors-iOS/Info.plist"; 489 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 490 | OTHER_LDFLAGS = ( 491 | "$(inherited)", 492 | "-ObjC", 493 | "-lc++", 494 | ); 495 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.$(PRODUCT_NAME:rfc1034identifier)"; 496 | PRODUCT_NAME = materialcolors; 497 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 498 | SWIFT_VERSION = 5.0; 499 | VERSIONING_SYSTEM = "apple-generic"; 500 | }; 501 | name = Debug; 502 | }; 503 | 13B07F951A680F5B00A75B9A /* Release */ = { 504 | isa = XCBuildConfiguration; 505 | baseConfigurationReference = 78723DBD6459FBA3AD6CD0C7 /* Pods-materialcolors-iOS.release.xcconfig */; 506 | buildSettings = { 507 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 508 | CLANG_ENABLE_MODULES = YES; 509 | CURRENT_PROJECT_VERSION = 1; 510 | INFOPLIST_FILE = "materialcolors-iOS/Info.plist"; 511 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 512 | OTHER_LDFLAGS = ( 513 | "$(inherited)", 514 | "-ObjC", 515 | "-lc++", 516 | ); 517 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.$(PRODUCT_NAME:rfc1034identifier)"; 518 | PRODUCT_NAME = materialcolors; 519 | SWIFT_VERSION = 5.0; 520 | VERSIONING_SYSTEM = "apple-generic"; 521 | }; 522 | name = Release; 523 | }; 524 | 5142015B2437B4B40078DB4F /* Debug */ = { 525 | isa = XCBuildConfiguration; 526 | baseConfigurationReference = 541D8F2662FA350089D86B80 /* Pods-materialcolors-macOS.debug.xcconfig */; 527 | buildSettings = { 528 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 529 | CURRENT_PROJECT_VERSION = 1; 530 | DEAD_CODE_STRIPPING = NO; 531 | INFOPLIST_FILE = "materialcolors-macos/Info.plist"; 532 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 533 | MACOSX_DEPLOYMENT_TARGET = 11.0; 534 | OTHER_LDFLAGS = ( 535 | "$(inherited)", 536 | "-ObjC", 537 | "-lc++", 538 | ); 539 | PRODUCT_BUNDLE_IDENTIFIER = net.bafs.materialcolors; 540 | PRODUCT_NAME = materialcolors; 541 | SDKROOT = macosx; 542 | }; 543 | name = Debug; 544 | }; 545 | 5142015C2437B4B40078DB4F /* Release */ = { 546 | isa = XCBuildConfiguration; 547 | baseConfigurationReference = 7C9BCB419175B1C24A137466 /* Pods-materialcolors-macOS.release.xcconfig */; 548 | buildSettings = { 549 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 550 | CURRENT_PROJECT_VERSION = 1; 551 | INFOPLIST_FILE = "materialcolors-macos/Info.plist"; 552 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 553 | MACOSX_DEPLOYMENT_TARGET = 11.0; 554 | OTHER_LDFLAGS = ( 555 | "$(inherited)", 556 | "-ObjC", 557 | "-lc++", 558 | ); 559 | PRODUCT_BUNDLE_IDENTIFIER = net.bafs.materialcolors; 560 | PRODUCT_NAME = materialcolors; 561 | SDKROOT = macosx; 562 | }; 563 | name = Release; 564 | }; 565 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 566 | isa = XCBuildConfiguration; 567 | buildSettings = { 568 | ALWAYS_SEARCH_USER_PATHS = NO; 569 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 570 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 571 | CLANG_CXX_LIBRARY = "libc++"; 572 | CLANG_ENABLE_MODULES = YES; 573 | CLANG_ENABLE_OBJC_ARC = YES; 574 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 575 | CLANG_WARN_BOOL_CONVERSION = YES; 576 | CLANG_WARN_COMMA = YES; 577 | CLANG_WARN_CONSTANT_CONVERSION = YES; 578 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 579 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 580 | CLANG_WARN_EMPTY_BODY = YES; 581 | CLANG_WARN_ENUM_CONVERSION = YES; 582 | CLANG_WARN_INFINITE_RECURSION = YES; 583 | CLANG_WARN_INT_CONVERSION = YES; 584 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 585 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 586 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 587 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 588 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 589 | CLANG_WARN_STRICT_PROTOTYPES = YES; 590 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 591 | CLANG_WARN_UNREACHABLE_CODE = YES; 592 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 593 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 594 | COPY_PHASE_STRIP = NO; 595 | ENABLE_STRICT_OBJC_MSGSEND = YES; 596 | ENABLE_TESTABILITY = YES; 597 | GCC_C_LANGUAGE_STANDARD = gnu99; 598 | GCC_DYNAMIC_NO_PIC = NO; 599 | GCC_NO_COMMON_BLOCKS = YES; 600 | GCC_OPTIMIZATION_LEVEL = 0; 601 | GCC_PREPROCESSOR_DEFINITIONS = ( 602 | "DEBUG=1", 603 | "$(inherited)", 604 | ); 605 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 606 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 607 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 608 | GCC_WARN_UNDECLARED_SELECTOR = YES; 609 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 610 | GCC_WARN_UNUSED_FUNCTION = YES; 611 | GCC_WARN_UNUSED_VARIABLE = YES; 612 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 613 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; 614 | LIBRARY_SEARCH_PATHS = ( 615 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 616 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 617 | "\"$(inherited)\"", 618 | ); 619 | MTL_ENABLE_DEBUG_INFO = YES; 620 | ONLY_ACTIVE_ARCH = YES; 621 | SDKROOT = iphoneos; 622 | }; 623 | name = Debug; 624 | }; 625 | 83CBBA211A601CBA00E9B192 /* Release */ = { 626 | isa = XCBuildConfiguration; 627 | buildSettings = { 628 | ALWAYS_SEARCH_USER_PATHS = NO; 629 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 630 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 631 | CLANG_CXX_LIBRARY = "libc++"; 632 | CLANG_ENABLE_MODULES = YES; 633 | CLANG_ENABLE_OBJC_ARC = YES; 634 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 635 | CLANG_WARN_BOOL_CONVERSION = YES; 636 | CLANG_WARN_COMMA = YES; 637 | CLANG_WARN_CONSTANT_CONVERSION = YES; 638 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 639 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 640 | CLANG_WARN_EMPTY_BODY = YES; 641 | CLANG_WARN_ENUM_CONVERSION = YES; 642 | CLANG_WARN_INFINITE_RECURSION = YES; 643 | CLANG_WARN_INT_CONVERSION = YES; 644 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 645 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 646 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 647 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 648 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 649 | CLANG_WARN_STRICT_PROTOTYPES = YES; 650 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 651 | CLANG_WARN_UNREACHABLE_CODE = YES; 652 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 653 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 654 | COPY_PHASE_STRIP = YES; 655 | ENABLE_NS_ASSERTIONS = NO; 656 | ENABLE_STRICT_OBJC_MSGSEND = YES; 657 | GCC_C_LANGUAGE_STANDARD = gnu99; 658 | GCC_NO_COMMON_BLOCKS = YES; 659 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 660 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 661 | GCC_WARN_UNDECLARED_SELECTOR = YES; 662 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 663 | GCC_WARN_UNUSED_FUNCTION = YES; 664 | GCC_WARN_UNUSED_VARIABLE = YES; 665 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 666 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; 667 | LIBRARY_SEARCH_PATHS = ( 668 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 669 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 670 | "\"$(inherited)\"", 671 | ); 672 | MTL_ENABLE_DEBUG_INFO = NO; 673 | SDKROOT = iphoneos; 674 | VALIDATE_PRODUCT = YES; 675 | }; 676 | name = Release; 677 | }; 678 | /* End XCBuildConfiguration section */ 679 | 680 | /* Begin XCConfigurationList section */ 681 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "materialcolors-iOS" */ = { 682 | isa = XCConfigurationList; 683 | buildConfigurations = ( 684 | 13B07F941A680F5B00A75B9A /* Debug */, 685 | 13B07F951A680F5B00A75B9A /* Release */, 686 | ); 687 | defaultConfigurationIsVisible = 0; 688 | defaultConfigurationName = Release; 689 | }; 690 | 5142015A2437B4B40078DB4F /* Build configuration list for PBXNativeTarget "materialcolors-macOS" */ = { 691 | isa = XCConfigurationList; 692 | buildConfigurations = ( 693 | 5142015B2437B4B40078DB4F /* Debug */, 694 | 5142015C2437B4B40078DB4F /* Release */, 695 | ); 696 | defaultConfigurationIsVisible = 0; 697 | defaultConfigurationName = Release; 698 | }; 699 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "materialcolors" */ = { 700 | isa = XCConfigurationList; 701 | buildConfigurations = ( 702 | 83CBBA201A601CBA00E9B192 /* Debug */, 703 | 83CBBA211A601CBA00E9B192 /* Release */, 704 | ); 705 | defaultConfigurationIsVisible = 0; 706 | defaultConfigurationName = Release; 707 | }; 708 | /* End XCConfigurationList section */ 709 | }; 710 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 711 | } 712 | -------------------------------------------------------------------------------- /macos/MaterialColors.xcodeproj/xcshareddata/xcschemes/materialcolors-iOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 45 | 51 | 52 | 53 | 54 | 60 | 62 | 68 | 69 | 70 | 71 | 73 | 74 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /macos/MaterialColors.xcodeproj/xcshareddata/xcschemes/materialcolors-macOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 45 | 51 | 52 | 53 | 54 | 60 | 62 | 68 | 69 | 70 | 71 | 73 | 74 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /macos/Podfile: -------------------------------------------------------------------------------- 1 | require_relative '../node_modules/react-native-macos/scripts/react_native_pods' 2 | require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' 3 | 4 | target 'materialcolors-macOS' do 5 | platform :macos, '10.14' 6 | use_native_modules! 7 | use_react_native!( 8 | :path => '../node_modules/react-native-macos', 9 | 10 | # To use Hermes, install the `hermes-engine-darwin` npm package, e.g.: 11 | # $ yarn add 'hermes-engine-darwin@~0.5.3' 12 | # 13 | # Then enable this option: 14 | # :hermes_enabled => true 15 | ) 16 | 17 | # Pods specifically for macOS target 18 | end 19 | 20 | target 'materialcolors-iOS' do 21 | platform :ios, '10' 22 | use_native_modules! 23 | use_react_native!(:path => '../node_modules/react-native-macos') 24 | 25 | # Enables Flipper. 26 | # 27 | # Note that if you have use_frameworks! enabled, Flipper will not work and 28 | # you should disable these next few lines. 29 | use_flipper! 30 | post_install do |installer| 31 | flipper_post_install(installer) 32 | end 33 | 34 | # Pods specifically for iOS target 35 | end 36 | -------------------------------------------------------------------------------- /macos/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - boost-for-react-native (1.63.0) 3 | - CocoaAsyncSocket (7.6.5) 4 | - DoubleConversion (1.1.6) 5 | - FBLazyVector (0.64.18) 6 | - FBReactNativeSpec (0.64.18): 7 | - RCT-Folly (= 2020.01.13.00) 8 | - RCTRequired (= 0.64.18) 9 | - RCTTypeSafety (= 0.64.18) 10 | - React-Core (= 0.64.18) 11 | - React-jsi (= 0.64.18) 12 | - ReactCommon/turbomodule/core (= 0.64.18) 13 | - Flipper (0.75.1): 14 | - Flipper-Folly (~> 2.5) 15 | - Flipper-RSocket (~> 1.3) 16 | - Flipper-DoubleConversion (1.1.7) 17 | - Flipper-Folly (2.5.3): 18 | - boost-for-react-native 19 | - Flipper-DoubleConversion 20 | - Flipper-Glog 21 | - libevent (~> 2.1.12) 22 | - OpenSSL-Universal (= 1.1.180) 23 | - Flipper-Glog (0.3.6) 24 | - Flipper-PeerTalk (0.0.4) 25 | - Flipper-RSocket (1.3.1): 26 | - Flipper-Folly (~> 2.5) 27 | - FlipperKit (0.75.1): 28 | - FlipperKit/Core (= 0.75.1) 29 | - FlipperKit/Core (0.75.1): 30 | - Flipper (~> 0.75.1) 31 | - FlipperKit/CppBridge 32 | - FlipperKit/FBCxxFollyDynamicConvert 33 | - FlipperKit/FBDefines 34 | - FlipperKit/FKPortForwarding 35 | - FlipperKit/CppBridge (0.75.1): 36 | - Flipper (~> 0.75.1) 37 | - FlipperKit/FBCxxFollyDynamicConvert (0.75.1): 38 | - Flipper-Folly (~> 2.5) 39 | - FlipperKit/FBDefines (0.75.1) 40 | - FlipperKit/FKPortForwarding (0.75.1): 41 | - CocoaAsyncSocket (~> 7.6) 42 | - Flipper-PeerTalk (~> 0.0.4) 43 | - FlipperKit/FlipperKitHighlightOverlay (0.75.1) 44 | - FlipperKit/FlipperKitLayoutPlugin (0.75.1): 45 | - FlipperKit/Core 46 | - FlipperKit/FlipperKitHighlightOverlay 47 | - FlipperKit/FlipperKitLayoutTextSearchable 48 | - YogaKit (~> 1.18) 49 | - FlipperKit/FlipperKitLayoutTextSearchable (0.75.1) 50 | - FlipperKit/FlipperKitNetworkPlugin (0.75.1): 51 | - FlipperKit/Core 52 | - FlipperKit/FlipperKitReactPlugin (0.75.1): 53 | - FlipperKit/Core 54 | - FlipperKit/FlipperKitUserDefaultsPlugin (0.75.1): 55 | - FlipperKit/Core 56 | - FlipperKit/SKIOSNetworkPlugin (0.75.1): 57 | - FlipperKit/Core 58 | - FlipperKit/FlipperKitNetworkPlugin 59 | - glog (0.3.5) 60 | - libevent (2.1.12) 61 | - OpenSSL-Universal (1.1.180) 62 | - RCT-Folly (2020.01.13.00): 63 | - boost-for-react-native 64 | - DoubleConversion 65 | - glog 66 | - RCT-Folly/Default (= 2020.01.13.00) 67 | - RCT-Folly/Default (2020.01.13.00): 68 | - boost-for-react-native 69 | - DoubleConversion 70 | - glog 71 | - RCTRequired (0.64.18) 72 | - RCTTypeSafety (0.64.18): 73 | - FBLazyVector (= 0.64.18) 74 | - RCT-Folly (= 2020.01.13.00) 75 | - RCTRequired (= 0.64.18) 76 | - React-Core (= 0.64.18) 77 | - React (0.64.18): 78 | - React-Core (= 0.64.18) 79 | - React-Core/DevSupport (= 0.64.18) 80 | - React-Core/RCTWebSocket (= 0.64.18) 81 | - React-RCTActionSheet (= 0.64.18) 82 | - React-RCTAnimation (= 0.64.18) 83 | - React-RCTBlob (= 0.64.18) 84 | - React-RCTImage (= 0.64.18) 85 | - React-RCTLinking (= 0.64.18) 86 | - React-RCTNetwork (= 0.64.18) 87 | - React-RCTSettings (= 0.64.18) 88 | - React-RCTText (= 0.64.18) 89 | - React-RCTVibration (= 0.64.18) 90 | - React-callinvoker (0.64.18) 91 | - React-Core (0.64.18): 92 | - glog 93 | - RCT-Folly (= 2020.01.13.00) 94 | - React-Core/Default (= 0.64.18) 95 | - React-cxxreact (= 0.64.18) 96 | - React-jsi (= 0.64.18) 97 | - React-jsiexecutor (= 0.64.18) 98 | - React-perflogger (= 0.64.18) 99 | - Yoga 100 | - React-Core/CoreModulesHeaders (0.64.18): 101 | - glog 102 | - RCT-Folly (= 2020.01.13.00) 103 | - React-Core/Default 104 | - React-cxxreact (= 0.64.18) 105 | - React-jsi (= 0.64.18) 106 | - React-jsiexecutor (= 0.64.18) 107 | - React-perflogger (= 0.64.18) 108 | - Yoga 109 | - React-Core/Default (0.64.18): 110 | - glog 111 | - RCT-Folly (= 2020.01.13.00) 112 | - React-cxxreact (= 0.64.18) 113 | - React-jsi (= 0.64.18) 114 | - React-jsiexecutor (= 0.64.18) 115 | - React-perflogger (= 0.64.18) 116 | - Yoga 117 | - React-Core/DevSupport (0.64.18): 118 | - glog 119 | - RCT-Folly (= 2020.01.13.00) 120 | - React-Core/Default (= 0.64.18) 121 | - React-Core/RCTWebSocket (= 0.64.18) 122 | - React-cxxreact (= 0.64.18) 123 | - React-jsi (= 0.64.18) 124 | - React-jsiexecutor (= 0.64.18) 125 | - React-jsinspector (= 0.64.18) 126 | - React-perflogger (= 0.64.18) 127 | - Yoga 128 | - React-Core/RCTActionSheetHeaders (0.64.18): 129 | - glog 130 | - RCT-Folly (= 2020.01.13.00) 131 | - React-Core/Default 132 | - React-cxxreact (= 0.64.18) 133 | - React-jsi (= 0.64.18) 134 | - React-jsiexecutor (= 0.64.18) 135 | - React-perflogger (= 0.64.18) 136 | - Yoga 137 | - React-Core/RCTAnimationHeaders (0.64.18): 138 | - glog 139 | - RCT-Folly (= 2020.01.13.00) 140 | - React-Core/Default 141 | - React-cxxreact (= 0.64.18) 142 | - React-jsi (= 0.64.18) 143 | - React-jsiexecutor (= 0.64.18) 144 | - React-perflogger (= 0.64.18) 145 | - Yoga 146 | - React-Core/RCTBlobHeaders (0.64.18): 147 | - glog 148 | - RCT-Folly (= 2020.01.13.00) 149 | - React-Core/Default 150 | - React-cxxreact (= 0.64.18) 151 | - React-jsi (= 0.64.18) 152 | - React-jsiexecutor (= 0.64.18) 153 | - React-perflogger (= 0.64.18) 154 | - Yoga 155 | - React-Core/RCTImageHeaders (0.64.18): 156 | - glog 157 | - RCT-Folly (= 2020.01.13.00) 158 | - React-Core/Default 159 | - React-cxxreact (= 0.64.18) 160 | - React-jsi (= 0.64.18) 161 | - React-jsiexecutor (= 0.64.18) 162 | - React-perflogger (= 0.64.18) 163 | - Yoga 164 | - React-Core/RCTLinkingHeaders (0.64.18): 165 | - glog 166 | - RCT-Folly (= 2020.01.13.00) 167 | - React-Core/Default 168 | - React-cxxreact (= 0.64.18) 169 | - React-jsi (= 0.64.18) 170 | - React-jsiexecutor (= 0.64.18) 171 | - React-perflogger (= 0.64.18) 172 | - Yoga 173 | - React-Core/RCTNetworkHeaders (0.64.18): 174 | - glog 175 | - RCT-Folly (= 2020.01.13.00) 176 | - React-Core/Default 177 | - React-cxxreact (= 0.64.18) 178 | - React-jsi (= 0.64.18) 179 | - React-jsiexecutor (= 0.64.18) 180 | - React-perflogger (= 0.64.18) 181 | - Yoga 182 | - React-Core/RCTSettingsHeaders (0.64.18): 183 | - glog 184 | - RCT-Folly (= 2020.01.13.00) 185 | - React-Core/Default 186 | - React-cxxreact (= 0.64.18) 187 | - React-jsi (= 0.64.18) 188 | - React-jsiexecutor (= 0.64.18) 189 | - React-perflogger (= 0.64.18) 190 | - Yoga 191 | - React-Core/RCTTextHeaders (0.64.18): 192 | - glog 193 | - RCT-Folly (= 2020.01.13.00) 194 | - React-Core/Default 195 | - React-cxxreact (= 0.64.18) 196 | - React-jsi (= 0.64.18) 197 | - React-jsiexecutor (= 0.64.18) 198 | - React-perflogger (= 0.64.18) 199 | - Yoga 200 | - React-Core/RCTVibrationHeaders (0.64.18): 201 | - glog 202 | - RCT-Folly (= 2020.01.13.00) 203 | - React-Core/Default 204 | - React-cxxreact (= 0.64.18) 205 | - React-jsi (= 0.64.18) 206 | - React-jsiexecutor (= 0.64.18) 207 | - React-perflogger (= 0.64.18) 208 | - Yoga 209 | - React-Core/RCTWebSocket (0.64.18): 210 | - glog 211 | - RCT-Folly (= 2020.01.13.00) 212 | - React-Core/Default (= 0.64.18) 213 | - React-cxxreact (= 0.64.18) 214 | - React-jsi (= 0.64.18) 215 | - React-jsiexecutor (= 0.64.18) 216 | - React-perflogger (= 0.64.18) 217 | - Yoga 218 | - React-CoreModules (0.64.18): 219 | - FBReactNativeSpec (= 0.64.18) 220 | - RCT-Folly (= 2020.01.13.00) 221 | - RCTTypeSafety (= 0.64.18) 222 | - React-Core/CoreModulesHeaders (= 0.64.18) 223 | - React-jsi (= 0.64.18) 224 | - React-RCTImage (= 0.64.18) 225 | - ReactCommon/turbomodule/core (= 0.64.18) 226 | - React-cxxreact (0.64.18): 227 | - boost-for-react-native (= 1.63.0) 228 | - DoubleConversion 229 | - glog 230 | - RCT-Folly (= 2020.01.13.00) 231 | - React-callinvoker (= 0.64.18) 232 | - React-jsi (= 0.64.18) 233 | - React-jsinspector (= 0.64.18) 234 | - React-perflogger (= 0.64.18) 235 | - React-runtimeexecutor (= 0.64.18) 236 | - React-jsi (0.64.18): 237 | - boost-for-react-native (= 1.63.0) 238 | - DoubleConversion 239 | - glog 240 | - RCT-Folly (= 2020.01.13.00) 241 | - React-jsi/Default (= 0.64.18) 242 | - React-jsi/Default (0.64.18): 243 | - boost-for-react-native (= 1.63.0) 244 | - DoubleConversion 245 | - glog 246 | - RCT-Folly (= 2020.01.13.00) 247 | - React-jsiexecutor (0.64.18): 248 | - DoubleConversion 249 | - glog 250 | - RCT-Folly (= 2020.01.13.00) 251 | - React-cxxreact (= 0.64.18) 252 | - React-jsi (= 0.64.18) 253 | - React-perflogger (= 0.64.18) 254 | - React-jsinspector (0.64.18) 255 | - React-perflogger (0.64.18) 256 | - React-RCTActionSheet (0.64.18): 257 | - React-Core/RCTActionSheetHeaders (= 0.64.18) 258 | - React-RCTAnimation (0.64.18): 259 | - FBReactNativeSpec (= 0.64.18) 260 | - RCT-Folly (= 2020.01.13.00) 261 | - RCTTypeSafety (= 0.64.18) 262 | - React-Core/RCTAnimationHeaders (= 0.64.18) 263 | - React-jsi (= 0.64.18) 264 | - ReactCommon/turbomodule/core (= 0.64.18) 265 | - React-RCTBlob (0.64.18): 266 | - FBReactNativeSpec (= 0.64.18) 267 | - RCT-Folly (= 2020.01.13.00) 268 | - React-Core/RCTBlobHeaders (= 0.64.18) 269 | - React-Core/RCTWebSocket (= 0.64.18) 270 | - React-jsi (= 0.64.18) 271 | - React-RCTNetwork (= 0.64.18) 272 | - ReactCommon/turbomodule/core (= 0.64.18) 273 | - React-RCTImage (0.64.18): 274 | - FBReactNativeSpec (= 0.64.18) 275 | - RCT-Folly (= 2020.01.13.00) 276 | - RCTTypeSafety (= 0.64.18) 277 | - React-Core/RCTImageHeaders (= 0.64.18) 278 | - React-jsi (= 0.64.18) 279 | - React-RCTNetwork (= 0.64.18) 280 | - ReactCommon/turbomodule/core (= 0.64.18) 281 | - React-RCTLinking (0.64.18): 282 | - FBReactNativeSpec (= 0.64.18) 283 | - React-Core/RCTLinkingHeaders (= 0.64.18) 284 | - React-jsi (= 0.64.18) 285 | - ReactCommon/turbomodule/core (= 0.64.18) 286 | - React-RCTNetwork (0.64.18): 287 | - FBReactNativeSpec (= 0.64.18) 288 | - RCT-Folly (= 2020.01.13.00) 289 | - RCTTypeSafety (= 0.64.18) 290 | - React-Core/RCTNetworkHeaders (= 0.64.18) 291 | - React-jsi (= 0.64.18) 292 | - ReactCommon/turbomodule/core (= 0.64.18) 293 | - React-RCTSettings (0.64.18): 294 | - FBReactNativeSpec (= 0.64.18) 295 | - RCT-Folly (= 2020.01.13.00) 296 | - RCTTypeSafety (= 0.64.18) 297 | - React-Core/RCTSettingsHeaders (= 0.64.18) 298 | - React-jsi (= 0.64.18) 299 | - ReactCommon/turbomodule/core (= 0.64.18) 300 | - React-RCTText (0.64.18): 301 | - React-Core/RCTTextHeaders (= 0.64.18) 302 | - React-RCTVibration (0.64.18): 303 | - FBReactNativeSpec (= 0.64.18) 304 | - RCT-Folly (= 2020.01.13.00) 305 | - React-Core/RCTVibrationHeaders (= 0.64.18) 306 | - React-jsi (= 0.64.18) 307 | - ReactCommon/turbomodule/core (= 0.64.18) 308 | - React-runtimeexecutor (0.64.18): 309 | - React-jsi (= 0.64.18) 310 | - ReactCommon/turbomodule/core (0.64.18): 311 | - DoubleConversion 312 | - glog 313 | - RCT-Folly (= 2020.01.13.00) 314 | - React-callinvoker (= 0.64.18) 315 | - React-Core (= 0.64.18) 316 | - React-cxxreact (= 0.64.18) 317 | - React-jsi (= 0.64.18) 318 | - React-perflogger (= 0.64.18) 319 | - RNCPicker (2.2.1): 320 | - React-Core 321 | - Yoga (1.14.0) 322 | - YogaKit (1.18.1): 323 | - Yoga (~> 1.14) 324 | 325 | DEPENDENCIES: 326 | - boost-for-react-native (from `../node_modules/react-native-macos/third-party-podspecs/boost-for-react-native.podspec`) 327 | - DoubleConversion (from `../node_modules/react-native-macos/third-party-podspecs/DoubleConversion.podspec`) 328 | - FBLazyVector (from `../node_modules/react-native-macos/Libraries/FBLazyVector`) 329 | - FBReactNativeSpec (from `../node_modules/react-native-macos/React/FBReactNativeSpec`) 330 | - Flipper (~> 0.75.1) 331 | - Flipper-DoubleConversion (= 1.1.7) 332 | - Flipper-Folly (~> 2.5.3) 333 | - Flipper-Glog (= 0.3.6) 334 | - Flipper-PeerTalk (~> 0.0.4) 335 | - Flipper-RSocket (~> 1.3) 336 | - FlipperKit (~> 0.75.1) 337 | - FlipperKit/Core (~> 0.75.1) 338 | - FlipperKit/CppBridge (~> 0.75.1) 339 | - FlipperKit/FBCxxFollyDynamicConvert (~> 0.75.1) 340 | - FlipperKit/FBDefines (~> 0.75.1) 341 | - FlipperKit/FKPortForwarding (~> 0.75.1) 342 | - FlipperKit/FlipperKitHighlightOverlay (~> 0.75.1) 343 | - FlipperKit/FlipperKitLayoutPlugin (~> 0.75.1) 344 | - FlipperKit/FlipperKitLayoutTextSearchable (~> 0.75.1) 345 | - FlipperKit/FlipperKitNetworkPlugin (~> 0.75.1) 346 | - FlipperKit/FlipperKitReactPlugin (~> 0.75.1) 347 | - FlipperKit/FlipperKitUserDefaultsPlugin (~> 0.75.1) 348 | - FlipperKit/SKIOSNetworkPlugin (~> 0.75.1) 349 | - glog (from `../node_modules/react-native-macos/third-party-podspecs/glog.podspec`) 350 | - RCT-Folly (from `../node_modules/react-native-macos/third-party-podspecs/RCT-Folly.podspec`) 351 | - RCTRequired (from `../node_modules/react-native-macos/Libraries/RCTRequired`) 352 | - RCTTypeSafety (from `../node_modules/react-native-macos/Libraries/TypeSafety`) 353 | - React (from `../node_modules/react-native-macos/`) 354 | - React-callinvoker (from `../node_modules/react-native-macos/ReactCommon/callinvoker`) 355 | - React-Core (from `../node_modules/react-native-macos/`) 356 | - React-Core/DevSupport (from `../node_modules/react-native-macos/`) 357 | - React-Core/RCTWebSocket (from `../node_modules/react-native-macos/`) 358 | - React-CoreModules (from `../node_modules/react-native-macos/React/CoreModules`) 359 | - React-cxxreact (from `../node_modules/react-native-macos/ReactCommon/cxxreact`) 360 | - React-jsi (from `../node_modules/react-native-macos/ReactCommon/jsi`) 361 | - React-jsiexecutor (from `../node_modules/react-native-macos/ReactCommon/jsiexecutor`) 362 | - React-jsinspector (from `../node_modules/react-native-macos/ReactCommon/jsinspector`) 363 | - React-perflogger (from `../node_modules/react-native-macos/ReactCommon/reactperflogger`) 364 | - React-RCTActionSheet (from `../node_modules/react-native-macos/Libraries/ActionSheetIOS`) 365 | - React-RCTAnimation (from `../node_modules/react-native-macos/Libraries/NativeAnimation`) 366 | - React-RCTBlob (from `../node_modules/react-native-macos/Libraries/Blob`) 367 | - React-RCTImage (from `../node_modules/react-native-macos/Libraries/Image`) 368 | - React-RCTLinking (from `../node_modules/react-native-macos/Libraries/LinkingIOS`) 369 | - React-RCTNetwork (from `../node_modules/react-native-macos/Libraries/Network`) 370 | - React-RCTSettings (from `../node_modules/react-native-macos/Libraries/Settings`) 371 | - React-RCTText (from `../node_modules/react-native-macos/Libraries/Text`) 372 | - React-RCTVibration (from `../node_modules/react-native-macos/Libraries/Vibration`) 373 | - React-runtimeexecutor (from `../node_modules/react-native-macos/ReactCommon/runtimeexecutor`) 374 | - ReactCommon/turbomodule/core (from `../node_modules/react-native-macos/ReactCommon`) 375 | - "RNCPicker (from `../node_modules/@react-native-picker/picker`)" 376 | - Yoga (from `../node_modules/react-native-macos/ReactCommon/yoga`) 377 | 378 | SPEC REPOS: 379 | trunk: 380 | - CocoaAsyncSocket 381 | - Flipper 382 | - Flipper-DoubleConversion 383 | - Flipper-Folly 384 | - Flipper-Glog 385 | - Flipper-PeerTalk 386 | - Flipper-RSocket 387 | - FlipperKit 388 | - libevent 389 | - OpenSSL-Universal 390 | - YogaKit 391 | 392 | EXTERNAL SOURCES: 393 | boost-for-react-native: 394 | :podspec: "../node_modules/react-native-macos/third-party-podspecs/boost-for-react-native.podspec" 395 | DoubleConversion: 396 | :podspec: "../node_modules/react-native-macos/third-party-podspecs/DoubleConversion.podspec" 397 | FBLazyVector: 398 | :path: "../node_modules/react-native-macos/Libraries/FBLazyVector" 399 | FBReactNativeSpec: 400 | :path: "../node_modules/react-native-macos/React/FBReactNativeSpec" 401 | glog: 402 | :podspec: "../node_modules/react-native-macos/third-party-podspecs/glog.podspec" 403 | RCT-Folly: 404 | :podspec: "../node_modules/react-native-macos/third-party-podspecs/RCT-Folly.podspec" 405 | RCTRequired: 406 | :path: "../node_modules/react-native-macos/Libraries/RCTRequired" 407 | RCTTypeSafety: 408 | :path: "../node_modules/react-native-macos/Libraries/TypeSafety" 409 | React: 410 | :path: "../node_modules/react-native-macos/" 411 | React-callinvoker: 412 | :path: "../node_modules/react-native-macos/ReactCommon/callinvoker" 413 | React-Core: 414 | :path: "../node_modules/react-native-macos/" 415 | React-CoreModules: 416 | :path: "../node_modules/react-native-macos/React/CoreModules" 417 | React-cxxreact: 418 | :path: "../node_modules/react-native-macos/ReactCommon/cxxreact" 419 | React-jsi: 420 | :path: "../node_modules/react-native-macos/ReactCommon/jsi" 421 | React-jsiexecutor: 422 | :path: "../node_modules/react-native-macos/ReactCommon/jsiexecutor" 423 | React-jsinspector: 424 | :path: "../node_modules/react-native-macos/ReactCommon/jsinspector" 425 | React-perflogger: 426 | :path: "../node_modules/react-native-macos/ReactCommon/reactperflogger" 427 | React-RCTActionSheet: 428 | :path: "../node_modules/react-native-macos/Libraries/ActionSheetIOS" 429 | React-RCTAnimation: 430 | :path: "../node_modules/react-native-macos/Libraries/NativeAnimation" 431 | React-RCTBlob: 432 | :path: "../node_modules/react-native-macos/Libraries/Blob" 433 | React-RCTImage: 434 | :path: "../node_modules/react-native-macos/Libraries/Image" 435 | React-RCTLinking: 436 | :path: "../node_modules/react-native-macos/Libraries/LinkingIOS" 437 | React-RCTNetwork: 438 | :path: "../node_modules/react-native-macos/Libraries/Network" 439 | React-RCTSettings: 440 | :path: "../node_modules/react-native-macos/Libraries/Settings" 441 | React-RCTText: 442 | :path: "../node_modules/react-native-macos/Libraries/Text" 443 | React-RCTVibration: 444 | :path: "../node_modules/react-native-macos/Libraries/Vibration" 445 | React-runtimeexecutor: 446 | :path: "../node_modules/react-native-macos/ReactCommon/runtimeexecutor" 447 | ReactCommon: 448 | :path: "../node_modules/react-native-macos/ReactCommon" 449 | RNCPicker: 450 | :path: "../node_modules/@react-native-picker/picker" 451 | Yoga: 452 | :path: "../node_modules/react-native-macos/ReactCommon/yoga" 453 | 454 | SPEC CHECKSUMS: 455 | boost-for-react-native: d5ad1140010aa8cb622323a781ecbeab4425d19a 456 | CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 457 | DoubleConversion: 0ea4559a49682230337df966e735d6cc7760108e 458 | FBLazyVector: 6006c4745b9a8a1226d394af255c4f0f9c40139f 459 | FBReactNativeSpec: 1a7b8da76743021bc25e258e8a8ecb7e7840c782 460 | Flipper: d3da1aa199aad94455ae725e9f3aa43f3ec17021 461 | Flipper-DoubleConversion: 38631e41ef4f9b12861c67d17cb5518d06badc41 462 | Flipper-Folly: 755929a4f851b2fb2c347d533a23f191b008554c 463 | Flipper-Glog: 1dfd6abf1e922806c52ceb8701a3599a79a200a6 464 | Flipper-PeerTalk: 116d8f857dc6ef55c7a5a75ea3ceaafe878aadc9 465 | Flipper-RSocket: 127954abe8b162fcaf68d2134d34dc2bd7076154 466 | FlipperKit: 8a20b5c5fcf9436cac58551dc049867247f64b00 467 | glog: 0dc7efada961c0793012970b60faebbd58b0decb 468 | libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 469 | OpenSSL-Universal: 1aa4f6a6ee7256b83db99ec1ccdaa80d10f9af9b 470 | RCT-Folly: b3998425a8ee9f695f57a204dc494534246f0fe9 471 | RCTRequired: da259ca1eb9eda4f8b6105ef61ab3097ef577adc 472 | RCTTypeSafety: c34e6a0c7c6a3173e9c62b96a68aa9ffbd687115 473 | React: 32a8d1fac5703ee09934c89be0cf4c3b14916081 474 | React-callinvoker: 0be77bdf8a665ab1c23ff9e8de5dd25b227bb159 475 | React-Core: 9d6c3585030dc95fd9f5f4b2c7bd9404c5dd85cc 476 | React-CoreModules: 956cebc002a65542448bc22ee84441fa66f08019 477 | React-cxxreact: e0d25d3f426822c3f366a2bb0f637d6e78f7b8ad 478 | React-jsi: 06582ef74c6086ca1fc0b8b34b0812938afc9a9a 479 | React-jsiexecutor: e150e1de0d241eb1e76822c2daa8d773f960fdfa 480 | React-jsinspector: bb6f94c57dedd0f3e0080c3b645fed0eb6dbc0f9 481 | React-perflogger: 65bc15c82187283d7e27b92fe5b6d2a3fdcfaaf0 482 | React-RCTActionSheet: 5182fd66fee19654a2abfa723684b35aafa809b3 483 | React-RCTAnimation: aef88521fe5636c6b0b8e911be3b54ab94d7fb87 484 | React-RCTBlob: 49c3219e6a2fa6f9bca47d2893e0a29f65c816ab 485 | React-RCTImage: 18fed7b7d2973515085b3e8bf7349a759860f763 486 | React-RCTLinking: 8199370d46aeedfea8ea424943b2d7467a8ca2ed 487 | React-RCTNetwork: 088441b0fe9691a5773e0b967a122e242c726ee0 488 | React-RCTSettings: 9c38901b9d0b1923f925c4007984bdaf131f7785 489 | React-RCTText: 7c4de6ad1203be33f7abcc93e179f4f12e6ae2ca 490 | React-RCTVibration: 79f3663ecd1d3c35ec793175e4a31bc289a58f63 491 | React-runtimeexecutor: 01e9cb2caa7cfc35f661dbcc4214db79382a7232 492 | ReactCommon: b98100130312a5a6d0bb0b676ac3bf2477048aef 493 | RNCPicker: cb57c823d5ce8d2d0b5dfb45ad97b737260dc59e 494 | Yoga: dd8f24cc6a2900000f935e241290f52f4adc75ad 495 | YogaKit: f782866e155069a2cca2517aafea43200b01fd5a 496 | 497 | PODFILE CHECKSUM: 466f3ba54683ef02c92a001e8156f25af6dd8c15 498 | 499 | COCOAPODS: 1.11.2 500 | -------------------------------------------------------------------------------- /macos/materialcolors-iOS/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : UIResponder 5 | 6 | @property (nonatomic, strong) UIWindow *window; 7 | 8 | @end 9 | -------------------------------------------------------------------------------- /macos/materialcolors-iOS/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #import "AppDelegate.h" 2 | 3 | #import 4 | #import 5 | #import 6 | 7 | @implementation AppDelegate 8 | 9 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 10 | { 11 | RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; 12 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge 13 | moduleName:@"materialcolors" 14 | initialProperties:nil]; 15 | 16 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 17 | 18 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 19 | UIViewController *rootViewController = [UIViewController new]; 20 | rootViewController.view = rootView; 21 | self.window.rootViewController = rootViewController; 22 | [self.window makeKeyAndVisible]; 23 | return YES; 24 | } 25 | 26 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge 27 | { 28 | #if DEBUG 29 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 30 | #else 31 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 32 | #endif 33 | } 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /macos/materialcolors-iOS/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /macos/materialcolors-iOS/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 | } -------------------------------------------------------------------------------- /macos/materialcolors-iOS/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /macos/materialcolors-iOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | $(PRODUCT_NAME) 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | NSAppTransportSecurity 28 | 29 | NSAllowsArbitraryLoads 30 | 31 | NSExceptionDomains 32 | 33 | localhost 34 | 35 | NSExceptionAllowsInsecureHTTPLoads 36 | 37 | 38 | 39 | 40 | NSLocationWhenInUseUsageDescription 41 | 42 | UILaunchStoryboardName 43 | LaunchScreen 44 | UIRequiredDeviceCapabilities 45 | 46 | armv7 47 | 48 | UISupportedInterfaceOrientations 49 | 50 | UIInterfaceOrientationPortrait 51 | UIInterfaceOrientationLandscapeLeft 52 | UIInterfaceOrientationLandscapeRight 53 | 54 | UIViewControllerBasedStatusBarAppearance 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /macos/materialcolors-iOS/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char * argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /macos/materialcolors-macOS/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class RCTBridge; 4 | 5 | @interface AppDelegate : NSObject 6 | 7 | @property (nonatomic, readonly) RCTBridge *bridge; 8 | 9 | @end 10 | -------------------------------------------------------------------------------- /macos/materialcolors-macOS/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #import "AppDelegate.h" 2 | 3 | #import 4 | #import 5 | 6 | @interface AppDelegate () 7 | 8 | @end 9 | 10 | @implementation AppDelegate 11 | 12 | - (void)awakeFromNib { 13 | [super awakeFromNib]; 14 | 15 | _bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:nil]; 16 | } 17 | 18 | - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { 19 | // Insert code here to initialize your application 20 | } 21 | 22 | - (void)applicationWillTerminate:(NSNotification *)aNotification { 23 | // Insert code here to tear down your application 24 | } 25 | 26 | - (BOOL) applicationShouldHandleReopen:(NSApplication *)sender hasVisibleWindows:(BOOL)flag { 27 | if (!flag) { 28 | NSStoryboard *storyboard = [NSStoryboard storyboardWithName:@"Main" bundle:nil]; 29 | NSWindowController *controllerWindow = [[NSWindowController alloc] init]; 30 | controllerWindow = [storyboard instantiateInitialController]; 31 | [controllerWindow showWindow:self]; 32 | } 33 | return flag; 34 | } 35 | 36 | #pragma mark - RCTBridgeDelegate Methods 37 | 38 | - (NSURL *)sourceURLForBridge:(__unused RCTBridge *)bridge { 39 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:@"main"]; // .jsbundle; 40 | } 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /macos/materialcolors-macOS/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "mac", 5 | "scale" : "1x", 6 | "size" : "16x16" 7 | }, 8 | { 9 | "idiom" : "mac", 10 | "scale" : "2x", 11 | "size" : "16x16" 12 | }, 13 | { 14 | "idiom" : "mac", 15 | "scale" : "1x", 16 | "size" : "32x32" 17 | }, 18 | { 19 | "idiom" : "mac", 20 | "scale" : "2x", 21 | "size" : "32x32" 22 | }, 23 | { 24 | "idiom" : "mac", 25 | "scale" : "1x", 26 | "size" : "128x128" 27 | }, 28 | { 29 | "idiom" : "mac", 30 | "scale" : "2x", 31 | "size" : "128x128" 32 | }, 33 | { 34 | "idiom" : "mac", 35 | "scale" : "1x", 36 | "size" : "256x256" 37 | }, 38 | { 39 | "idiom" : "mac", 40 | "scale" : "2x", 41 | "size" : "256x256" 42 | }, 43 | { 44 | "filename" : "_logo.png", 45 | "idiom" : "mac", 46 | "scale" : "1x", 47 | "size" : "512x512" 48 | }, 49 | { 50 | "idiom" : "mac", 51 | "scale" : "2x", 52 | "size" : "512x512" 53 | } 54 | ], 55 | "info" : { 56 | "author" : "xcode", 57 | "version" : 1 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /macos/materialcolors-macOS/Assets.xcassets/AppIcon.appiconset/_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BafS/Material-Colors-native/742f03fa2dea8a90cd77e4fe782052c7f3713f9c/macos/materialcolors-macOS/Assets.xcassets/AppIcon.appiconset/_logo.png -------------------------------------------------------------------------------- /macos/materialcolors-macOS/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /macos/materialcolors-macOS/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 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 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | -------------------------------------------------------------------------------- /macos/materialcolors-macOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 19 | CFBundleShortVersionString 20 | 0.3.0 21 | CFBundleVersion 22 | 1 23 | LSMinimumSystemVersion 24 | $(MACOSX_DEPLOYMENT_TARGET) 25 | NSAppTransportSecurity 26 | 27 | NSAllowsArbitraryLoads 28 | 29 | NSExceptionDomains 30 | 31 | localhost 32 | 33 | NSExceptionAllowsInsecureHTTPLoads 34 | 35 | 36 | 37 | 38 | NSMainStoryboardFile 39 | Main 40 | NSPrincipalClass 41 | NSApplication 42 | NSSupportsAutomaticTermination 43 | 44 | NSSupportsSuddenTermination 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /macos/materialcolors-macOS/ViewController.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface ViewController : NSViewController 4 | 5 | @end 6 | -------------------------------------------------------------------------------- /macos/materialcolors-macOS/ViewController.m: -------------------------------------------------------------------------------- 1 | #import "ViewController.h" 2 | #import "AppDelegate.h" 3 | 4 | #import 5 | 6 | @implementation ViewController 7 | 8 | - (void)viewDidLoad { 9 | [super viewDidLoad]; 10 | 11 | RCTBridge *bridge = [((AppDelegate *)[NSApp delegate])bridge]; 12 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge moduleName:@"materialcolors" initialProperties:nil]; 13 | 14 | NSView *view = [self view]; 15 | 16 | [view addSubview:rootView]; 17 | [rootView setBackgroundColor:[NSColor windowBackgroundColor]]; 18 | [rootView setFrame:[view bounds]]; 19 | [rootView setAutoresizingMask:(NSViewMinXMargin | NSViewMinXMargin | NSViewMinYMargin | NSViewMaxYMargin | NSViewWidthSizable | NSViewHeightSizable)]; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /macos/materialcolors-macOS/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | int main(int argc, const char *argv[]) { 4 | return NSApplicationMain(argc, argv); 5 | } 6 | -------------------------------------------------------------------------------- /macos/materialcolors-macOS/materialcolors.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.files.user-selected.read-only 8 | 9 | com.apple.security.network.client 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /macos/materialcolors.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /macos/materialcolors.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /metro.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Metro configuration for React Native 3 | * https://github.com/facebook/react-native 4 | * 5 | * @format 6 | */ 7 | 8 | module.exports = { 9 | transformer: { 10 | getTransformOptions: async () => ({ 11 | transform: { 12 | experimentalImportSupport: false, 13 | inlineRequires: true, 14 | }, 15 | }), 16 | }, 17 | }; 18 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "materialcolors", 3 | "version": "0.3.0", 4 | "private": true, 5 | "scripts": { 6 | "android": "react-native run-android", 7 | "ios": "react-native run-ios", 8 | "start": "react-native start", 9 | "test": "jest", 10 | "lint": "eslint ." 11 | }, 12 | "dependencies": { 13 | "@react-native-picker/picker": "^2.2.1", 14 | "react": "17.0.2", 15 | "react-native": "0.66.4", 16 | "react-native-macos": "^0.64.0-0", 17 | "recoil": "^0.5.2" 18 | }, 19 | "devDependencies": { 20 | "@babel/core": "^7.12.9", 21 | "@babel/runtime": "^7.12.5", 22 | "@react-native-community/eslint-config": "^2.0.0", 23 | "babel-jest": "^26.6.3", 24 | "eslint": "7.14.0", 25 | "jest": "^26.6.3", 26 | "metro-react-native-babel-preset": "^0.66.2", 27 | "react-test-renderer": "17.0.2" 28 | }, 29 | "jest": { 30 | "preset": "react-native" 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/App.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | * 5 | * @format 6 | * @flow strict-local 7 | */ 8 | 9 | import React, {useEffect, useRef, useState} from 'react'; 10 | import type {Node} from 'react'; 11 | import {RecoilRoot, useRecoilValue} from 'recoil'; 12 | import {StyleSheet, View, Animated} from 'react-native'; 13 | 14 | import ColorsPanel from './ColorsPanel'; 15 | import ColorsListPanel from './ColorsListPanel'; 16 | import Header from './Header'; 17 | import Settings from './Settings'; 18 | import colors from './colors'; 19 | import {settingsState} from './atoms'; 20 | 21 | const Main = () => { 22 | const settings = useRecoilValue(settingsState); 23 | 24 | const [colorName, setColorName] = useState(''); 25 | const [showSettings, setShowSettings] = useState(false); 26 | 27 | const selectedColorTheme = colors[settings.colorTheme].colors; 28 | 29 | const selectedColor = selectedColorTheme[colorName] 30 | ? colorName 31 | : Object.keys(selectedColorTheme)[0]; 32 | 33 | const hasCategories = selectedColor !== '_default'; 34 | 35 | const toggleSettings = () => setShowSettings(!showSettings); 36 | 37 | const springAnimSettings = useRef(new Animated.Value(0)).current; 38 | 39 | useEffect(() => { 40 | Animated.spring(springAnimSettings, { 41 | toValue: showSettings ? 1 : 0, 42 | useNativeDriver: true, 43 | }).start(); 44 | }, [springAnimSettings, showSettings]); 45 | 46 | return ( 47 | 48 |
53 | {showSettings ? ( 54 | 61 | 62 | 63 | ) : null} 64 | {hasCategories ? ( 65 | 71 | ) : null} 72 | 78 | 79 | ); 80 | }; 81 | 82 | const App: () => Node = () => ( 83 | 84 |
85 | 86 | ); 87 | 88 | const styles = StyleSheet.create({ 89 | container: { 90 | flex: 1, 91 | paddingTop: 26, 92 | flexDirection: 'row', 93 | backgroundColor: '#fff', 94 | }, 95 | 96 | header: { 97 | flexDirection: 'row', 98 | position: 'absolute', 99 | height: 26, 100 | paddingTop: 5, 101 | paddingRight: 5, 102 | top: 0, 103 | right: 0, 104 | }, 105 | 106 | settings: { 107 | position: 'absolute', 108 | backgroundColor: 'white', 109 | padding: 6, 110 | paddingTop: 8, 111 | paddingBottom: 8, 112 | zIndex: 2, 113 | left: 0, 114 | right: 0, 115 | top: 26, 116 | borderBottomColor: '#eee', 117 | borderBottomWidth: 1, 118 | shadowColor: '#000', 119 | shadowRadius: 4, 120 | shadowOffset: {width: 0, height: 8}, 121 | shadowOpacity: 0.08, 122 | }, 123 | 124 | colorsListPanel: { 125 | flex: 1, 126 | justifyContent: 'space-around', 127 | alignItems: 'center', 128 | flexDirection: 'column', 129 | maxWidth: 35, 130 | paddingTop: 4, 131 | paddingBottom: 9, 132 | }, 133 | 134 | colorsPanel: { 135 | flex: 1, 136 | flexDirection: 'column', 137 | paddingTop: 3, 138 | paddingLeft: 10, 139 | paddingRight: 10, 140 | paddingBottom: 5, 141 | borderLeftColor: '#eee', 142 | borderLeftWidth: 1, 143 | }, 144 | }); 145 | 146 | export default App; 147 | -------------------------------------------------------------------------------- /src/ColorsListPanel.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import {View, TouchableOpacity} from 'react-native'; 3 | 4 | const ColorCircle = ({hex: color, selected}) => ( 5 | 16 | {selected ? ( 17 | 27 | ) : null} 28 | 29 | ); 30 | 31 | export default ({colors, style, onClick, selected}) => { 32 | const getBaseColor = value => 33 | colors[value]['500'] ?? 34 | colors[value]['4'] ?? 35 | Object.values(colors[value])[0]; 36 | 37 | const colorsKeys = Object.keys(colors); 38 | const maxHeight = colorsKeys.length * 28; 39 | 40 | return ( 41 | 42 | {colorsKeys.map((value, index) => { 43 | const isSelected = value === selected; 44 | return ( 45 | onClick(value)}> 49 | 50 | 51 | ); 52 | })} 53 | 54 | ); 55 | }; 56 | -------------------------------------------------------------------------------- /src/ColorsPanel.js: -------------------------------------------------------------------------------- 1 | import React, {useEffect, useRef, useState} from 'react'; 2 | import { 3 | Animated, 4 | Text, 5 | View, 6 | Clipboard, 7 | TouchableOpacity, 8 | ScrollView, 9 | } from 'react-native'; 10 | 11 | const luminosity = hexStr => 12 | parseInt(hexStr[0], 16) + parseInt(hexStr[2], 16) + parseInt(hexStr[4], 16); 13 | 14 | /** 15 | * @param {{name: string, color: string, formatter: (color: string) => string}} param0 16 | */ 17 | const ColorBox = ({name, color, formatter}) => { 18 | const hexStr = color.replace(/^#/, ''); 19 | const textColor = luminosity(hexStr) < 26 ? '#fff' : '#111'; 20 | const formatedColor = formatter(hexStr); 21 | 22 | return ( 23 | Clipboard.setString(formatedColor)}> 39 | 44 | {name.toUpperCase()} 45 | 46 | 52 | {formatedColor} 53 | 54 | 55 | ); 56 | }; 57 | 58 | export default ({style, palette, name, colorFormat}) => { 59 | const [isScroll, setIsScroll] = useState(false); 60 | const springAnim = useRef(new Animated.Value(0)).current; 61 | 62 | const paletteKeys = Object.keys(palette ?? []); 63 | 64 | useEffect(() => { 65 | springAnim.setValue(0.6); 66 | 67 | Animated.spring(springAnim, { 68 | toValue: 1, 69 | tension: 80, 70 | friction: 8.5, 71 | useNativeDriver: true, 72 | }).start(); 73 | }, [springAnim, name]); 74 | 75 | /** 76 | * @param {import('react-native').LayoutChangeEvent} e 77 | * @return {float} 78 | */ 79 | const getColorItemSize = e => 80 | e.nativeEvent.layout.height / paletteKeys.length; 81 | 82 | const formatter = hex => `#${hex}`; 83 | 84 | const inner = ( 85 | 93 | {paletteKeys.map((value, index) => ( 94 | 100 | ))} 101 | 102 | ); 103 | 104 | if (isScroll) { 105 | return ( 106 | getColorItemSize(e) > 34 && setIsScroll(false)}> 109 | {inner} 110 | 111 | ); 112 | } 113 | 114 | return ( 115 | getColorItemSize(e) < 34 && setIsScroll(true)}> 118 | {inner} 119 | 120 | ); 121 | }; 122 | -------------------------------------------------------------------------------- /src/Header.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import {Text, View, StyleSheet, Pressable} from 'react-native'; 3 | 4 | export default ({style, title, onSettingsPress}) => ( 5 | 6 | 7 | {(title[0] ?? '').toUpperCase() + title.slice(1).replace('-', ' ')} 8 | 9 | [ 12 | { 13 | backgroundColor: pressed ? '#EEF2FF' : 'transparent', 14 | }, 15 | styles.wrapperCustom, 16 | ]}> 17 | 18 | 19 | 20 | ); 21 | 22 | const styles = StyleSheet.create({ 23 | title: { 24 | fontSize: 11, 25 | color: '#666', 26 | paddingTop: 4, 27 | paddingBottom: 4, 28 | }, 29 | menu: { 30 | fontSize: 18, 31 | color: '#666', 32 | lineHeight: 16, 33 | padding: 5, 34 | paddingLeft: 4, 35 | paddingRight: 4, 36 | }, 37 | }); 38 | -------------------------------------------------------------------------------- /src/Settings.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import {Button, Text, View} from 'react-native'; 3 | import {useRecoilState} from 'recoil'; 4 | import {settingsState} from './atoms'; 5 | import {Picker} from '@react-native-picker/picker'; 6 | import colors from './colors'; 7 | 8 | export default ({onDonePress}) => { 9 | const [settings, setSettings] = useRecoilState(settingsState); 10 | 11 | return ( 12 | 13 | 21 | Settings 22 | 23 | 30 | Color theme 31 | 32 | setSettings({...settings, colorTheme})}> 35 | {Object.entries(colors).map(([key, {name}]) => ( 36 | 37 | ))} 38 | 39 | 40 |