react-native-spike-sdk 2.4.1 → 2.4.3
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.
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
require "json"
|
|
2
|
+
|
|
3
|
+
package = JSON.parse(File.read(File.join(__dir__, "..", "package.json")))
|
|
4
|
+
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
|
5
|
+
|
|
6
|
+
Pod::Spec.new do |s|
|
|
7
|
+
s.name = "SpikeExpoModule"
|
|
8
|
+
s.version = package["version"]
|
|
9
|
+
s.summary = package["description"]
|
|
10
|
+
|
|
11
|
+
s.description = <<-DESC
|
|
12
|
+
Connect your app to users’ real-time data via a single API and enable new (data-driven) functionality and personalisation
|
|
13
|
+
DESC
|
|
14
|
+
|
|
15
|
+
s.homepage = "https://gitlab.com/spike_api/spike-react-native-sdk.git"
|
|
16
|
+
s.license = { :type => 'MIT', :file => 'LICENSE' }
|
|
17
|
+
s.author = { "SpikeAPI" => "vytenis@spikeapi.com" }
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
s.source = { :git => "https://gitlab.com/spike_api/spike-react-native-sdk.git", :tag => "#{s.version}" }
|
|
21
|
+
|
|
22
|
+
s.source_files = "**/*.{h,m,mm,swift}"
|
|
23
|
+
|
|
24
|
+
s.platform = :ios, "13.0"
|
|
25
|
+
s.swift_version = "5"
|
|
26
|
+
|
|
27
|
+
s.dependency "React-Core"
|
|
28
|
+
s.dependency 'ExpoModulesCore'
|
|
29
|
+
s.dependency "SpikeSDK", "~> #{package["iosVersion"]}"
|
|
30
|
+
|
|
31
|
+
# Don't install the dependencies when we run `pod install` in the old architecture.
|
|
32
|
+
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|
|
33
|
+
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
|
|
34
|
+
s.pod_target_xcconfig = {
|
|
35
|
+
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
|
|
36
|
+
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
|
|
37
|
+
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
|
|
38
|
+
}
|
|
39
|
+
s.dependency "React-Codegen"
|
|
40
|
+
s.dependency "RCT-Folly"
|
|
41
|
+
s.dependency "RCTRequired"
|
|
42
|
+
s.dependency "RCTTypeSafety"
|
|
43
|
+
s.dependency "ReactCommon/turbomodule/core"
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import ExpoModulesCore
|
|
2
|
+
import SpikeSDK
|
|
3
|
+
|
|
4
|
+
public class SpikeExpoModuleAppDelegateSubscriber: ExpoAppDelegateSubscriber {
|
|
5
|
+
|
|
6
|
+
public func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
|
|
7
|
+
Spike.configure()
|
|
8
|
+
return true
|
|
9
|
+
}
|
|
10
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-spike-sdk",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.3",
|
|
4
|
+
"iosVersion": "2.3.2",
|
|
4
5
|
"description": "Spike API for health and productivity data from wearables and IoT devices",
|
|
5
6
|
"main": "lib/commonjs/index",
|
|
6
7
|
"module": "lib/module/index",
|
|
@@ -12,8 +13,10 @@
|
|
|
12
13
|
"lib",
|
|
13
14
|
"android",
|
|
14
15
|
"ios",
|
|
16
|
+
"ios-expo-module",
|
|
15
17
|
"cpp",
|
|
16
18
|
"app.plugin.js",
|
|
19
|
+
"expo-module.config.json",
|
|
17
20
|
"*.podspec",
|
|
18
21
|
"!lib/typescript/example",
|
|
19
22
|
"!ios/build",
|
|
@@ -5,8 +5,8 @@ folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1
|
|
|
5
5
|
|
|
6
6
|
Pod::Spec.new do |s|
|
|
7
7
|
s.name = "react-native-spike-sdk"
|
|
8
|
-
s.version = "
|
|
9
|
-
s.summary = "
|
|
8
|
+
s.version = package["version"]
|
|
9
|
+
s.summary = package["description"]
|
|
10
10
|
|
|
11
11
|
s.description = <<-DESC
|
|
12
12
|
Connect your app to users’ real-time data via a single API and enable new (data-driven) functionality and personalisation
|
|
@@ -25,7 +25,7 @@ Pod::Spec.new do |s|
|
|
|
25
25
|
s.swift_version = "5"
|
|
26
26
|
|
|
27
27
|
s.dependency "React-Core"
|
|
28
|
-
s.dependency "SpikeSDK", "~>
|
|
28
|
+
s.dependency "SpikeSDK", "~> #{package["iosVersion"]}"
|
|
29
29
|
|
|
30
30
|
# Don't install the dependencies when we run `pod install` in the old architecture.
|
|
31
31
|
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|