File tree Expand file tree Collapse file tree 3 files changed +26
-10
lines changed
android/src/main/java/com/rusel/RCTBluetoothSerial Expand file tree Collapse file tree 3 files changed +26
-10
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -15,17 +15,15 @@ public class RCTBluetoothSerialPackage implements ReactPackage {
15
15
16
16
@ Override
17
17
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 ));
21
19
}
22
20
23
21
public List <Class <? extends JavaScriptModule >> createJSModules () {
24
- return Collections .emptyList ();
22
+ return Collections .emptyList ();
25
23
}
26
24
27
25
@ Override
28
26
public List <ViewManager > createViewManagers (ReactApplicationContext reactContext ) {
29
- return Collections .emptyList ();
27
+ return Collections .emptyList ();
30
28
}
31
- }
29
+ }
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-bluetooth-serial" ,
3
- "version" : " 1.0.0-rc1 " ,
3
+ "version" : " 1.0.1 " ,
4
4
"description" : " 'Bluetooth serial for react native'" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
7
"test" : " echo \" Error: no test specified\" && exit 1"
8
8
},
9
9
"repository" : {
10
10
"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"
12
12
},
13
13
"keywords" : [
14
14
" bluetooth" ,
17
17
"author" :
" Jakub Martyčák <[email protected] >" ,
18
18
"license" : " ISC" ,
19
19
"bugs" : {
20
- "url" : " https://github.com/rusel1989 /react-native-bluetooth-serial /issues"
20
+ "url" : " https://github.com/ital0 /react-native-bluetooth-seria /issues"
21
21
},
22
- "homepage" : " https://github.com/rusel1989 /react-native-bluetooth-serial #readme" ,
22
+ "homepage" : " https://github.com/ital0 /react-native-bluetooth-seria #readme" ,
23
23
"dependencies" : {
24
24
"buffer" : " ^4.6.0"
25
25
},
You can’t perform that action at this time.
0 commit comments