@woosmap/react-native-plugin-geofencing 0.11.2-beta.1 → 0.11.2-beta.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@woosmap/react-native-plugin-geofencing",
3
- "version": "0.11.2-beta.1",
3
+ "version": "0.11.2-beta.2",
4
4
  "description": "This react-native plugin extends the functionality offered by the Woosmap Geofencing Mobile SDKs. Find more about the Woosmap Geofencing SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -40,28 +40,17 @@ Pod::Spec.new do |s|
40
40
 
41
41
  s.swift_version = '5.0'
42
42
 
43
- begin
43
+ if defined?(:spm_dependency)
44
44
  spm_dependency(s,
45
45
  url: 'https://github.com/Woosmap/geofencing-ios-sdk-spm-release.git',
46
- requirement: {kind: 'upToNextMajorVersion', minimumVersion: '4.0.0'},
47
- products: ['WoosmapGeofencing'])
48
-
49
- rescue NoMethodError
50
- s.dependency "WoosmapGeofencing", "~> 4.0"
46
+ requirement: {kind: 'upToNextMajorVersion', minimumVersion: '4.0.0'},
47
+ products: ['WoosmapGeofencing']
48
+ )
49
+ else
50
+ raise "Please upgrade React Native to >=0.75.0 to use SPM dependencies."
51
51
  end
52
52
 
53
- # if s.respond_to?(:swift_packages=)
54
- # s.swift_packages = [
55
- # {
56
- # name: 'WoosmapGeofencing',
57
- # url: 'https://github.com/Woosmap/geofencing-ios-sdk-spm-release.git',
58
- # requirement: { kind: 'upToNextMajorVersion', minimumVersion: '4.0.0' }
59
- # }
60
- # ]
61
- # s.swift_package_products = ["WoosmapGeofencing"]
62
- # else
63
- # s.dependency 'WoosmapGeofencing', '~> 4.0'
64
- # end
53
+ #s.dependency 'WoosmapGeofencing', '~> 4.0'
65
54
 
66
55
  s.default_subspec = :default
67
56