File tree Expand file tree Collapse file tree 6 files changed +11
-11
lines changed
android/src/main/java/com/sensorsdata/analytics Expand file tree Collapse file tree 6 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 11
22Pod ::Spec . new do |s |
33 s . name = "RNSensorsAnalyticsModule"
4- s . version = "3.0.2 "
4+ s . version = "3.0.4 "
55 s . summary = "The official React Native SDK of Sensors Analytics."
66 s . description = <<-DESC
77 神策分析 RN 组件
@@ -14,6 +14,6 @@ Pod::Spec.new do |s|
1414 s . source_files = "ios/*.{h,m}"
1515 s . requires_arc = true
1616 s . dependency "React"
17- s . dependency "SensorsAnalyticsSDK" , ">= 4.9.0 "
17+ s . dependency "SensorsAnalyticsSDK" , ">= 4.9.1 "
1818
1919end
Original file line number Diff line number Diff line change 1616import java .util .List ;
1717
1818public class RNSensorsAnalyticsPackage implements ReactPackage {
19- public static final String VERSION = "3.0.2 " ;
19+ public static final String VERSION = "3.0.4 " ;
2020
2121 @ Override
2222 public List <NativeModule > createNativeModules (ReactApplicationContext reactContext ) {
2323 List <NativeModule > modules = new ArrayList <>();
24- //在你们的Package中 添加神策原生模块
24+ // 在你们的Package中 添加神策原生模块
2525 modules .add (new RNSensorsAnalyticsModule (reactContext ));
2626 modules .add (new RNSensorsDataModule (reactContext ));
2727 return modules ;
2828 }
2929
30-
3130 public List <Class <? extends JavaScriptModule >> createJSModules () {
3231 return Collections .emptyList ();
3332 }
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { TimeTracker } from "@sensorsdata/analytics";
1010import { SA } from './NativeSensorsAnalyticsModule' ;
1111
1212// 当前版本号
13- const kSAReactNativePluginVersion : string = "3.0.2 " ;
13+ const kSAReactNativePluginVersion : string = "3.0.4 " ;
1414
1515// react_native 插件版本号前缀
1616const kSARNLibPrefix : string = "react_native" ;
Original file line number Diff line number Diff line change @@ -497,8 +497,9 @@ function trackAppInstall(properties) {
497497
498498function registerDynamicSuperProperties ( ) {
499499 var dynamicProxy = { } ;
500- // 鸿蒙新版直接支持,没必要判断,Androd/iOS 使用原有的接口,使用 registerDynamicPlugin 实现
501- if ( ! NativeSensorsAnalyticsModule . currentPlatform || NativeSensorsAnalyticsModule . currentPlatform ( ) !== 'HarmonyOS' ) {
500+ // 鸿蒙新版直接支持,没必要注册
501+ // Androd/iOS 使用原有的接口,调用 registerDynamicPlugin 实现
502+ if ( ! SensorsDataModule . currentPlatform || SensorsDataModule . currentPlatform ( ) !== 'HarmonyOS' ) {
502503 SensorsDataModule && SensorsDataModule . registerDynamicPlugin && SensorsDataModule . registerDynamicPlugin ( ) ;
503504 }
504505
@@ -603,7 +604,7 @@ function enableDataCollect() {
603604
604605/************** Android only end *****************/
605606export { SAAutoTrackType }
606- export const RNSensorsAnalyticsTurboModule = NativeSensorsAnalyticsModule ;
607+ // export const RNSensorsAnalyticsTurboModule = NativeSensorsAnalyticsModule;
607608
608609export default {
609610 login,
Original file line number Diff line number Diff line change 3232#import " SAReactNativeManager.h"
3333#import " SAReactNativeEventProperty.h"
3434
35- NSString *const kSAReactNativePluginVersion = @" react_native:3.0.2 " ;
35+ NSString *const kSAReactNativePluginVersion = @" react_native:3.0.4 " ;
3636
3737@implementation RNSensorsAnalyticsModule
3838
Original file line number Diff line number Diff line change 11{
22 "name" : " sensorsdata-analytics-react-native" ,
3- "version" : " 3.0.3 " ,
3+ "version" : " 3.0.4 " ,
44 "private" : false ,
55 "description" : " 神策分析 RN 组件" ,
66 "main" : " index.js" ,
You can’t perform that action at this time.
0 commit comments