@rusaint/react-native 0.13.0 → 0.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -40,11 +40,11 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
40
40
 
41
41
  cmake_path(
42
42
  SET MY_RUST_LIB
43
- ${CMAKE_SOURCE_DIR}/src/main/jniLibs/${ANDROID_ABI}/librusaint_ffi.a
43
+ ${CMAKE_SOURCE_DIR}/src/main/jniLibs/${ANDROID_ABI}/librusaint_ffi.so
44
44
  NORMALIZE
45
45
  )
46
- add_library(my_rust_lib STATIC IMPORTED)
47
- set_target_properties(my_rust_lib PROPERTIES IMPORTED_LOCATION ${MY_RUST_LIB})
46
+ add_library(my_rust_lib SHARED IMPORTED)
47
+ set_target_properties(my_rust_lib PROPERTIES IMPORTED_LOCATION ${MY_RUST_LIB} IMPORTED_NO_SONAME ON)
48
48
 
49
49
  # Add ReactAndroid libraries, being careful to account for different versions.
50
50
  find_package(ReactAndroid REQUIRED CONFIG)
@@ -79,7 +79,7 @@ android {
79
79
  }
80
80
  }
81
81
  ndk {
82
- abiFilters "arm64-v8a", "armeabi-v7a", "x86", "x86_64"
82
+ abiFilters "arm64-v8a", "armeabi-v7a"
83
83
  }
84
84
  }
85
85
 
@@ -8,7 +8,7 @@
8
8
  <key>BinaryPath</key>
9
9
  <string>librusaint_ffi.a</string>
10
10
  <key>LibraryIdentifier</key>
11
- <string>ios-arm64</string>
11
+ <string>ios-arm64-simulator</string>
12
12
  <key>LibraryPath</key>
13
13
  <string>librusaint_ffi.a</string>
14
14
  <key>SupportedArchitectures</key>
@@ -17,12 +17,14 @@
17
17
  </array>
18
18
  <key>SupportedPlatform</key>
19
19
  <string>ios</string>
20
+ <key>SupportedPlatformVariant</key>
21
+ <string>simulator</string>
20
22
  </dict>
21
23
  <dict>
22
24
  <key>BinaryPath</key>
23
25
  <string>librusaint_ffi.a</string>
24
26
  <key>LibraryIdentifier</key>
25
- <string>ios-arm64-simulator</string>
27
+ <string>ios-arm64</string>
26
28
  <key>LibraryPath</key>
27
29
  <string>librusaint_ffi.a</string>
28
30
  <key>SupportedArchitectures</key>
@@ -31,8 +33,6 @@
31
33
  </array>
32
34
  <key>SupportedPlatform</key>
33
35
  <string>ios</string>
34
- <key>SupportedPlatformVariant</key>
35
- <string>simulator</string>
36
36
  </dict>
37
37
  </array>
38
38
  <key>CFBundlePackageType</key>
@@ -6,11 +6,11 @@
6
6
  <dict>
7
7
  <key>ios-arm64-simulator/librusaint_ffi.a</key>
8
8
  <data>
9
- CRTTHgcW4dDq9a/FjS7ogRM21JA=
9
+ flUIGQaDdT7jwEl7QJ6AXOlX7KI=
10
10
  </data>
11
11
  <key>ios-arm64/librusaint_ffi.a</key>
12
12
  <data>
13
- jVrayJupjiY7d7mh4Xb+c+COW/s=
13
+ SXZ4u5N5aQxpq3IynnAe2vGAkIA=
14
14
  </data>
15
15
  </dict>
16
16
  <key>files2</key>
@@ -19,22 +19,22 @@
19
19
  <dict>
20
20
  <key>hash</key>
21
21
  <data>
22
- CRTTHgcW4dDq9a/FjS7ogRM21JA=
22
+ flUIGQaDdT7jwEl7QJ6AXOlX7KI=
23
23
  </data>
24
24
  <key>hash2</key>
25
25
  <data>
26
- IMOZqYP7u91B5tCcee8o773fNIAbF0GegzhLIQgFu9g=
26
+ 9C+uYYxs7EfKsVJR7g5RMuN6/hf0ifOJw3oA22Geoug=
27
27
  </data>
28
28
  </dict>
29
29
  <key>ios-arm64/librusaint_ffi.a</key>
30
30
  <dict>
31
31
  <key>hash</key>
32
32
  <data>
33
- jVrayJupjiY7d7mh4Xb+c+COW/s=
33
+ SXZ4u5N5aQxpq3IynnAe2vGAkIA=
34
34
  </data>
35
35
  <key>hash2</key>
36
36
  <data>
37
- MhpP35Y+OdJllMZMH224v60w+RMIo1nr1riuwx7fpP8=
37
+ zZba0QKxK59ReL+IQjBjytozSuepFNJkTjmxHU3Hl9o=
38
38
  </data>
39
39
  </dict>
40
40
  </dict>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rusaint/react-native",
3
- "version": "0.13.0",
3
+ "version": "0.13.2",
4
4
  "description": "React native implementation of the rusaint, scraper library for SSU u-saint",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",
@@ -39,11 +39,10 @@
39
39
  "!**/.*"
40
40
  ],
41
41
  "scripts": {
42
- "ubrn:ios": "ubrn build ios --config ubrn.config.yaml --and-generate && (cd example/ios && pod install)",
42
+ "ubrn:ios": "ubrn build ios --config ubrn.config.yaml --and-generate && (cd example/ios && pod install)",
43
43
  "ubrn:android": "ubrn build android --config ubrn.config.yaml --and-generate",
44
- "ubrn:checkout": "ubrn checkout --config ubrn.config.yaml",
45
44
  "ubrn:release-build": "ubrn build ios --config ubrn.config.yaml --and-generate --release && ubrn build android --config ubrn.config.yaml --and-generate --release",
46
- "ubrn:clean": "rm -Rf cpp/ android/src/main/java ios/ src/Native* src/generated/ src/index.ts*",
45
+ "ubrn:clean": "rm -rfv cpp/ android/CMakeLists.txt android/src/main/java android/*.cpp ios/ src/Native* src/index.*ts* src/generated/",
47
46
  "example": "yarn workspace @rusaint/react-native-example",
48
47
  "test": "jest",
49
48
  "typecheck": "tsc",
@@ -1,44 +0,0 @@
1
- # Generated by uniffi-bindgen-react-native
2
- require "json"
3
-
4
- package = JSON.parse(File.read(File.join(__dir__, "package.json")))
5
- folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
6
-
7
- Pod::Spec.new do |s|
8
- s.name = "RusaintReactNative"
9
- s.version = package["version"]
10
- s.summary = package["description"]
11
- s.homepage = package["homepage"]
12
- s.license = package["license"]
13
- s.authors = package["author"]
14
-
15
- s.platforms = { :ios => min_ios_version_supported }
16
- s.source = { :git => "https://github.com/EATSTEAK/rusaint.git", :tag => "#{s.version}" }
17
-
18
- s.source_files = "ios/**/*.{h,m,mm,swift}", "ios/generated/**/*.{h,m,mm}", "cpp/**/*.{hpp,cpp,c,h}", "cpp/generated/**/*.{hpp,cpp,c,h}"
19
- s.vendored_frameworks = "build/RusaintReactNative.xcframework"
20
- s.dependency "uniffi-bindgen-react-native", "0.29.3-1"
21
-
22
- # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
23
- # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
24
- if respond_to?(:install_modules_dependencies, true)
25
- install_modules_dependencies(s)
26
- else
27
- s.dependency "React-Core"
28
-
29
- # Don't install the dependencies when we run `pod install` in the old architecture.
30
- if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
31
- s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
32
- s.pod_target_xcconfig = {
33
- "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
34
- "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
35
- "CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
36
- }
37
- s.dependency "React-Codegen"
38
- s.dependency "RCT-Folly"
39
- s.dependency "RCTRequired"
40
- s.dependency "RCTTypeSafety"
41
- s.dependency "ReactCommon/turbomodule/core"
42
- end
43
- end
44
- end