Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
Publish 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zoontek committed Oct 3, 2019
1 parent 7f028dd commit 46fd8f9
Show file tree
Hide file tree
Showing 13 changed files with 998 additions and 880 deletions.
36 changes: 6 additions & 30 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,7 @@
.*/*[.]android.js

; Ignore "BUCK" generated dirs
<PROJECT_ROOT>/example/\.buckd/

; Ignore unexpected extra "@providesModule"
.*/example/node_modules/.*/node_modules/fbjs/.*

; Ignore duplicate module providers
; For RN Apps installed via npm, "Libraries" folder is inside
; "node_modules/react-native" but in the source repo it is in the root
example/node_modules/react-native/Libraries/react-native/React.js
<PROJECT_ROOT>/\.buckd/

; Ignore polyfills
example/node_modules/react-native/Libraries/polyfills/.*
Expand All @@ -21,7 +13,7 @@ example/node_modules/react-native/Libraries/polyfills/.*
example/node_modules/warning/.*

; Flow doesn't support platforms
.*/Libraries/Utilities/HMRLoadingView.js
.*/Libraries/Utilities/LoadingView.js

[untyped]
.*/example/node_modules/@react-native-community/cli/.*/.*
Expand All @@ -42,27 +34,11 @@ module.file_ext=.js
module.file_ext=.json
module.file_ext=.ios.js

module.system=haste
module.system.haste.use_name_reducers=true
# get basename
module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
# strip .js or .js.flow suffix
module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
# strip .ios suffix
module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
module.system.haste.paths.blacklist=.*/__tests__/.*
module.system.haste.paths.blacklist=.*/__mocks__/.*
module.system.haste.paths.whitelist=<PROJECT_ROOT>/example/node_modules/react-native/Libraries/.*
module.system.haste.paths.whitelist=<PROJECT_ROOT>/example/node_modules/react-native/RNTester/.*
module.system.haste.paths.whitelist=<PROJECT_ROOT>/example/node_modules/react-native/IntegrationTests/.*
module.system.haste.paths.blacklist=<PROJECT_ROOT>/example/node_modules/react-native/Libraries/react-native/react-native-implementation.js
module.system.haste.paths.blacklist=<PROJECT_ROOT>/example/node_modules/react-native/Libraries/Animated/src/polyfills/.*

munge_underscores=true

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'
module.name_mapper='^react-native$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/react-native/react-native-implementation'
module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/node_modules/react-native/\1'
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\)$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/Image/RelativeImageStub'

suppress_type=$FlowIssue
suppress_type=$FlowFixMe
Expand Down Expand Up @@ -96,4 +72,4 @@ untyped-import
untyped-type-import

[version]
^0.98.0
^0.106.0
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ build/
local.properties
*.iml

# Visual Studio Code
.vscode/

# node.js
node_modules/
npm-debug.log
Expand All @@ -36,6 +39,7 @@ yarn-error.log
buck-out/
\.buckd/
*.keystore
!debug.keystore

# Bundle artifact
*.jsbundle
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ The native part of this module is a variation of [react-native-async-storage-dev

| Version | React Native Support |
| ------- | -------------------- |
| 3.0.0+ | 0.60.0+ |
| 2.0.0+ | 0.56.0+ |
| 4.0.0+ | 0.61.0+ |
| 3.0.0+ | 0.60.0 - 0.60.6 |
| 2.0.0+ | 0.56.0 - 0.59.10 |

## Usage

Expand Down
31 changes: 16 additions & 15 deletions RNDevMenu.podspec
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
require 'json'

package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
package = JSON.parse(File.read('./package.json'))

Pod::Spec.new do |s|
s.name = "RNDevMenu"
s.summary = package['description']
s.version = package['version']
s.name = "RNDevMenu"
s.dependency "React-Core"
s.dependency "React-Core/DevSupport"
s.dependency "React-RCTNetwork"

s.authors = { "Mathieu Acthernoene" => "[email protected]" }
s.homepage = "https://github.com/zoontek/react-native-dev-menu"
s.license = "MIT"
s.platform = :ios, "9.0"
s.version = package["version"]
s.license = package["license"]
s.summary = package["description"]
s.authors = package["author"]
s.homepage = package["homepage"]

s.source = { :git => "https://github.com/zoontek/react-native-dev-menu.git" }
s.source_files = "ios/**/*.{h,m}"
s.exclude_files = "example/**/*"
s.platform = :ios, "9.0"
s.ios.deployment_target = "9.0"
s.tvos.deployment_target = "11.0"
s.requires_arc = true

s.dependency "React-Core"
s.dependency "React-Core/DevSupport"
s.dependency "React-RCTNetwork"
s.source = { :git => package["repository"]["url"], :tag => s.version }
s.source_files = "ios/*.{h,m}"
end
1 change: 0 additions & 1 deletion example/.gitattributes

This file was deleted.

16 changes: 11 additions & 5 deletions example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@ require_relative '../node_modules/@react-native-community/cli-platform-ios/nativ

target 'RNDevMenuExample' do
# Pods for RNDevMenuExample
pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety"
pod 'React', :path => '../node_modules/react-native/'
pod 'React-Core', :path => '../node_modules/react-native/React'
pod 'React-DevSupport', :path => '../node_modules/react-native/React'
pod 'React-fishhook', :path => '../node_modules/react-native/Libraries/fishhook'
pod 'React-Core', :path => '../node_modules/react-native/'
pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'
pod 'React-Core/DevSupport', :path => '../node_modules/react-native/'
pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
Expand All @@ -16,13 +20,15 @@ target 'RNDevMenuExample' do
pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
pod 'React-RCTWebSocket', :path => '../node_modules/react-native/Libraries/WebSocket'
pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/'

pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
pod 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon"
pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"
pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
Expand Down
Loading

0 comments on commit 46fd8f9

Please sign in to comment.