Skip to content

Commit 8f83f35

Browse files
author
chenru
committed
1.修复 Android targetSdkVersion 版本过低造成在高版本 gradle 中编译报错问题。
2.修复 iOS 不支持最新版本神策分析 SDK 的问题。
1 parent 8019aea commit 8f83f35

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

RNSensorsAnalyticsModule.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Pod::Spec.new do |s|
33
s.name = "RNSensorsAnalyticsModule"
4-
s.version = "1.1.7"
4+
s.version = "1.1.8"
55
s.summary = "The official React Native SDK of Sensors Analytics."
66
s.description = <<-DESC
77
神策分析 RN 组件
@@ -14,7 +14,7 @@ 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", "~> 1.11.15"
17+
s.dependency "SensorsAnalyticsSDK", ">= 1.11.15"
1818

1919
end
2020

android/build.gradle

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
apply plugin: 'com.android.library'
22

33
android {
4-
compileSdkVersion 23
5-
6-
74

5+
try{
6+
compileSdkVersion rootProject.ext.compileSdkVersion
7+
}catch(Exception e){
8+
compileSdkVersion 29
9+
}
810
defaultConfig {
911
minSdkVersion 9
10-
targetSdkVersion 23
12+
try{
13+
targetSdkVersion rootProject.ext.targetSdkVersion
14+
}catch(Exception e){
15+
targetSdkVersion 29
16+
}
1117
versionCode 1
1218
versionName "1.0"
1319

ios/RNSensorsAnalyticsModule.xcodeproj/project.pbxproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
A18E9FA621A6AB4300A66E41 /* libRNSensorsAnalyticsModule.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNSensorsAnalyticsModule.a; sourceTree = BUILT_PRODUCTS_DIR; };
2727
A18E9FB221A6AEDD00A66E41 /* RNSensorsAnalyticsModule.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNSensorsAnalyticsModule.m; sourceTree = "<group>"; };
2828
A18E9FB321A6AEDD00A66E41 /* RNSensorsAnalyticsModule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNSensorsAnalyticsModule.h; sourceTree = "<group>"; };
29-
A18E9FFA21A6B22E00A66E41 /* SensorsAnalyticsSDK.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SensorsAnalyticsSDK.h; sourceTree = "<group>"; };
3029
/* End PBXFileReference section */
3130

3231
/* Begin PBXFrameworksBuildPhase section */
@@ -43,7 +42,6 @@
4342
A18E9F9D21A6AB4300A66E41 = {
4443
isa = PBXGroup;
4544
children = (
46-
A18E9FFA21A6B22E00A66E41 /* SensorsAnalyticsSDK.h */,
4745
A18E9FB321A6AEDD00A66E41 /* RNSensorsAnalyticsModule.h */,
4846
A18E9FB221A6AEDD00A66E41 /* RNSensorsAnalyticsModule.m */,
4947
A18E9FA721A6AB4300A66E41 /* Products */,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sensorsdata-analytics-react-native",
3-
"version": "1.1.7",
3+
"version": "1.1.8",
44
"private": false,
55
"description": "神策分析 RN 组件",
66
"main": "index.js",

0 commit comments

Comments
 (0)