react-native-acoustic-mobile-push-wallet-beta 3.9.1 → 3.9.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.
package/ios/Podfile ADDED
@@ -0,0 +1,60 @@
1
+ # React Native requirements
2
+ puts "Remove node_modules"
3
+ output = `rm -rf ../node_modules/`
4
+ puts output
5
+ output = `rm -rf node_modules/`
6
+ puts output
7
+
8
+ puts "Remove yarn.lock"
9
+ output = `rm -rf ../yarn.lock`
10
+ puts output
11
+ output = `rm -rf yarn.lock`
12
+ puts output
13
+
14
+ puts "Install yarn tool"
15
+ output = `brew install yarn`
16
+ puts output
17
+
18
+ puts "Install react native directory and sources"
19
+ output = `cd .. && yarn install`
20
+ puts output
21
+
22
+ install! 'cocoapods', :disable_input_output_paths => true
23
+ require_relative '../node_modules/react-native/scripts/react_native_pods'
24
+ require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
25
+
26
+ platform :ios, '12.1'
27
+
28
+ target 'RNAcousticMobilePushWallet' do
29
+ use_frameworks! :linkage => :static
30
+ config = use_native_modules!
31
+
32
+ use_react_native!(
33
+ :path => config[:reactNativePath],
34
+ # to enable hermes on iOS, change `false` to `true` and then install pods
35
+ :hermes_enabled => false
36
+ )
37
+
38
+ # Enables Flipper.
39
+ #
40
+ # Note that if you have use_frameworks! enabled, Flipper will not work and
41
+ # you should disable the next line.
42
+ # use_flipper!()
43
+
44
+ # post_install do |installer|
45
+ # react_native_post_install(installer)
46
+ # end
47
+ end
48
+
49
+ post_install do |installer|
50
+ installer.pods_project.targets.each do |target|
51
+ puts "Target: #{target.name}"
52
+ target.build_configurations.each do |config|
53
+ config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.1'
54
+ config.build_settings["ONLY_ACTIVE_ARCH"] = "YES"
55
+ end
56
+ end
57
+ installer.pods_project.build_configurations.each do |config|
58
+ config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
59
+ end
60
+ end
package/package.json CHANGED
@@ -9,7 +9,8 @@
9
9
  },
10
10
  "description": "BETA: Acoustic Mobile Push Wallet Plugin",
11
11
  "devDependencies": {
12
- "jetifier": "^1.6.3"
12
+ "jetifier": "^1.6.3",
13
+ "react-native": "0.72.6"
13
14
  },
14
15
  "homepage": "https://github.com/aipoweredmarketer/ca-mce-react-native",
15
16
  "keywords": [
@@ -23,7 +24,7 @@
23
24
  "main": "index.js",
24
25
  "name": "react-native-acoustic-mobile-push-wallet-beta",
25
26
  "peerDependencies": {
26
- "react-native-acoustic-mobile-push-beta": "3.9.1"
27
+ "react-native-acoustic-mobile-push-beta": "3.9.3"
27
28
  },
28
29
  "repository": {
29
30
  "directory": "plugins/react-native-acoustic-mobile-push-wallet",
@@ -34,5 +35,5 @@
34
35
  "test": "echo \"Error: no test specified\" && exit 1"
35
36
  },
36
37
  "summary": "react-native ios android mobile push Campaign",
37
- "version": "3.9.1"
38
+ "version": "3.9.3"
38
39
  }
@@ -0,0 +1,39 @@
1
+ require 'json'
2
+
3
+ package = JSON.parse(File.read('package.json'))
4
+ mobilePushConfig = JSON.parse(File.read('../../MobilePushConfig.json'))
5
+ repository = package["repository"]["url"]
6
+ useRelease = mobilePushConfig["useRelease"]
7
+ dependencyName = useRelease ? 'AcousticMobilePush' : 'AcousticMobilePushDebug'
8
+ iOSVersion = mobilePushConfig["iOSVersion"]
9
+ dependencyVersion = iOSVersion.to_s.empty? ? "" : "#{iOSVersion}"
10
+
11
+ puts "*********react-native-acoustic-mobile-push-wallet.podspec*********"
12
+ puts "mobilePushConfig:"
13
+ # puts JSON.pretty_generate(mobilePushConfig)
14
+ puts "repository:#{repository}"
15
+ puts "useRelease:#{useRelease}"
16
+ puts "dependencyName:#{dependencyName}"
17
+ puts "dependencyVersion:#{dependencyVersion}"
18
+ puts "mobilePushDependency:#{dependencyName}#{dependencyVersion}"
19
+ puts "***************************************************************"
20
+
21
+ Pod::Spec.new do |s|
22
+ s.name = package["name"]
23
+ s.version = package["version"]
24
+ s.description = package["description"]
25
+ s.homepage = package["homepage"]
26
+ s.summary = package["summary"]
27
+ s.license = package["license"]
28
+ s.authors = package["author"]
29
+ s.platforms = { :ios => "12.1" }
30
+
31
+ s.source = { :git => repository, :tag => s.version }
32
+ s.preserve_paths = 'README.md', 'package.json', '*.js'
33
+ s.source_files = "ios/**/*.{h,m}"
34
+
35
+ s.dependency 'React'
36
+ s.xcconfig = { 'HEADER_SEARCH_PATHS' => '../../../ios/Pods/** ' }
37
+ s.dependency dependencyName, dependencyVersion
38
+
39
+ end
@@ -1,24 +0,0 @@
1
- require "json"
2
-
3
- package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4
-
5
- Pod::Spec.new do |s|
6
- s.name = "react-native-acoustic-mobile-push-wallet"
7
- s.version = package["version"]
8
- s.summary = package["description"]
9
- s.description = <<-DESC
10
- react-native-acoustic-mobile-push-wallet
11
- DESC
12
- s.homepage = "https://github.com/Acoustic-Mobile-Push/React-Native"
13
- s.license = "Copyright (c) 2019. Acoustic, L.P. All rights reserved"
14
- s.authors = { "Support" => "support@acoustic.co" }
15
- s.platforms = { :ios => "12.0" }
16
- s.source = { :git => "https://github.com/Acoustic-Mobile-Push/React-Native.git", :tag => "#{s.version}" }
17
-
18
- s.source_files = "ios/*.{h,m,swift}"
19
- s.requires_arc = true
20
-
21
- s.dependency "React"
22
- s.dependency 'react-native-acoustic-mobile-push'
23
- end
24
-