Skip to content

Commit

Permalink
Merge pull request #2 from novom/fix-android-warnings
Browse files Browse the repository at this point in the history
Fix android warnings
  • Loading branch information
Samarkial authored May 24, 2022
2 parents f28086a + 21d3ac2 commit cf7c3bc
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 4 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/packagePublish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: PackagePublish

on:
release:
types:
- created

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "14.18"
registry-url: "https://npm.pkg.github.com"
scope: "@novom"

- name: Publish Package
uses: novom/publish-with-tag-action@v1
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,14 @@ public void onHostPause() {
public void onHostDestroy() {
reactContext.unregisterReceiver(receiver);
}
}

@ReactMethod
public void addListener(String eventName) {
// Keep: Required for RN built in Event Emitter Calls.
}

@ReactMethod
public void removeListeners(int count) {
// Keep: Required for RN built in Event Emitter Calls.
}
}
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-bluetooth-status",
"version": "1.4.3",
"name": "@novom/react-native-bluetooth-status",
"version": "1.4.4",
"description": "React-Native library to query and manage bluetooth state of the device (iOS and Android)",
"main": "index.js",
"scripts": {
Expand All @@ -18,7 +18,10 @@
],
"repository": {
"type": "git",
"url": "[email protected]:solinor/react-native-bluetooth-status.git"
"url": "[email protected]:novom/react-native-bluetooth-status.git"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com"
},
"bugs": {
"url": "https://github.com/solinor/react-native-bluetooth-status/issues"
Expand Down

0 comments on commit cf7c3bc

Please sign in to comment.