react-native-acoustic-mobile-push-inbox-beta 3.8.22 → 3.9.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.
@@ -1,41 +1,38 @@
1
-
2
1
  buildscript {
3
- repositories {
4
- jcenter()
5
- }
2
+ repositories {
3
+ jcenter()
4
+ }
6
5
 
7
- dependencies {
8
- classpath 'com.android.tools.build:gradle:1.3.1'
9
- }
6
+ dependencies {
7
+ classpath 'com.android.tools.build:gradle:1.3.1'
8
+ }
10
9
  }
11
10
 
12
11
  apply plugin: 'com.android.library'
13
12
 
14
13
  android {
15
- compileSdkVersion 31
16
-
17
- defaultConfig {
18
- minSdkVersion 21
19
- targetSdkVersion 31
20
- versionCode 1
21
- versionName "1.0"
22
- }
23
- lintOptions {
24
- abortOnError false
25
- }
26
- }
27
-
28
- repositories {
29
- mavenCentral()
14
+ compileSdkVersion 31
15
+
16
+ defaultConfig {
17
+ minSdkVersion 21
18
+ targetSdkVersion 31
19
+ versionCode 1
20
+ versionName "1.0"
21
+ }
22
+ lintOptions {
23
+ abortOnError false
24
+ }
30
25
  }
31
26
 
32
27
  dependencies {
33
- compileOnly('com.facebook.react:react-native:+') {
34
- exclude group: 'com.android.support'
35
- }
36
-
37
- implementation "androidx.core:core:1.8.0"
38
- implementation 'androidx.appcompat:appcompat:1.0.2'
39
- compileOnly fileTree(dir: '../../react-native-acoustic-mobile-push/android/libs', include: ['*.aar'])
28
+ compileOnly('com.facebook.react:react-native:+') {
29
+ exclude group: 'com.android.support'
30
+ }
31
+
32
+ implementation "androidx.core:core:1.8.0"
33
+ implementation 'androidx.appcompat:appcompat:1.0.2'
34
+ implementation "io.github.acoustic-analytics:acoustic-mobile-push-android-sdk:+"
35
+ implementation "io.github.acoustic-analytics:acoustic-mobile-push-android-inapp:+"
36
+ implementation "io.github.acoustic-analytics:acoustic-mobile-push-android-inbox:+"
40
37
  }
41
-
38
+
@@ -0,0 +1,6 @@
1
+ #Mon Feb 26 11:08:41 PST 2024
2
+ android.disableAutomaticComponentCreation=true
3
+ org.gradle.parallel=true
4
+ org.gradle.jvmargs=-Xmx4608m -XX\:+HeapDumpOnOutOfMemoryError -Dfile.encoding\=UTF-8
5
+ android.enableJetifier=true
6
+ android.useAndroidX=true
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 'RNAcousticMobilePushInbox' 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 Inbox Content 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-inbox-beta",
25
26
  "peerDependencies": {
26
- "react-native-acoustic-mobile-push-beta": "3.8.22"
27
+ "react-native-acoustic-mobile-push-beta": "3.9.2"
27
28
  },
28
29
  "repository": {
29
30
  "directory": "plugins/react-native-acoustic-mobile-push-inbox",
@@ -35,5 +36,5 @@
35
36
  "test": "echo \"Error: no test specified\" && exit 1"
36
37
  },
37
38
  "summary": "react-native ios android mobile push Campaign",
38
- "version": "3.8.22"
39
+ "version": "3.9.2"
39
40
  }
@@ -0,0 +1,39 @@
1
+ require 'json'
2
+
3
+ package = JSON.parse(File.read('package.json'))
4
+ mobilePushConfig = JSON.parse(File.read('../react-native-acoustic-mobile-push/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-inbox.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,23 +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-inbox"
7
- s.version = package["version"]
8
- s.summary = package["description"]
9
- s.description = <<-DESC
10
- react-native-acoustic-mobile-push-inbox
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
- end
23
-