Skip to content

Commit 9819869

Browse files
committed
- Some Android fixes;
- Adding podspec file; - Updating package.json.
1 parent 6a394f6 commit 9819869

File tree

3 files changed

+26
-10
lines changed

3 files changed

+26
-10
lines changed

RCTBluetoothSerial.podspec

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
require "json"
2+
3+
Pod::Spec.new do |s|
4+
# NPM package specification
5+
package = JSON.parse(File.read(File.join(File.dirname(__FILE__), "package.json")))
6+
7+
s.name = "RCTBluetoothSerial"
8+
s.version = package["version"]
9+
s.summary = package["description"]
10+
s.homepage = "https://github.com/ital0/react-native-bluetooth-serial"
11+
s.license = "MIT"
12+
s.author = { package["author"]["name"] => package["author"]["email"] }
13+
s.platforms = { :ios => "9.0" }
14+
s.source = { :git => "https://github.com/ital0/react-native-bluetooth-serial.git", :tag => "#{s.version}" }
15+
s.source_files = "ios/**/*.{h,m}"
16+
17+
s.dependency "React"
18+
end

android/src/main/java/com/rusel/RCTBluetoothSerial/RCTBluetoothSerialPackage.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,15 @@ public class RCTBluetoothSerialPackage implements ReactPackage {
1515

1616
@Override
1717
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
18-
List<NativeModule> modules = new ArrayList<>();
19-
modules.add(new RCTBluetoothSerialModule(reactContext));
20-
return modules;
18+
return Arrays.<NativeModule>asList(new RCTBluetoothSerialModule(reactContext));
2119
}
2220

2321
public List<Class<? extends JavaScriptModule>> createJSModules() {
24-
return Collections.emptyList();
22+
return Collections.emptyList();
2523
}
2624

2725
@Override
2826
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
29-
return Collections.emptyList();
27+
return Collections.emptyList();
3028
}
31-
}
29+
}

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "react-native-bluetooth-serial",
3-
"version": "1.0.0-rc1",
3+
"version": "1.0.1",
44
"description": "'Bluetooth serial for react native'",
55
"main": "index.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1"
88
},
99
"repository": {
1010
"type": "git",
11-
"url": "git+https://github.com/rusel1989/react-native-bluetooth-serial.git"
11+
"url": "git+https://github.com/ital0/react-native-bluetooth-seria.git"
1212
},
1313
"keywords": [
1414
"bluetooth",
@@ -17,9 +17,9 @@
1717
"author": "Jakub Martyčák <[email protected]>",
1818
"license": "ISC",
1919
"bugs": {
20-
"url": "https://github.com/rusel1989/react-native-bluetooth-serial/issues"
20+
"url": "https://github.com/ital0/react-native-bluetooth-seria/issues"
2121
},
22-
"homepage": "https://github.com/rusel1989/react-native-bluetooth-serial#readme",
22+
"homepage": "https://github.com/ital0/react-native-bluetooth-seria#readme",
2323
"dependencies": {
2424
"buffer": "^4.6.0"
2525
},

0 commit comments

Comments
 (0)