Commit 45a2bc6ebc2ca590385232810499cd88af223840

Authored by zhangxiaowen
1 parent 49662a09

no message

CNLiveEnvironmentConfiguration.podspec
@@ -38,22 +38,6 @@ TODO: Add long description of the pod here. @@ -38,22 +38,6 @@ TODO: Add long description of the pod here.
38 # s.frameworks = 'UIKit', 'MapKit' 38 # s.frameworks = 'UIKit', 'MapKit'
39 # s.dependency 'AFNetworking', '~> 2.3' 39 # s.dependency 'AFNetworking', '~> 2.3'
40 40
41 - ss.source_files = 'CNLiveEnvironmentConfiguration/Classes/CNLiveEnvironmentConfiguration.h' 41 + s.source_files = 'CNLiveEnvironmentConfiguration/Classes/*'
42 42
43 - # 测试个人  
44 - s.subspec 'DebugPersonal' do |ss|  
45 - ss.source_files = 'CNLiveEnvironmentConfiguration/Classes/DebugPersonal/*'  
46 end 43 end
47 - # 测试企业  
48 - s.subspec 'DebugInHouse' do |ss|  
49 - ss.source_files = 'CNLiveEnvironmentConfiguration/Classes/DebugInHouse/*'  
50 - end  
51 - # 正式个人  
52 - s.subspec 'ReleasePersonal' do |ss|  
53 - ss.source_files = 'CNLiveEnvironmentConfiguration/Classes/ReleasePersonal/*'  
54 - end  
55 - # 正式企业  
56 - s.subspec 'ReleaseInHouse' do |ss|  
57 - ss.source_files = 'CNLiveEnvironmentConfiguration/Classes/ReleaseInHouse/*'  
58 - end  
59 -end  
CNLiveEnvironmentConfiguration/Classes/CNEnvironmentHeader.h
@@ -31,11 +31,11 @@ @@ -31,11 +31,11 @@
31 #define ShowGuideView @"no" // yes:显示欢迎页 no:不显示欢迎页 31 #define ShowGuideView @"no" // yes:显示欢迎页 no:不显示欢迎页
32 32
33 //#define Environment_ON 0 // 1:正式环境平台 0:测试环境平台 33 //#define Environment_ON 0 // 1:正式环境平台 0:测试环境平台
34 -#ifdef Environment_ON 34 +#ifdef Environment_ON //主工程中只导入该头文件之前,如果定义Environment_ON(无论值是0或者1)就是正式环境,否则就是测试环境
35 35
36 #pragma mark - 正式环境 36 #pragma mark - 正式环境
37 -//正式环境平台配置  
38 -//IMSDK相关的配置 37 +// 正式环境平台配置
  38 +// IMSDK相关的配置
39 #define kWXAccount @"wjj_app" 39 #define kWXAccount @"wjj_app"
40 #define kSdkAppId @"1400051680" 40 #define kSdkAppId @"1400051680"
41 #define kSdkAccountType @"19645" 41 #define kSdkAccountType @"19645"
@@ -76,9 +76,9 @@ @@ -76,9 +76,9 @@
76 #define WitnessMultipleCategory 370 76 #define WitnessMultipleCategory 370
77 77
78 #pragma mark - 正式个人/企业开关 78 #pragma mark - 正式个人/企业开关
79 -//#define IPA_APPSTORE 0 ////0: App Store版 1:企业版 79 +// #define IPA_APPSTORE 0 ////0: App Store版 1:企业版
80 80
81 -#ifdef IPA_APPSTORE 81 +#ifdef IPA_APPSTORE //主工程中只导入该头文件之前,如果定义IPA_APPSTORE(无论值是0或者1)就是企业版,否则就是App Store版
82 // 正式企业版 82 // 正式企业版
83 // 企业版 com.cnlive.CNLiveNetAddInHouse 83 // 企业版 com.cnlive.CNLiveNetAddInHouse
84 #ifndef AppId 84 #ifndef AppId
@@ -94,7 +94,7 @@ @@ -94,7 +94,7 @@
94 94
95 #define WjjShare_Iden @"group.com.cnlive.CNLiveNetAddInHouse" 95 #define WjjShare_Iden @"group.com.cnlive.CNLiveNetAddInHouse"
96 96
97 -//企业证书id 97 +// 企业证书id
98 #if DEBUG 98 #if DEBUG
99 #define IM_Cer_busiId 7346 99 #define IM_Cer_busiId 7346
100 #else 100 #else
@@ -121,7 +121,7 @@ static NSString *const CNLiveTingYunAppKey = @"782d9a70547a4e3f91cb328b122bb85c" @@ -121,7 +121,7 @@ static NSString *const CNLiveTingYunAppKey = @"782d9a70547a4e3f91cb328b122bb85c"
121 121
122 #else 122 #else
123 // 正式个人版 123 // 正式个人版
124 -//正式版 com.cnlive.CNLiveNetAdd 124 +// 正式版 com.cnlive.CNLiveNetAdd
125 #ifndef AppId 125 #ifndef AppId
126 #define AppId @"769_jetj7bq525" 126 #define AppId @"769_jetj7bq525"
127 #endif 127 #endif
@@ -183,7 +183,6 @@ static NSString *const CNLiveShareSDKAppSecret_Share = @"da94a6f881d404092c9a710 @@ -183,7 +183,6 @@ static NSString *const CNLiveShareSDKAppSecret_Share = @"da94a6f881d404092c9a710
183 #else 183 #else
184 184
185 #pragma mark - 测试环境 185 #pragma mark - 测试环境
186 -////////////////////////////////////////////////////////////  
187 // 测试环境平台配置 186 // 测试环境平台配置
188 // IMSDK相关的配置 187 // IMSDK相关的配置
189 #define kWXAccount @"wjj_app_test" 188 #define kWXAccount @"wjj_app_test"
@@ -237,8 +236,8 @@ static NSString *const CNLiveShareSDKAppSecret_Share = @"f9d2fbf7f7827925c532a71 @@ -237,8 +236,8 @@ static NSString *const CNLiveShareSDKAppSecret_Share = @"f9d2fbf7f7827925c532a71
237 //#define IPA_APPSTORE 1 ////0: 个人版 1:企业版 236 //#define IPA_APPSTORE 1 ////0: 个人版 1:企业版
238 237
239 #if IPA_APPSTORE 238 #if IPA_APPSTORE
240 -//测试企业版  
241 -//企业版 com.cnlive.CNLiveNetAddInHouse.debug 239 +// 测试企业版
  240 +// 企业版 com.cnlive.CNLiveNetAddInHouse.debug
242 #ifndef AppId 241 #ifndef AppId
243 #define AppId @"802_jhbqccxw08" 242 #define AppId @"802_jhbqccxw08"
244 #endif 243 #endif
@@ -252,7 +251,7 @@ static NSString *const CNLiveShareSDKAppSecret_Share = @"f9d2fbf7f7827925c532a71 @@ -252,7 +251,7 @@ static NSString *const CNLiveShareSDKAppSecret_Share = @"f9d2fbf7f7827925c532a71
252 251
253 #define WjjShare_Iden @"group.com.cnlive.CNLiveNetAddInHouse.debug" 252 #define WjjShare_Iden @"group.com.cnlive.CNLiveNetAddInHouse.debug"
254 253
255 -//企业证书id 254 +// 企业证书id
256 #if DEBUG 255 #if DEBUG
257 #define IM_Cer_busiId 9204 256 #define IM_Cer_busiId 9204
258 #else 257 #else
@@ -279,8 +278,8 @@ static NSString *const CNLiveTingYunAppKey = @"3dda66ec904a4c3a8ad0169ca74de352" @@ -279,8 +278,8 @@ static NSString *const CNLiveTingYunAppKey = @"3dda66ec904a4c3a8ad0169ca74de352"
279 278
280 #else 279 #else
281 280
282 -//测试个人版  
283 -//个人版 com.cnlive.CNLiveNetAdd.debug 281 +// 测试个人版
  282 +// 个人版 com.cnlive.CNLiveNetAdd.debug
284 #ifndef AppId 283 #ifndef AppId
285 #define AppId @"802_jhlqbq4475" 284 #define AppId @"802_jhlqbq4475"
286 #endif 285 #endif
CNLiveEnvironmentConfiguration/Classes/CNLiveEnvironmentConfiguration.h
@@ -9,6 +9,30 @@ @@ -9,6 +9,30 @@
9 #ifndef CNLiveEnvironmentConfiguration_h 9 #ifndef CNLiveEnvironmentConfiguration_h
10 #define CNLiveEnvironmentConfiguration_h 10 #define CNLiveEnvironmentConfiguration_h
11 11
  12 +
  13 +//主工程中只导入该头文件之前,如果定义Environment_ON(无论值是0或者1)就是正式环境,否则就是测试环境
  14 +//主工程中只导入该头文件之前,如果定义IPA_APPSTORE(无论值是0或者1)就是企业版,否则就是App Store版
  15 +/*
  16 + //1.正式企业版(宏定义Environment_ON和IPA_APPSTORE)
  17 + #ifdef Environment_ON
  18 + #ifdef IPA_APPSTORE
  19 + */
  20 +
  21 +/*
  22 + //2.正式App Store版
  23 + #ifdef Environment_ON(只宏定义Environment_ON)
  24 + */
  25 +
  26 +/*
  27 + //3.测试企业版
  28 + #ifdef IPA_APPSTORE(只宏定义IPA_APPSTORE)
  29 + */
  30 +
  31 +/*
  32 + //4.测试App Store版(什么都不定义)
  33 +
  34 + */
  35 +
12 #import "CNEnvironmentHeader.h" 36 #import "CNEnvironmentHeader.h"
13 #import "NetworkAPIs.h" 37 #import "NetworkAPIs.h"
14 38