Skip to content

Commit 17b4dce

Browse files
authored
[MOB-8995] Drop Manual Linking Support (#748)
* Remove (un)linking-related files and scripts * Specify RN min version in peerDependencies * Update README.md * Update CHANGELOG.md
1 parent b8935c0 commit 17b4dce

File tree

11 files changed

+9
-404
lines changed

11 files changed

+9
-404
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## Unreleased
2+
3+
* React Native 0.69 support
4+
* Bumps the minimum supported React Native version to 0.60.0
5+
* Drops manual linking support
6+
17
## 11.0.2 (2022-07-20)
28

39
* Fixes a crash that occurs when logging some failed network requests

InstabugSample/android/build.gradle

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,5 @@ allprojects {
6060
}
6161
google()
6262
maven { url 'https://www.jitpack.io' }
63-
maven {
64-
url "https://sdks.instabug.com/nexus/repository/instabug-cp"
65-
}
6663
}
6764
}

README.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,6 @@ For more info, visit [Instabug.com](https://www.instabug.com).
3232
cd ios && pod install && cd ..
3333
```
3434

35-
3. **For React Native < 0.60**, link the bridging files in the `instabug-reactnative` package:
36-
37-
```bash
38-
react-native link instabug-reactnative
39-
```
40-
4135
## Initializing Instabug
4236

4337
To start using Instabug, import it as follows, then initialize it in the `constructor` or `componentWillMount`. This line will let the SDK work with the default behavior. The SDK will be invoked when the device is shaken. You can customize this behavior through the APIs.
@@ -47,19 +41,6 @@ import Instabug from 'instabug-reactnative';
4741
4842
Instabug.start('APP_TOKEN', [Instabug.invocationEvent.shake]);
4943
```
50-
51-
**For React Native < 0.60 on Android**
52-
You should find the `getPackages()` method looks like the below snippet. You just need to add your Android app token.
53-
54-
```java
55-
@Override
56-
protected List<ReactPackage> getPackages() {
57-
return Arrays.<ReactPackage>asList(
58-
new MainReactPackage(),
59-
new RNInstabugReactnativePackage()
60-
);
61-
}
62-
```
6344

6445
_You can find your app token by selecting the SDK tab from your [**Instabug dashboard**](https://dashboard.instabug.com)._
6546

link.rb

Lines changed: 0 additions & 78 deletions
This file was deleted.

link_bridge.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

link_gradle.js

Lines changed: 0 additions & 115 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,22 @@
2222
"url": "https://github.com/Instabug/instabug-reactnative/issues"
2323
},
2424
"homepage": "https://github.com/Instabug/instabug-reactnative#readme",
25-
"rnpm": {
26-
"commands": {
27-
"postlink": "node node_modules/instabug-reactnative/link_bridge.js",
28-
"preunlink": "node node_modules/instabug-reactnative/unlink_bridge.js"
29-
},
30-
"android": {
31-
"packageInstance": "new RNInstabugReactnativePackage()"
32-
}
33-
},
3425
"devDependencies": {
3526
"babel-core": "7.0.0-bridge.0",
3627
"babel-jest": "^24.8.0",
3728
"codecov": "~3.8.3",
3829
"jest": "^24.8.0",
3930
"metro-react-native-babel-preset": "0.51.1",
4031
"react": "^16.8.6",
41-
"react-native": "^0.59.8",
32+
"react-native": "^0.60.0",
4233
"sinon": "^7.3.2",
4334
"wait-for-expect": "^1.2.0",
4435
"esprima": "^4.0.1",
4536
"typescript": "^4.0.3"
4637
},
4738
"peerDependencies": {
48-
"react": "*",
49-
"react-native": "*"
39+
"react": ">=16.8.6",
40+
"react-native": ">=0.60.0"
5041
},
5142
"jest": {
5243
"preset": "react-native",

react-native.config.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,5 @@ module.exports = {
1414
},
1515
android: {},
1616
},
17-
hooks: {
18-
postlink: `node ${path.resolve(__dirname, 'link_bridge.js')}`,
19-
},
2017
},
21-
commands: [
22-
{
23-
name: 'add-instabug',
24-
func: () => {
25-
require('./link_gradle');
26-
},
27-
},
28-
{
29-
name: 'remove-instabug',
30-
func: () => {
31-
require('./unlink_gradle');
32-
},
33-
},
34-
],
3518
};

unlink.rb

Lines changed: 0 additions & 54 deletions
This file was deleted.

unlink_bridge.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)