Skip to content

Commit 2ee7069

Browse files
authored
Merge pull request #7 from torusresearch/feat/rename-app-scoped
rename to @TorusLabs scope
2 parents 83f424a + bd64725 commit 2ee7069

12 files changed

+22
-22
lines changed

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Remember to add tests for your change if possible. Run the unit tests by:
5151
yarn test
5252
```
5353

54-
To edit the Objective-C files, open `example/ios/WebBrowserExample.xcworkspace` in XCode and find the source files at `Pods > Development Pods > react-native-web-browser`.
54+
To edit the Objective-C files, open `example/ios/WebBrowserExample.xcworkspace` in XCode and find the source files at `Pods > Development Pods > @toruslabs/react-native-web-browser`.
5555

5656
To edit the Kotlin files, open `example/android` in Android studio and find the source files at `reactnativewebbrowser` under `Android`.
5757

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ Web Browser access for React Native ported from expo-web-browser
55
## Installation
66

77
```sh
8-
npm install react-native-web-browser
8+
npm install @toruslabs/react-native-web-browser
99
```
1010

1111
## Usage
1212

1313
```js
14-
import { multiply } from "react-native-web-browser";
14+
import { multiply } from '@toruslabs/react-native-web-browser';
1515

1616
// ...
1717

example/App.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
openAuthSessionAsync,
77
dismissAuthSession,
88
dismissBrowser,
9-
} from 'react-native-web-browser';
9+
} from '@toruslabs/react-native-web-browser';
1010

1111
export default function App() {
1212
return (

example/ios/Podfile.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ DEPENDENCIES:
397397
- React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`)
398398
- React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`)
399399
- React-logger (from `../node_modules/react-native/ReactCommon/logger`)
400-
- react-native-web-browser (from `../node_modules/react-native-web-browser`)
400+
- "react-native-web-browser (from `../node_modules/@toruslabs/react-native-web-browser`)"
401401
- React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`)
402402
- React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`)
403403
- React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`)
@@ -468,7 +468,7 @@ EXTERNAL SOURCES:
468468
React-logger:
469469
:path: "../node_modules/react-native/ReactCommon/logger"
470470
react-native-web-browser:
471-
:path: "../node_modules/react-native-web-browser"
471+
:path: "../node_modules/@toruslabs/react-native-web-browser"
472472
React-perflogger:
473473
:path: "../node_modules/react-native/ReactCommon/reactperflogger"
474474
React-RCTActionSheet:
@@ -528,7 +528,7 @@ SPEC CHECKSUMS:
528528
React-jsiexecutor: 4a4bae5671b064a2248a690cf75957669489d08c
529529
React-jsinspector: 218a2503198ff28a085f8e16622a8d8f507c8019
530530
React-logger: f79dd3cc0f9b44f5611c6c7862badd891a862cf8
531-
react-native-web-browser: dbf8e802ffbba6b615c37bd9512d249cb1b8af2e
531+
react-native-web-browser: e6209d6c2f8348be5c4755a24fd8425b5412eb22
532532
React-perflogger: 30ab8d6db10e175626069e742eead3ebe8f24fd5
533533
React-RCTActionSheet: 4b45da334a175b24dabe75f856b98fed3dfd6201
534534
React-RCTAnimation: d6237386cb04500889877845b3e9e9291146bc2e

example/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"dependencies": {
1313
"react": "17.0.2",
1414
"react-native": "0.68.1",
15-
"react-native-web-browser": "../"
15+
"@toruslabs/react-native-web-browser": "../"
1616
},
1717
"devDependencies": {
1818
"@babel/core": "^7.12.9",

example/yarn.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -1272,6 +1272,11 @@
12721272
resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82"
12731273
integrity sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==
12741274

1275+
"@toruslabs/react-native-web-browser@../":
1276+
version "0.1.0"
1277+
dependencies:
1278+
compare-urls "^2.0.0"
1279+
12751280
"@types/babel__core@^7.0.0", "@types/babel__core@^7.1.7":
12761281
version "7.1.19"
12771282
resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.19.tgz#7b497495b7d1b4812bdb9d02804d0576f43ee460"
@@ -5491,11 +5496,6 @@ react-native-gradle-plugin@^0.0.6:
54915496
resolved "https://registry.yarnpkg.com/react-native-gradle-plugin/-/react-native-gradle-plugin-0.0.6.tgz#b61a9234ad2f61430937911003cddd7e15c72b45"
54925497
integrity sha512-eIlgtsmDp1jLC24dRn43hB3kEcZVqx6DUQbR0N1ABXGnMEafm9I3V3dUUeD1vh+Dy5WqijSoEwLNUPLgu5zDMg==
54935498

5494-
react-native-web-browser@../:
5495-
version "0.1.0"
5496-
dependencies:
5497-
compare-urls "^2.0.0"
5498-
54995499
55005500
version "0.68.1"
55015501
resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.68.1.tgz#c3d92f89028cdc2453fe7cd2d532b3f68d1c27c8"

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "react-native-web-browser",
2+
"name": "@toruslabs/react-native-web-browser",
33
"version": "0.1.0",
44
"description": "Web Browser access for React Native ported from expo-web-browser",
55
"main": "lib/commonjs/index",
@@ -36,13 +36,13 @@
3636
"ios",
3737
"android"
3838
],
39-
"repository": "https://github.com/michaellee8/react-native-web-browser",
39+
"repository": "https://github.com/torusresearch/react-native-web-browser",
4040
"author": "michaellee8 <[email protected]> (https://github.com/michaellee8)",
4141
"license": "MIT",
4242
"bugs": {
43-
"url": "https://github.com/michaellee8/react-native-web-browser/issues"
43+
"url": "https://github.com/torusresearch/react-native-web-browser/issues"
4444
},
45-
"homepage": "https://github.com/michaellee8/react-native-web-browser#readme",
45+
"homepage": "https://github.com/torusresearch/react-native-web-browser#readme",
4646
"publishConfig": {
4747
"registry": "https://registry.npmjs.org/"
4848
},

react-native-web-browser.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
1111
s.authors = package["author"]
1212

1313
s.platforms = { :ios => "12.0" }
14-
s.source = { :git => "https://github.com/michaellee8/react-native-web-browser.git", :tag => "#{s.version}" }
14+
s.source = { :git => "https://github.com/torusresearch/react-native-web-browser.git", :tag => "#{s.version}" }
1515

1616
s.source_files = "ios/**/*.{h,m,mm,swift}"
1717

scripts/sync-android.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22

3-
cp -r ./example/node_modules/react-native-web-browser/android/src/ ./android/
3+
cp -r ./example/node_modules/@toruslabs/react-native-web-browser/android/src/ ./android/

scripts/sync-ios.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22

3-
cp -r ./example/node_modules/react-native-web-browser/ios/*.swift ./example/node_modules/react-native-web-browser/ios/*.m ./example/node_modules/react-native-web-browser/ios/*.h ios/
3+
cp -r ./example/node_modules/@toruslabs/react-native-web-browser/ios/*.swift ./example/node_modules/@toruslabs/react-native-web-browser/ios/*.m ./example/node_modules/@toruslabs/react-native-web-browser/ios/*.h ios/

src/NativeWebBrowser.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { NativeModules, Platform } from 'react-native';
22

33
const LINKING_ERROR =
4-
`The package 'react-native-web-browser' doesn't seem to be linked. Make sure: \n\n` +
4+
`The package '@toruslabs/react-native-web-browser' doesn't seem to be linked. Make sure: \n\n` +
55
Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
66
'- You rebuilt the app after installing the package\n' +
77
'- You are not using Expo managed workflow\n';

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"baseUrl": "./",
44
"paths": {
5-
"react-native-web-browser": ["./src/index"]
5+
"@toruslabs/react-native-web-browser": ["./src/index"]
66
},
77
"allowUnreachableCode": false,
88
"allowUnusedLabels": false,

0 commit comments

Comments
 (0)