react-native-firework-sdk 1.0.1 → 1.0.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.
@@ -37,7 +37,7 @@ android {
37
37
  defaultConfig {
38
38
  minSdkVersion 21
39
39
  targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
40
- versionCode 100000
40
+ versionCode 100002
41
41
  versionName "1.0.0"
42
42
  }
43
43
 
@@ -64,26 +64,28 @@ android {
64
64
  targetCompatibility JavaVersion.VERSION_1_8
65
65
  }
66
66
 
67
- afterEvaluate {
68
- libraryVariants.all { variant ->
69
- variant.variantData.outputFactory.apkDataList.each { apkData ->
70
- def flavor = variant.mergedFlavor
71
- def name = flavor.getVersionName()
72
- def code = flavor.getVersionCode()
73
-
74
- // project.name ->
75
- // buildType.name -> debug
76
- // apkData.outputFileName -> ${project.name}-${buildType.name}.aar
77
- if (variant.name == 'debug') {
78
- apkData.outputFileName = "firework-react-native-sdk" + "-" + variant.name + ".aar"
79
- // apkData.outputFileName = apkData.outputFileName.replace(".aar","-" + name + ".aar" )
80
- } else if (variant.name == 'release') {
81
- apkData.outputFileName = "firework-react-native-sdk" + "-" + variant.name + ".aar"
82
- // apkData.outputFileName = apkData.outputFileName.replace(".aar","-" + name + ".aar" )
83
- }
84
- }
85
- }
86
- }
67
+ // when set classpath("com.android.tools.build:gradle:4.2.2"), will show error:
68
+ // No such property: outputFactory for class: com.android.build.gradle.internal.variant.LibraryVariantData
69
+ // afterEvaluate {
70
+ // libraryVariants.all { variant ->
71
+ // variant.variantData.outputFactory.apkDataList.each { apkData ->
72
+ // def flavor = variant.mergedFlavor
73
+ // def name = flavor.getVersionName()
74
+ // def code = flavor.getVersionCode()
75
+ //
76
+ // // project.name ->
77
+ // // buildType.name -> debug
78
+ // // apkData.outputFileName -> ${project.name}-${buildType.name}.aar
79
+ // if (variant.name == 'debug') {
80
+ // apkData.outputFileName = "firework-react-native-sdk" + "-" + variant.name + ".aar"
81
+ // // apkData.outputFileName = apkData.outputFileName.replace(".aar","-" + name + ".aar" )
82
+ // } else if (variant.name == 'release') {
83
+ // apkData.outputFileName = "firework-react-native-sdk" + "-" + variant.name + ".aar"
84
+ // // apkData.outputFileName = apkData.outputFileName.replace(".aar","-" + name + ".aar" )
85
+ // }
86
+ // }
87
+ // }
88
+ // }
87
89
 
88
90
  }
89
91
 
@@ -178,7 +180,7 @@ dependencies {
178
180
  implementation "com.fasterxml.jackson.module:jackson-module-kotlin:2.9.6"
179
181
  implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
180
182
  // required to avoid crash on Android 12 API 31
181
- // implementation 'androidx.work:work-runtime-ktx:2.7.0'
183
+ implementation 'androidx.work:work-runtime-ktx:2.7.0'
182
184
  // if RN is 0.66.4, you cannot use okhttp3 3.x versions
183
185
  implementation 'com.squareup.okhttp3:okhttp:4.9.0'
184
186
  implementation 'com.squareup.okhttp3:logging-interceptor:4.9.0'
@@ -8,7 +8,8 @@
8
8
 
9
9
  #import <React/RCTBridgeModule.h>
10
10
  #import <React/RCTViewManager.h>
11
- #import <react_native_firework_sdk/react_native_firework_sdk-Swift.h>
11
+ #import <React/RCTUIManager.h>
12
+ #import "react_native_firework_sdk-Swift.h"
12
13
 
13
14
  @interface RCT_EXTERN_REMAP_MODULE(FWVideoFeed, VideoFeedManager, NSObject)
14
15
 
@@ -4,3 +4,5 @@
4
4
  #import <React/RCTEventEmitter.h>
5
5
  #import <React/RCTComponent.h>
6
6
  #import <React/RCTLog.h>
7
+ #import <React/RCTRootView.h>
8
+ #import <React/RCTBridge+Private.h>
@@ -0,0 +1,14 @@
1
+ //
2
+ // react_native_firework_sdk.h
3
+ // react-native-firework-sdk
4
+ //
5
+ // Created by Jeff Zheng on 2022/2/8.
6
+ //
7
+
8
+ #ifndef react_native_firework_sdk_h
9
+ #define react_native_firework_sdk_h
10
+
11
+ //#import "FireworkSdk-Bridging-Header.h"
12
+
13
+
14
+ #endif /* react_native_firework_sdk_h */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-firework-sdk",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Firework React Native SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -13,10 +13,18 @@ Pod::Spec.new do |s|
13
13
  s.platforms = { :ios => "11.0" }
14
14
  s.source = { :git => "https://github.com/loopsocial/bogano.git", :tag => "#{s.version}" }
15
15
 
16
+ # s.header_dir = "ios"
17
+ # s.public_header_files = "ios/*.h"
16
18
  s.source_files = "ios/**/*.{h,m,mm,swift}"
17
19
 
18
20
  s.pod_target_xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => ['"${PODS_ROOT}/FireworkVideoGIMASupport"','"${PODS_ROOT}/FireworkVideoGAMSupport"','"${PODS_XCFRAMEWORKS_BUILD_DIR}/FireworkVideoGIMASupport"','"${PODS_XCFRAMEWORKS_BUILD_DIR}/FireworkVideoGAMSupport"','"${PODS_ROOT}/GoogleAds-IMA-iOS-SDK"']}
19
21
 
22
+ s.script_phase = { :name => 'Copy module header files', :script => 'echo "react-native-firework-sdk module_header_path path is"
23
+ module_header_path=${PODS_TARGET_SRCROOT}"/ios/react_native_firework_sdk.h"
24
+ echo $module_header_path
25
+ cp $module_header_path "${PODS_ROOT}/Headers/Public/react_native_firework_sdk/"', :execution_position => :before_compile }
26
+
27
+
20
28
  s.dependency "React-Core"
21
29
  s.dependency "FireworkVideo","0.13.0"
22
30
  end