Skip to content

Commit

Permalink
tvos plugin fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pavjacko committed May 25, 2019
1 parent ce33e58 commit d4f47a2
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 49 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<img src="https://img.shields.io/badge/Platforms_Supported-14-blue.svg" />
<img src="https://img.shields.io/badge/React_Native-0.59.5-blue.svg" />
<img src="https://img.shields.io/badge/React-16.8.6-blue.svg" />
<img src="https://img.shields.io/badge/Plugins-43-red.svg" />
<img src="https://img.shields.io/badge/Plugins-45-red.svg" />
</p>
</p>

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "renative",
"title": "ReNative",
"version": "0.21.12",
"version": "0.21.14",
"codename": "Magic Beans",
"keywords": [
"react",
Expand Down
84 changes: 37 additions & 47 deletions projectConfig/plugins.json
Original file line number Diff line number Diff line change
@@ -1,49 +1,39 @@
{
"plugins": {
"react-native-gesture-handler": {
"version": "github:kmagiera/react-native-gesture-handler",
"ios": {
"podName": "RNGestureHandler",
"path": "node_modules/react-native-gesture-handler"
},
"android": {
"path": "node_modules/react-native-gesture-handler/android",
"package": "com.swmansion.gesturehandler.react.RNGestureHandlerPackage"
}
},
"react-native-orientation-locker": {
"version": "1.1.5",
"ios": {
"podName": "react-native-orientation-locker",
"appDelegateImports": [
"react_native_orientation_locker"
],
"appDelegateMethods": [
"func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {",
" return Orientation.getOrientation();",
"}"
]
},
"tvos": {
"podName": "react-native-orientation-locker"
},
"android": {
"package": "org.wonday.orientation.OrientationPackage",
"activityImports": [
"android.content.res.Configuration"
],
"activityMethods": [
"override fun onConfigurationChanged(newConfig:Configuration) {",
" super.onConfigurationChanged(newConfig)",
" val intent = Intent(\"onConfigurationChanged\")",
" intent.putExtra(\"newConfig\", newConfig)",
" this.sendBroadcast(intent)",
"}"
]
},
"androidtv": {
"package": "org.wonday.orientation.OrientationPackage"
}
"plugins": {
"react-native-gesture-handler": {
"version": "github:kmagiera/react-native-gesture-handler",
"ios": {
"podName": "RNGestureHandler",
"path": "node_modules/react-native-gesture-handler"
},
"android": {
"path": "node_modules/react-native-gesture-handler/android",
"package": "com.swmansion.gesturehandler.react.RNGestureHandlerPackage"
}
},
"react-native-orientation-locker": {
"version": "1.1.5",
"ios": {
"podName": "react-native-orientation-locker",
"appDelegateImports": ["react_native_orientation_locker"],
"appDelegateMethods": [
"func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {",
" return Orientation.getOrientation();",
"}"
]
},
"android": {
"package": "org.wonday.orientation.OrientationPackage",
"activityImports": ["android.content.res.Configuration"],
"activityMethods": [
"override fun onConfigurationChanged(newConfig:Configuration) {",
" super.onConfigurationChanged(newConfig)",
" val intent = Intent(\"onConfigurationChanged\")",
" intent.putExtra(\"newConfig\", newConfig)",
" this.sendBroadcast(intent)",
"}"
]
}
}
}
}
}
}

0 comments on commit d4f47a2

Please sign in to comment.