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 38 # s.frameworks = 'UIKit', 'MapKit'
39 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 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 31 #define ShowGuideView @"no" // yes:显示欢迎页 no:不显示欢迎页
32 32  
33 33 //#define Environment_ON 0 // 1:正式环境平台 0:测试环境平台
34   -#ifdef Environment_ON
  34 +#ifdef Environment_ON //主工程中只导入该头文件之前,如果定义Environment_ON(无论值是0或者1)就是正式环境,否则就是测试环境
35 35  
36 36 #pragma mark - 正式环境
37   -//正式环境平台配置
38   -//IMSDK相关的配置
  37 +// 正式环境平台配置
  38 +// IMSDK相关的配置
39 39 #define kWXAccount @"wjj_app"
40 40 #define kSdkAppId @"1400051680"
41 41 #define kSdkAccountType @"19645"
... ... @@ -76,9 +76,9 @@
76 76 #define WitnessMultipleCategory 370
77 77  
78 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 83 // 企业版 com.cnlive.CNLiveNetAddInHouse
84 84 #ifndef AppId
... ... @@ -94,7 +94,7 @@
94 94  
95 95 #define WjjShare_Iden @"group.com.cnlive.CNLiveNetAddInHouse"
96 96  
97   -//企业证书id
  97 +// 企业证书id
98 98 #if DEBUG
99 99 #define IM_Cer_busiId 7346
100 100 #else
... ... @@ -121,7 +121,7 @@ static NSString *const CNLiveTingYunAppKey = @"782d9a70547a4e3f91cb328b122bb85c"
121 121  
122 122 #else
123 123 // 正式个人版
124   -//正式版 com.cnlive.CNLiveNetAdd
  124 +// 正式版 com.cnlive.CNLiveNetAdd
125 125 #ifndef AppId
126 126 #define AppId @"769_jetj7bq525"
127 127 #endif
... ... @@ -183,7 +183,6 @@ static NSString *const CNLiveShareSDKAppSecret_Share = @"da94a6f881d404092c9a710
183 183 #else
184 184  
185 185 #pragma mark - 测试环境
186   -////////////////////////////////////////////////////////////
187 186 // 测试环境平台配置
188 187 // IMSDK相关的配置
189 188 #define kWXAccount @"wjj_app_test"
... ... @@ -237,8 +236,8 @@ static NSString *const CNLiveShareSDKAppSecret_Share = @"f9d2fbf7f7827925c532a71
237 236 //#define IPA_APPSTORE 1 ////0: 个人版 1:企业版
238 237  
239 238 #if IPA_APPSTORE
240   -//测试企业版
241   -//企业版 com.cnlive.CNLiveNetAddInHouse.debug
  239 +// 测试企业版
  240 +// 企业版 com.cnlive.CNLiveNetAddInHouse.debug
242 241 #ifndef AppId
243 242 #define AppId @"802_jhbqccxw08"
244 243 #endif
... ... @@ -252,7 +251,7 @@ static NSString *const CNLiveShareSDKAppSecret_Share = @"f9d2fbf7f7827925c532a71
252 251  
253 252 #define WjjShare_Iden @"group.com.cnlive.CNLiveNetAddInHouse.debug"
254 253  
255   -//企业证书id
  254 +// 企业证书id
256 255 #if DEBUG
257 256 #define IM_Cer_busiId 9204
258 257 #else
... ... @@ -279,8 +278,8 @@ static NSString *const CNLiveTingYunAppKey = @"3dda66ec904a4c3a8ad0169ca74de352"
279 278  
280 279 #else
281 280  
282   -//测试个人版
283   -//个人版 com.cnlive.CNLiveNetAdd.debug
  281 +// 测试个人版
  282 +// 个人版 com.cnlive.CNLiveNetAdd.debug
284 283 #ifndef AppId
285 284 #define AppId @"802_jhlqbq4475"
286 285 #endif
... ...
CNLiveEnvironmentConfiguration/Classes/CNLiveEnvironmentConfiguration.h
... ... @@ -9,6 +9,30 @@
9 9 #ifndef CNLiveEnvironmentConfiguration_h
10 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 36 #import "CNEnvironmentHeader.h"
13 37 #import "NetworkAPIs.h"
14 38  
... ...