├── .gitignore ├── Podfile ├── Podfile.lock ├── Pods ├── Headers │ ├── Private │ │ └── libWeChatSDK │ │ │ ├── WXApi.h │ │ │ ├── WXApiObject.h │ │ │ └── WechatAuthSDK.h │ └── Public │ │ └── libWeChatSDK │ │ ├── WXApi.h │ │ ├── WXApiObject.h │ │ └── WechatAuthSDK.h ├── Manifest.lock ├── Pods.xcodeproj │ ├── project.pbxproj │ └── xcuserdata │ │ └── zhouhao.xcuserdatad │ │ └── xcschemes │ │ ├── Pods-WeixinActivitySwift.xcscheme │ │ └── xcschememanagement.plist ├── Target Support Files │ └── Pods-WeixinActivitySwift │ │ ├── Info.plist │ │ ├── Pods-WeixinActivitySwift-acknowledgements.markdown │ │ ├── Pods-WeixinActivitySwift-acknowledgements.plist │ │ ├── Pods-WeixinActivitySwift-dummy.m │ │ ├── Pods-WeixinActivitySwift-frameworks.sh │ │ ├── Pods-WeixinActivitySwift-resources.sh │ │ ├── Pods-WeixinActivitySwift-umbrella.h │ │ ├── Pods-WeixinActivitySwift.debug.xcconfig │ │ ├── Pods-WeixinActivitySwift.modulemap │ │ └── Pods-WeixinActivitySwift.release.xcconfig └── libWeChatSDK │ ├── README.md │ ├── WXApi.h │ ├── WXApiObject.h │ ├── WechatAuthSDK.h │ └── libWeChatSDK.a ├── README.md ├── WeixinActivitySwift.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── xcuserdata │ └── zhouhao.xcuserdatad │ └── xcschemes │ ├── WeixinActivitySwift.xcscheme │ └── xcschememanagement.plist ├── WeixinActivitySwift.xcworkspace ├── contents.xcworkspacedata └── xcuserdata │ └── zhouhao.xcuserdatad │ └── xcdebugger │ └── Breakpoints_v2.xcbkptlist ├── WeixinActivitySwift ├── ObjectiveC-Bridging-Header.h ├── Resources │ ├── icon_session-8.png │ ├── icon_session-8@2x.png │ ├── icon_session.png │ ├── icon_session@2x.png │ ├── icon_timeline-8.png │ ├── icon_timeline-8@2x.png │ ├── icon_timeline.png │ └── icon_timeline@2x.png ├── WeixinActivityBase.swift ├── WeixinSessionActivity.swift └── WeixinTimelineActivity.swift ├── WeixinActivitySwiftDemo ├── AppDelegate.swift ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ └── Oauth.imageset │ │ ├── Contents.json │ │ └── Oauth_logo.svg.png ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── Info.plist └── ViewController.swift └── images ├── 1.PNG └── 2.PNG /.gitignore: -------------------------------------------------------------------------------- 1 | ### Xcode ### 2 | .DS_Store 3 | build/ 4 | *.pbxuser 5 | !default.pbxuser 6 | *.mode1v3 7 | !default.mode1v3 8 | *.mode2v3 9 | !default.mode2v3 10 | *.perspectivev3 11 | !default.perspectivev3 12 | xcuserdata 13 | *.xccheckout 14 | *.moved-aside 15 | DerivedData 16 | *.xcuserstate 17 | -------------------------------------------------------------------------------- /Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment the next line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | target 'WeixinActivitySwift' do 5 | # Comment the next line if you're not using Swift and don't want to use dynamic frameworks 6 | use_frameworks! 7 | 8 | # Pods for WeixinActivitySwift 9 | pod 'libWeChatSDK' 10 | end 11 | -------------------------------------------------------------------------------- /Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - libWeChatSDK (1.7.1) 3 | 4 | DEPENDENCIES: 5 | - libWeChatSDK 6 | 7 | SPEC CHECKSUMS: 8 | libWeChatSDK: 3aa6a7da6469472e27840274461aa4ef5bcad045 9 | 10 | PODFILE CHECKSUM: 14bb273cf8beb72a6b3ee1ac45d418bb14a60ce1 11 | 12 | COCOAPODS: 1.1.0.rc.2 13 | -------------------------------------------------------------------------------- /Pods/Headers/Private/libWeChatSDK/WXApi.h: -------------------------------------------------------------------------------- 1 | ../../../libWeChatSDK/WXApi.h -------------------------------------------------------------------------------- /Pods/Headers/Private/libWeChatSDK/WXApiObject.h: -------------------------------------------------------------------------------- 1 | ../../../libWeChatSDK/WXApiObject.h -------------------------------------------------------------------------------- /Pods/Headers/Private/libWeChatSDK/WechatAuthSDK.h: -------------------------------------------------------------------------------- 1 | ../../../libWeChatSDK/WechatAuthSDK.h -------------------------------------------------------------------------------- /Pods/Headers/Public/libWeChatSDK/WXApi.h: -------------------------------------------------------------------------------- 1 | ../../../libWeChatSDK/WXApi.h -------------------------------------------------------------------------------- /Pods/Headers/Public/libWeChatSDK/WXApiObject.h: -------------------------------------------------------------------------------- 1 | ../../../libWeChatSDK/WXApiObject.h -------------------------------------------------------------------------------- /Pods/Headers/Public/libWeChatSDK/WechatAuthSDK.h: -------------------------------------------------------------------------------- 1 | ../../../libWeChatSDK/WechatAuthSDK.h -------------------------------------------------------------------------------- /Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - libWeChatSDK (1.7.1) 3 | 4 | DEPENDENCIES: 5 | - libWeChatSDK 6 | 7 | SPEC CHECKSUMS: 8 | libWeChatSDK: 3aa6a7da6469472e27840274461aa4ef5bcad045 9 | 10 | PODFILE CHECKSUM: 14bb273cf8beb72a6b3ee1ac45d418bb14a60ce1 11 | 12 | COCOAPODS: 1.1.0.rc.2 13 | -------------------------------------------------------------------------------- /Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 53B7719C0E014231327F0687F9F845C1 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CEC22C73C1608DFA5D5D78BDCB218219 /* Foundation.framework */; }; 11 | 9DC806229A563DBD6D1EB7371E60FF62 /* Pods-WeixinActivitySwift-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 3873199BA4D7C0534FAC6E3E44698405 /* Pods-WeixinActivitySwift-dummy.m */; }; 12 | D69081F6E2E04885C774861192D443B0 /* Pods-WeixinActivitySwift-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 6C3D086620FAB97477EE5EBFD0681475 /* Pods-WeixinActivitySwift-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 13 | /* End PBXBuildFile section */ 14 | 15 | /* Begin PBXFileReference section */ 16 | 125F774A5B1A8FE50542C10CE80F24BD /* Pods-WeixinActivitySwift.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-WeixinActivitySwift.modulemap"; sourceTree = ""; }; 17 | 17568AAAB3ABBA469EBA928DF0D8BE37 /* Pods-WeixinActivitySwift-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-WeixinActivitySwift-acknowledgements.markdown"; sourceTree = ""; }; 18 | 18D008682A1298B1154F17B173DB8341 /* WechatAuthSDK.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = WechatAuthSDK.h; sourceTree = ""; }; 19 | 19CCCCC7C9A47CF2C230124BA0F68878 /* Pods-WeixinActivitySwift-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-WeixinActivitySwift-frameworks.sh"; sourceTree = ""; }; 20 | 3873199BA4D7C0534FAC6E3E44698405 /* Pods-WeixinActivitySwift-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-WeixinActivitySwift-dummy.m"; sourceTree = ""; }; 21 | 3E4B1498205572160F7C68965DC280A4 /* Pods_WeixinActivitySwift.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_WeixinActivitySwift.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 22 | 5CA349E601F942A62D2CEE4A4B3061D6 /* Pods-WeixinActivitySwift-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-WeixinActivitySwift-acknowledgements.plist"; sourceTree = ""; }; 23 | 66AE067F7EE246CD153CC4F24858F9B4 /* Pods-WeixinActivitySwift.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-WeixinActivitySwift.debug.xcconfig"; sourceTree = ""; }; 24 | 6A68200DDB7FA95388B11D9804911AEA /* Pods-WeixinActivitySwift.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-WeixinActivitySwift.release.xcconfig"; sourceTree = ""; }; 25 | 6C3D086620FAB97477EE5EBFD0681475 /* Pods-WeixinActivitySwift-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-WeixinActivitySwift-umbrella.h"; sourceTree = ""; }; 26 | 70EEA9BE9CBF31FE96772CEDD9953AAD /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 27 | 7B6CC2780CFEA6D3C8CB7C7ABC27A1AA /* Pods-WeixinActivitySwift-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-WeixinActivitySwift-resources.sh"; sourceTree = ""; }; 28 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 29 | CEC22C73C1608DFA5D5D78BDCB218219 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 30 | D2658797022B2084C6FEF5C389B85E33 /* libWeChatSDK.a */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = archive.ar; path = libWeChatSDK.a; sourceTree = ""; }; 31 | EAB27947256FF03BE7B81291CF15B6EF /* WXApiObject.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = WXApiObject.h; sourceTree = ""; }; 32 | F7BAD4F82FADAA959C5B969A075B9ABE /* WXApi.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = WXApi.h; sourceTree = ""; }; 33 | /* End PBXFileReference section */ 34 | 35 | /* Begin PBXFrameworksBuildPhase section */ 36 | C71488E223D1A8520454C85DDCA2E0CB /* Frameworks */ = { 37 | isa = PBXFrameworksBuildPhase; 38 | buildActionMask = 2147483647; 39 | files = ( 40 | 53B7719C0E014231327F0687F9F845C1 /* Foundation.framework in Frameworks */, 41 | ); 42 | runOnlyForDeploymentPostprocessing = 0; 43 | }; 44 | /* End PBXFrameworksBuildPhase section */ 45 | 46 | /* Begin PBXGroup section */ 47 | 3DCAB2B7CDE207B3958B6CB957FCC758 /* iOS */ = { 48 | isa = PBXGroup; 49 | children = ( 50 | CEC22C73C1608DFA5D5D78BDCB218219 /* Foundation.framework */, 51 | ); 52 | name = iOS; 53 | sourceTree = ""; 54 | }; 55 | 4DDF5B57E2AC6FCD60D842417E6EDE51 /* Pods-WeixinActivitySwift */ = { 56 | isa = PBXGroup; 57 | children = ( 58 | 70EEA9BE9CBF31FE96772CEDD9953AAD /* Info.plist */, 59 | 125F774A5B1A8FE50542C10CE80F24BD /* Pods-WeixinActivitySwift.modulemap */, 60 | 17568AAAB3ABBA469EBA928DF0D8BE37 /* Pods-WeixinActivitySwift-acknowledgements.markdown */, 61 | 5CA349E601F942A62D2CEE4A4B3061D6 /* Pods-WeixinActivitySwift-acknowledgements.plist */, 62 | 3873199BA4D7C0534FAC6E3E44698405 /* Pods-WeixinActivitySwift-dummy.m */, 63 | 19CCCCC7C9A47CF2C230124BA0F68878 /* Pods-WeixinActivitySwift-frameworks.sh */, 64 | 7B6CC2780CFEA6D3C8CB7C7ABC27A1AA /* Pods-WeixinActivitySwift-resources.sh */, 65 | 6C3D086620FAB97477EE5EBFD0681475 /* Pods-WeixinActivitySwift-umbrella.h */, 66 | 66AE067F7EE246CD153CC4F24858F9B4 /* Pods-WeixinActivitySwift.debug.xcconfig */, 67 | 6A68200DDB7FA95388B11D9804911AEA /* Pods-WeixinActivitySwift.release.xcconfig */, 68 | ); 69 | name = "Pods-WeixinActivitySwift"; 70 | path = "Target Support Files/Pods-WeixinActivitySwift"; 71 | sourceTree = ""; 72 | }; 73 | 6D1752D06FF89D59610641503D451BC7 /* libWeChatSDK */ = { 74 | isa = PBXGroup; 75 | children = ( 76 | 18D008682A1298B1154F17B173DB8341 /* WechatAuthSDK.h */, 77 | F7BAD4F82FADAA959C5B969A075B9ABE /* WXApi.h */, 78 | EAB27947256FF03BE7B81291CF15B6EF /* WXApiObject.h */, 79 | C6297A99DE6FB317C0C48C27242173A2 /* Frameworks */, 80 | ); 81 | path = libWeChatSDK; 82 | sourceTree = ""; 83 | }; 84 | 72491F84C1CDCF3FB1F5EBF22C525818 /* Products */ = { 85 | isa = PBXGroup; 86 | children = ( 87 | 3E4B1498205572160F7C68965DC280A4 /* Pods_WeixinActivitySwift.framework */, 88 | ); 89 | name = Products; 90 | sourceTree = ""; 91 | }; 92 | 7DB346D0F39D3F0E887471402A8071AB = { 93 | isa = PBXGroup; 94 | children = ( 95 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 96 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 97 | ED5AC01D32E0777108E3B2BFC0BD8C2C /* Pods */, 98 | 72491F84C1CDCF3FB1F5EBF22C525818 /* Products */, 99 | EDEE9B4FB8813D52069361EA1386ADBE /* Targets Support Files */, 100 | ); 101 | sourceTree = ""; 102 | }; 103 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 104 | isa = PBXGroup; 105 | children = ( 106 | 3DCAB2B7CDE207B3958B6CB957FCC758 /* iOS */, 107 | ); 108 | name = Frameworks; 109 | sourceTree = ""; 110 | }; 111 | C6297A99DE6FB317C0C48C27242173A2 /* Frameworks */ = { 112 | isa = PBXGroup; 113 | children = ( 114 | D2658797022B2084C6FEF5C389B85E33 /* libWeChatSDK.a */, 115 | ); 116 | name = Frameworks; 117 | sourceTree = ""; 118 | }; 119 | ED5AC01D32E0777108E3B2BFC0BD8C2C /* Pods */ = { 120 | isa = PBXGroup; 121 | children = ( 122 | 6D1752D06FF89D59610641503D451BC7 /* libWeChatSDK */, 123 | ); 124 | name = Pods; 125 | sourceTree = ""; 126 | }; 127 | EDEE9B4FB8813D52069361EA1386ADBE /* Targets Support Files */ = { 128 | isa = PBXGroup; 129 | children = ( 130 | 4DDF5B57E2AC6FCD60D842417E6EDE51 /* Pods-WeixinActivitySwift */, 131 | ); 132 | name = "Targets Support Files"; 133 | sourceTree = ""; 134 | }; 135 | /* End PBXGroup section */ 136 | 137 | /* Begin PBXHeadersBuildPhase section */ 138 | 2C732E46AE4E005D931051A56E2AE6B5 /* Headers */ = { 139 | isa = PBXHeadersBuildPhase; 140 | buildActionMask = 2147483647; 141 | files = ( 142 | D69081F6E2E04885C774861192D443B0 /* Pods-WeixinActivitySwift-umbrella.h in Headers */, 143 | ); 144 | runOnlyForDeploymentPostprocessing = 0; 145 | }; 146 | /* End PBXHeadersBuildPhase section */ 147 | 148 | /* Begin PBXNativeTarget section */ 149 | 405CEABB3EE3B118512905AD03B47F4A /* Pods-WeixinActivitySwift */ = { 150 | isa = PBXNativeTarget; 151 | buildConfigurationList = 0509C54E1EA3B0B9A178342A0D5F9CE6 /* Build configuration list for PBXNativeTarget "Pods-WeixinActivitySwift" */; 152 | buildPhases = ( 153 | 6AB739B605C5D04BE9717309CA65A975 /* Sources */, 154 | C71488E223D1A8520454C85DDCA2E0CB /* Frameworks */, 155 | 2C732E46AE4E005D931051A56E2AE6B5 /* Headers */, 156 | ); 157 | buildRules = ( 158 | ); 159 | dependencies = ( 160 | ); 161 | name = "Pods-WeixinActivitySwift"; 162 | productName = "Pods-WeixinActivitySwift"; 163 | productReference = 3E4B1498205572160F7C68965DC280A4 /* Pods_WeixinActivitySwift.framework */; 164 | productType = "com.apple.product-type.framework"; 165 | }; 166 | /* End PBXNativeTarget section */ 167 | 168 | /* Begin PBXProject section */ 169 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 170 | isa = PBXProject; 171 | attributes = { 172 | LastSwiftUpdateCheck = 0730; 173 | LastUpgradeCheck = 0700; 174 | }; 175 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 176 | compatibilityVersion = "Xcode 3.2"; 177 | developmentRegion = English; 178 | hasScannedForEncodings = 0; 179 | knownRegions = ( 180 | en, 181 | ); 182 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 183 | productRefGroup = 72491F84C1CDCF3FB1F5EBF22C525818 /* Products */; 184 | projectDirPath = ""; 185 | projectRoot = ""; 186 | targets = ( 187 | 405CEABB3EE3B118512905AD03B47F4A /* Pods-WeixinActivitySwift */, 188 | ); 189 | }; 190 | /* End PBXProject section */ 191 | 192 | /* Begin PBXSourcesBuildPhase section */ 193 | 6AB739B605C5D04BE9717309CA65A975 /* Sources */ = { 194 | isa = PBXSourcesBuildPhase; 195 | buildActionMask = 2147483647; 196 | files = ( 197 | 9DC806229A563DBD6D1EB7371E60FF62 /* Pods-WeixinActivitySwift-dummy.m in Sources */, 198 | ); 199 | runOnlyForDeploymentPostprocessing = 0; 200 | }; 201 | /* End PBXSourcesBuildPhase section */ 202 | 203 | /* Begin XCBuildConfiguration section */ 204 | 015A368F878AC3E2CEAE21DDE8026304 /* Debug */ = { 205 | isa = XCBuildConfiguration; 206 | buildSettings = { 207 | ALWAYS_SEARCH_USER_PATHS = NO; 208 | CLANG_ANALYZER_NONNULL = YES; 209 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 210 | CLANG_CXX_LIBRARY = "libc++"; 211 | CLANG_ENABLE_MODULES = YES; 212 | CLANG_ENABLE_OBJC_ARC = YES; 213 | CLANG_WARN_BOOL_CONVERSION = YES; 214 | CLANG_WARN_CONSTANT_CONVERSION = YES; 215 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 216 | CLANG_WARN_EMPTY_BODY = YES; 217 | CLANG_WARN_ENUM_CONVERSION = YES; 218 | CLANG_WARN_INT_CONVERSION = YES; 219 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 220 | CLANG_WARN_UNREACHABLE_CODE = YES; 221 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 222 | CODE_SIGNING_REQUIRED = NO; 223 | COPY_PHASE_STRIP = NO; 224 | ENABLE_TESTABILITY = YES; 225 | GCC_C_LANGUAGE_STANDARD = gnu99; 226 | GCC_DYNAMIC_NO_PIC = NO; 227 | GCC_OPTIMIZATION_LEVEL = 0; 228 | GCC_PREPROCESSOR_DEFINITIONS = ( 229 | "POD_CONFIGURATION_DEBUG=1", 230 | "DEBUG=1", 231 | "$(inherited)", 232 | ); 233 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 234 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 235 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 236 | GCC_WARN_UNDECLARED_SELECTOR = YES; 237 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 238 | GCC_WARN_UNUSED_FUNCTION = YES; 239 | GCC_WARN_UNUSED_VARIABLE = YES; 240 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 241 | ONLY_ACTIVE_ARCH = YES; 242 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 243 | STRIP_INSTALLED_PRODUCT = NO; 244 | SYMROOT = "${SRCROOT}/../build"; 245 | }; 246 | name = Debug; 247 | }; 248 | 44CDBB6D11DE06DB64D6268622BDC47E /* Release */ = { 249 | isa = XCBuildConfiguration; 250 | buildSettings = { 251 | ALWAYS_SEARCH_USER_PATHS = NO; 252 | CLANG_ANALYZER_NONNULL = YES; 253 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 254 | CLANG_CXX_LIBRARY = "libc++"; 255 | CLANG_ENABLE_MODULES = YES; 256 | CLANG_ENABLE_OBJC_ARC = YES; 257 | CLANG_WARN_BOOL_CONVERSION = YES; 258 | CLANG_WARN_CONSTANT_CONVERSION = YES; 259 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 260 | CLANG_WARN_EMPTY_BODY = YES; 261 | CLANG_WARN_ENUM_CONVERSION = YES; 262 | CLANG_WARN_INT_CONVERSION = YES; 263 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 264 | CLANG_WARN_UNREACHABLE_CODE = YES; 265 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 266 | CODE_SIGNING_REQUIRED = NO; 267 | COPY_PHASE_STRIP = YES; 268 | ENABLE_NS_ASSERTIONS = NO; 269 | GCC_C_LANGUAGE_STANDARD = gnu99; 270 | GCC_PREPROCESSOR_DEFINITIONS = ( 271 | "POD_CONFIGURATION_RELEASE=1", 272 | "$(inherited)", 273 | ); 274 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 275 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 276 | GCC_WARN_UNDECLARED_SELECTOR = YES; 277 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 278 | GCC_WARN_UNUSED_FUNCTION = YES; 279 | GCC_WARN_UNUSED_VARIABLE = YES; 280 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 281 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 282 | STRIP_INSTALLED_PRODUCT = NO; 283 | SYMROOT = "${SRCROOT}/../build"; 284 | VALIDATE_PRODUCT = YES; 285 | }; 286 | name = Release; 287 | }; 288 | 7022DEEF2CEF2B606276B0B09F75FED9 /* Release */ = { 289 | isa = XCBuildConfiguration; 290 | baseConfigurationReference = 6A68200DDB7FA95388B11D9804911AEA /* Pods-WeixinActivitySwift.release.xcconfig */; 291 | buildSettings = { 292 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 293 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 294 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 295 | CURRENT_PROJECT_VERSION = 1; 296 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 297 | DEFINES_MODULE = YES; 298 | DYLIB_COMPATIBILITY_VERSION = 1; 299 | DYLIB_CURRENT_VERSION = 1; 300 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 301 | ENABLE_STRICT_OBJC_MSGSEND = YES; 302 | GCC_NO_COMMON_BLOCKS = YES; 303 | INFOPLIST_FILE = "Target Support Files/Pods-WeixinActivitySwift/Info.plist"; 304 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 305 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 306 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 307 | MACH_O_TYPE = staticlib; 308 | MODULEMAP_FILE = "Target Support Files/Pods-WeixinActivitySwift/Pods-WeixinActivitySwift.modulemap"; 309 | MTL_ENABLE_DEBUG_INFO = NO; 310 | OTHER_LDFLAGS = ""; 311 | OTHER_LIBTOOLFLAGS = ""; 312 | PODS_ROOT = "$(SRCROOT)"; 313 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 314 | PRODUCT_NAME = Pods_WeixinActivitySwift; 315 | SDKROOT = iphoneos; 316 | SKIP_INSTALL = YES; 317 | TARGETED_DEVICE_FAMILY = "1,2"; 318 | VERSIONING_SYSTEM = "apple-generic"; 319 | VERSION_INFO_PREFIX = ""; 320 | }; 321 | name = Release; 322 | }; 323 | F8D38D1F5913D06E8E01223060EE139C /* Debug */ = { 324 | isa = XCBuildConfiguration; 325 | baseConfigurationReference = 66AE067F7EE246CD153CC4F24858F9B4 /* Pods-WeixinActivitySwift.debug.xcconfig */; 326 | buildSettings = { 327 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 328 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 329 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 330 | CURRENT_PROJECT_VERSION = 1; 331 | DEBUG_INFORMATION_FORMAT = dwarf; 332 | DEFINES_MODULE = YES; 333 | DYLIB_COMPATIBILITY_VERSION = 1; 334 | DYLIB_CURRENT_VERSION = 1; 335 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 336 | ENABLE_STRICT_OBJC_MSGSEND = YES; 337 | GCC_NO_COMMON_BLOCKS = YES; 338 | INFOPLIST_FILE = "Target Support Files/Pods-WeixinActivitySwift/Info.plist"; 339 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 340 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 341 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 342 | MACH_O_TYPE = staticlib; 343 | MODULEMAP_FILE = "Target Support Files/Pods-WeixinActivitySwift/Pods-WeixinActivitySwift.modulemap"; 344 | MTL_ENABLE_DEBUG_INFO = YES; 345 | OTHER_LDFLAGS = ""; 346 | OTHER_LIBTOOLFLAGS = ""; 347 | PODS_ROOT = "$(SRCROOT)"; 348 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 349 | PRODUCT_NAME = Pods_WeixinActivitySwift; 350 | SDKROOT = iphoneos; 351 | SKIP_INSTALL = YES; 352 | TARGETED_DEVICE_FAMILY = "1,2"; 353 | VERSIONING_SYSTEM = "apple-generic"; 354 | VERSION_INFO_PREFIX = ""; 355 | }; 356 | name = Debug; 357 | }; 358 | /* End XCBuildConfiguration section */ 359 | 360 | /* Begin XCConfigurationList section */ 361 | 0509C54E1EA3B0B9A178342A0D5F9CE6 /* Build configuration list for PBXNativeTarget "Pods-WeixinActivitySwift" */ = { 362 | isa = XCConfigurationList; 363 | buildConfigurations = ( 364 | F8D38D1F5913D06E8E01223060EE139C /* Debug */, 365 | 7022DEEF2CEF2B606276B0B09F75FED9 /* Release */, 366 | ); 367 | defaultConfigurationIsVisible = 0; 368 | defaultConfigurationName = Release; 369 | }; 370 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 371 | isa = XCConfigurationList; 372 | buildConfigurations = ( 373 | 015A368F878AC3E2CEAE21DDE8026304 /* Debug */, 374 | 44CDBB6D11DE06DB64D6268622BDC47E /* Release */, 375 | ); 376 | defaultConfigurationIsVisible = 0; 377 | defaultConfigurationName = Release; 378 | }; 379 | /* End XCConfigurationList section */ 380 | }; 381 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 382 | } 383 | -------------------------------------------------------------------------------- /Pods/Pods.xcodeproj/xcuserdata/zhouhao.xcuserdatad/xcschemes/Pods-WeixinActivitySwift.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 45 | 46 | 52 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 66 | 67 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /Pods/Pods.xcodeproj/xcuserdata/zhouhao.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | Pods-WeixinActivitySwift.xcscheme 8 | 9 | isShown 10 | 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 405CEABB3EE3B118512905AD03B47F4A 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-WeixinActivitySwift/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-WeixinActivitySwift/Pods-WeixinActivitySwift-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## libWeChatSDK 5 | 6 | Copyright (c) 2012 Tencent. All rights reserved. 7 | 8 | Generated by CocoaPods - https://cocoapods.org 9 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-WeixinActivitySwift/Pods-WeixinActivitySwift-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2012 Tencent. All rights reserved. 18 | 19 | License 20 | Copyright 21 | Title 22 | libWeChatSDK 23 | Type 24 | PSGroupSpecifier 25 | 26 | 27 | FooterText 28 | Generated by CocoaPods - https://cocoapods.org 29 | Title 30 | 31 | Type 32 | PSGroupSpecifier 33 | 34 | 35 | StringsTable 36 | Acknowledgements 37 | Title 38 | Acknowledgements 39 | 40 | 41 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-WeixinActivitySwift/Pods-WeixinActivitySwift-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_WeixinActivitySwift : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_WeixinActivitySwift 5 | @end 6 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-WeixinActivitySwift/Pods-WeixinActivitySwift-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements \"$1\"" 63 | /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements "$1" 64 | fi 65 | } 66 | 67 | # Strip invalid architectures 68 | strip_invalid_archs() { 69 | binary="$1" 70 | # Get architectures for current file 71 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 72 | stripped="" 73 | for arch in $archs; do 74 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 75 | # Strip non-valid architectures in-place 76 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 77 | stripped="$stripped $arch" 78 | fi 79 | done 80 | if [[ "$stripped" ]]; then 81 | echo "Stripped $binary of architectures:$stripped" 82 | fi 83 | } 84 | 85 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-WeixinActivitySwift/Pods-WeixinActivitySwift-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | *) 22 | TARGET_DEVICE_ARGS="--target-device mac" 23 | ;; 24 | esac 25 | 26 | realpath() { 27 | DIRECTORY="$(cd "${1%/*}" && pwd)" 28 | FILENAME="${1##*/}" 29 | echo "$DIRECTORY/$FILENAME" 30 | } 31 | 32 | install_resource() 33 | { 34 | if [[ "$1" = /* ]] ; then 35 | RESOURCE_PATH="$1" 36 | else 37 | RESOURCE_PATH="${PODS_ROOT}/$1" 38 | fi 39 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 40 | cat << EOM 41 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 42 | EOM 43 | exit 1 44 | fi 45 | case $RESOURCE_PATH in 46 | *.storyboard) 47 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 48 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 49 | ;; 50 | *.xib) 51 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 52 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 53 | ;; 54 | *.framework) 55 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 56 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 57 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 58 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 59 | ;; 60 | *.xcdatamodel) 61 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 62 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 63 | ;; 64 | *.xcdatamodeld) 65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 67 | ;; 68 | *.xcmappingmodel) 69 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 70 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 71 | ;; 72 | *.xcassets) 73 | ABSOLUTE_XCASSET_FILE=$(realpath "$RESOURCE_PATH") 74 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 75 | ;; 76 | *) 77 | echo "$RESOURCE_PATH" 78 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 79 | ;; 80 | esac 81 | } 82 | 83 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 84 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 85 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 86 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 87 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 88 | fi 89 | rm -f "$RESOURCES_TO_COPY" 90 | 91 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 92 | then 93 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 94 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 95 | while read line; do 96 | if [[ $line != "`realpath $PODS_ROOT`*" ]]; then 97 | XCASSET_FILES+=("$line") 98 | fi 99 | done <<<"$OTHER_XCASSETS" 100 | 101 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 102 | fi 103 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-WeixinActivitySwift/Pods-WeixinActivitySwift-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | 4 | FOUNDATION_EXPORT double Pods_WeixinActivitySwiftVersionNumber; 5 | FOUNDATION_EXPORT const unsigned char Pods_WeixinActivitySwiftVersionString[]; 6 | 7 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-WeixinActivitySwift/Pods-WeixinActivitySwift.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "$(PODS_ROOT)/libWeChatSDK" $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/libWeChatSDK" 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | LIBRARY_SEARCH_PATHS = $(inherited) "$(PODS_ROOT)/libWeChatSDK" $(inherited) "${PODS_ROOT}/libWeChatSDK" 6 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/libWeChatSDK" 7 | OTHER_LDFLAGS = $(inherited) -ObjC -l"WeChatSDK" -l"c++" -l"sqlite3.0" -l"z" -framework "CoreTelephony" -framework "SystemConfiguration" 8 | PODS_BUILD_DIR = $BUILD_DIR 9 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_ROOT = ${SRCROOT}/Pods 11 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-WeixinActivitySwift/Pods-WeixinActivitySwift.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_WeixinActivitySwift { 2 | umbrella header "Pods-WeixinActivitySwift-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-WeixinActivitySwift/Pods-WeixinActivitySwift.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "$(PODS_ROOT)/libWeChatSDK" $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/libWeChatSDK" 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | LIBRARY_SEARCH_PATHS = $(inherited) "$(PODS_ROOT)/libWeChatSDK" $(inherited) "${PODS_ROOT}/libWeChatSDK" 6 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/libWeChatSDK" 7 | OTHER_LDFLAGS = $(inherited) -ObjC -l"WeChatSDK" -l"c++" -l"sqlite3.0" -l"z" -framework "CoreTelephony" -framework "SystemConfiguration" 8 | PODS_BUILD_DIR = $BUILD_DIR 9 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_ROOT = ${SRCROOT}/Pods 11 | -------------------------------------------------------------------------------- /Pods/libWeChatSDK/README.md: -------------------------------------------------------------------------------- 1 | # libWeChatSDK 2 | 3 | Mirror for CocoaPods 4 | 5 | 官方下载地址: 6 | [`https://res.wx.qq.com/open/zh_CN/htmledition/res/dev/download/sdk/WeChatSDK1.7.1.zip`](https://res.wx.qq.com/open/zh_CN/htmledition/res/dev/download/sdk/WeChatSDK1.7.1.zip) 7 | 8 | # SDK 1.7.1 9 | 1. 支持兼容 ipv6 (提升稳定性) 10 | 2. xCode Version 7.3.1 (7D1014) 编译 11 | 12 | # SDK 1.7 13 | 1. 支持兼容 ipv6 14 | 2. 修复若干问题增强稳定性 15 | 16 | # SDK 1.6.2 17 | 1. Xcode 7.1 构建的 SDK 包 18 | 2. 请使用 Xcode 7.1 进行编译 19 | 20 | # SDK 1.6.1 21 | 1. 修复 armv7s 下,bitcode 可能编译不过 22 | 2. 解决 warning 23 | 24 | # SDK 1.6 25 | 26 | 1. iOS 9 系统策略更新,限制了 HTTP 协议的访问,此外应用需要在 `Info.plist` 中将要使用的 URL Schemes 列为白名单,才可正常检查其他应用是否安装。 27 | 受此影响,当你的应用在 iOS 9 中需要使用微信 SDK 的相关能力(分享、收藏、支付、登录等)时,需要在 `Info.plist` 里增加如下代码: 28 | 29 | ```xml 30 | LSApplicationQueriesSchemes 31 | 32 | weixin 33 | 34 | 35 | NSAppTransportSecurity 36 | 37 | NSAllowsArbitraryLoads 38 | 39 | 40 | ``` 41 | 42 | 或者配置白名单域名 pingma.qq.com 43 | 44 | 2. 开发者需要在工程中链接上 `CoreTelephony.framework` 45 | 3. 解决 bitcode 编译不过问题 46 | 47 | # SDK 1.5 48 | 49 | 1. 废弃 `safeSendReq:` 接口,使用 `sendReq:` 即可。 50 | 2. 新增 `+(BOOL) sendAuthReq:(SendAuthReq*) req viewController : (UIViewController*) viewController delegate:(id) delegate;` 51 | 支持未安装微信情况下Auth,具体见 `WXApi.h` 接口描述 52 | 3. 微信开放平台新增了微信模块用户统计功能,便于开发者统计微信功能模块的用户使用和活跃情况。开发者需要在工程中链接上: `SystemConfiguration.framework`, `libz.dylib`, `libsqlite3.0.dylib`。 53 | -------------------------------------------------------------------------------- /Pods/libWeChatSDK/WXApi.h: -------------------------------------------------------------------------------- 1 | // 2 | // WXApi.h 3 | // 所有Api接口 4 | // 5 | // Created by Wechat on 12-2-28. 6 | // Copyright (c) 2012年 Tencent. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "WXApiObject.h" 11 | 12 | 13 | #pragma mark - WXApiDelegate 14 | /*! @brief 接收并处理来自微信终端程序的事件消息 15 | * 16 | * 接收并处理来自微信终端程序的事件消息,期间微信界面会切换到第三方应用程序。 17 | * WXApiDelegate 会在handleOpenURL:delegate:中使用并触发。 18 | */ 19 | @protocol WXApiDelegate 20 | @optional 21 | 22 | /*! @brief 收到一个来自微信的请求,第三方应用程序处理完后调用sendResp向微信发送结果 23 | * 24 | * 收到一个来自微信的请求,异步处理完成后必须调用sendResp发送处理结果给微信。 25 | * 可能收到的请求有GetMessageFromWXReq、ShowMessageFromWXReq等。 26 | * @param req 具体请求内容,是自动释放的 27 | */ 28 | -(void) onReq:(BaseReq*)req; 29 | 30 | 31 | 32 | /*! @brief 发送一个sendReq后,收到微信的回应 33 | * 34 | * 收到一个来自微信的处理结果。调用一次sendReq后会收到onResp。 35 | * 可能收到的处理结果有SendMessageToWXResp、SendAuthResp等。 36 | * @param resp具体的回应内容,是自动释放的 37 | */ 38 | -(void) onResp:(BaseResp*)resp; 39 | 40 | @end 41 | 42 | 43 | 44 | #pragma mark - WXApi 45 | 46 | /*! @brief 微信Api接口函数类 47 | * 48 | * 该类封装了微信终端SDK的所有接口 49 | */ 50 | @interface WXApi : NSObject 51 | 52 | /*! @brief WXApi的成员函数,向微信终端程序注册第三方应用。 53 | * 54 | * 需要在每次启动第三方应用程序时调用。第一次调用后,会在微信的可用应用列表中出现。 55 | * iOS7及以上系统需要调起一次微信才会出现在微信的可用应用列表中。 56 | * @attention 请保证在主线程中调用此函数 57 | * @param appid 微信开发者ID 58 | * @param typeFlag 应用支持打开的文件类型 59 | * @return 成功返回YES,失败返回NO。 60 | */ 61 | +(BOOL) registerApp:(NSString *)appid; 62 | 63 | 64 | /*! @brief WXApi的成员函数,向微信终端程序注册第三方应用。 65 | * 66 | * 需要在每次启动第三方应用程序时调用。第一次调用后,会在微信的可用应用列表中出现。 67 | * @see registerApp 68 | * @param appid 微信开发者ID 69 | * @param appdesc 应用附加信息,长度不超过1024字节 70 | * @return 成功返回YES,失败返回NO。 71 | */ 72 | +(BOOL) registerApp:(NSString *)appid withDescription:(NSString *)appdesc; 73 | 74 | 75 | /*! @brief WXApi的成员函数,向微信终端程序注册应用支持打开的文件类型。 76 | * 77 | * 需要在每次启动第三方应用程序时调用。调用后并第一次成功分享数据到微信后,会在微信的可用应用列表中出现。 78 | * @see registerApp 79 | * @param typeFlag 应用支持打开的数据类型, enAppSupportContentFlag枚举类型 “|” 操作后结果 80 | */ 81 | +(void) registerAppSupportContentFlag:(UInt64)typeFlag; 82 | 83 | 84 | 85 | /*! @brief 处理微信通过URL启动App时传递的数据 86 | * 87 | * 需要在 application:openURL:sourceApplication:annotation:或者application:handleOpenURL中调用。 88 | * @param url 微信启动第三方应用时传递过来的URL 89 | * @param delegate WXApiDelegate对象,用来接收微信触发的消息。 90 | * @return 成功返回YES,失败返回NO。 91 | */ 92 | +(BOOL) handleOpenURL:(NSURL *) url delegate:(id) delegate; 93 | 94 | 95 | 96 | /*! @brief 检查微信是否已被用户安装 97 | * 98 | * @return 微信已安装返回YES,未安装返回NO。 99 | */ 100 | +(BOOL) isWXAppInstalled; 101 | 102 | 103 | 104 | /*! @brief 判断当前微信的版本是否支持OpenApi 105 | * 106 | * @return 支持返回YES,不支持返回NO。 107 | */ 108 | +(BOOL) isWXAppSupportApi; 109 | 110 | 111 | 112 | /*! @brief 获取微信的itunes安装地址 113 | * 114 | * @return 微信的安装地址字符串。 115 | */ 116 | +(NSString *) getWXAppInstallUrl; 117 | 118 | 119 | 120 | /*! @brief 获取当前微信SDK的版本号 121 | * 122 | * @return 返回当前微信SDK的版本号 123 | */ 124 | +(NSString *) getApiVersion; 125 | 126 | 127 | 128 | /*! @brief 打开微信 129 | * 130 | * @return 成功返回YES,失败返回NO。 131 | */ 132 | +(BOOL) openWXApp; 133 | 134 | 135 | 136 | /*! @brief 发送请求到微信,等待微信返回onResp 137 | * 138 | * 函数调用后,会切换到微信的界面。第三方应用程序等待微信返回onResp。微信在异步处理完成后一定会调用onResp。支持以下类型 139 | * SendAuthReq、SendMessageToWXReq、PayReq等。 140 | * @param req 具体的发送请求,在调用函数后,请自己释放。 141 | * @return 成功返回YES,失败返回NO。 142 | */ 143 | +(BOOL) sendReq:(BaseReq*)req; 144 | 145 | /*! @brief 发送Auth请求到微信,支持用户没安装微信,等待微信返回onResp 146 | * 147 | * 函数调用后,会切换到微信的界面。第三方应用程序等待微信返回onResp。微信在异步处理完成后一定会调用onResp。支持SendAuthReq类型。 148 | * @param req 具体的发送请求,在调用函数后,请自己释放。 149 | * @param viewController 当前界面对象。 150 | * @param delegate WXApiDelegate对象,用来接收微信触发的消息。 151 | * @return 成功返回YES,失败返回NO。 152 | */ 153 | +(BOOL) sendAuthReq:(SendAuthReq*)req viewController:(UIViewController*)viewController delegate:(id)delegate; 154 | 155 | 156 | /*! @brief 收到微信onReq的请求,发送对应的应答给微信,并切换到微信界面 157 | * 158 | * 函数调用后,会切换到微信的界面。第三方应用程序收到微信onReq的请求,异步处理该请求,完成后必须调用该函数。可能发送的相应有 159 | * GetMessageFromWXResp、ShowMessageFromWXResp等。 160 | * @param resp 具体的应答内容,调用函数后,请自己释放 161 | * @return 成功返回YES,失败返回NO。 162 | */ 163 | +(BOOL) sendResp:(BaseResp*)resp; 164 | 165 | 166 | @end 167 | -------------------------------------------------------------------------------- /Pods/libWeChatSDK/WXApiObject.h: -------------------------------------------------------------------------------- 1 | // 2 | // MMApiObject.h 3 | // Api对象,包含所有接口和对象数据定义 4 | // 5 | // Created by Wechat on 12-2-28. 6 | // Copyright (c) 2012年 Tencent. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | /*! @brief 错误码 12 | * 13 | */ 14 | enum WXErrCode { 15 | WXSuccess = 0, /**< 成功 */ 16 | WXErrCodeCommon = -1, /**< 普通错误类型 */ 17 | WXErrCodeUserCancel = -2, /**< 用户点击取消并返回 */ 18 | WXErrCodeSentFail = -3, /**< 发送失败 */ 19 | WXErrCodeAuthDeny = -4, /**< 授权失败 */ 20 | WXErrCodeUnsupport = -5, /**< 微信不支持 */ 21 | }; 22 | 23 | 24 | 25 | /*! @brief 请求发送场景 26 | * 27 | */ 28 | enum WXScene { 29 | WXSceneSession = 0, /**< 聊天界面 */ 30 | WXSceneTimeline = 1, /**< 朋友圈 */ 31 | WXSceneFavorite = 2, /**< 收藏 */ 32 | }; 33 | 34 | 35 | 36 | enum WXAPISupport { 37 | WXAPISupportSession = 0, 38 | }; 39 | 40 | 41 | 42 | /*! @brief 跳转profile类型 43 | * 44 | */ 45 | enum WXBizProfileType{ 46 | WXBizProfileType_Normal = 0, //**< 普通公众号 */ 47 | WXBizProfileType_Device = 1, //**< 硬件公众号 */ 48 | }; 49 | 50 | 51 | 52 | /*! @brief 跳转mp网页类型 53 | * 54 | */ 55 | enum WXMPWebviewType { 56 | WXMPWebviewType_Ad = 0, /**< 广告网页 **/ 57 | }; 58 | 59 | 60 | /*! @brief 应用支持接收微信的文件类型 61 | * 62 | */ 63 | typedef NS_ENUM(UInt64, enAppSupportContentFlag) 64 | { 65 | MMAPP_SUPPORT_NOCONTENT = 0x0, 66 | MMAPP_SUPPORT_TEXT = 0x1, 67 | MMAPP_SUPPORT_PICTURE = 0x2, 68 | MMAPP_SUPPORT_LOCATION = 0x4, 69 | MMAPP_SUPPORT_VIDEO = 0x8, 70 | MMAPP_SUPPORT_AUDIO = 0x10, 71 | MMAPP_SUPPORT_WEBPAGE = 0x20, 72 | 73 | // Suport File Type 74 | MMAPP_SUPPORT_DOC = 0x40, // doc 75 | MMAPP_SUPPORT_DOCX = 0x80, // docx 76 | MMAPP_SUPPORT_PPT = 0x100, // ppt 77 | MMAPP_SUPPORT_PPTX = 0x200, // pptx 78 | MMAPP_SUPPORT_XLS = 0x400, // xls 79 | MMAPP_SUPPORT_XLSX = 0x800, // xlsx 80 | MMAPP_SUPPORT_PDF = 0x1000, // pdf 81 | }; 82 | 83 | #pragma mark - BaseReq 84 | /*! @brief 该类为微信终端SDK所有请求类的基类 85 | * 86 | */ 87 | @interface BaseReq : NSObject 88 | 89 | /** 请求类型 */ 90 | @property (nonatomic, assign) int type; 91 | /** 由用户微信号和AppID组成的唯一标识,发送请求时第三方程序必须填写,用于校验微信用户是否换号登录*/ 92 | @property (nonatomic, retain) NSString* openID; 93 | 94 | @end 95 | 96 | 97 | 98 | #pragma mark - BaseResp 99 | /*! @brief 该类为微信终端SDK所有响应类的基类 100 | * 101 | */ 102 | @interface BaseResp : NSObject 103 | /** 错误码 */ 104 | @property (nonatomic, assign) int errCode; 105 | /** 错误提示字符串 */ 106 | @property (nonatomic, retain) NSString *errStr; 107 | /** 响应类型 */ 108 | @property (nonatomic, assign) int type; 109 | 110 | @end 111 | 112 | 113 | 114 | #pragma mark - WXMediaMessage 115 | @class WXMediaMessage; 116 | 117 | /*! @brief 第三方向微信终端发起支付的消息结构体 118 | * 119 | * 第三方向微信终端发起支付的消息结构体,微信终端处理后会向第三方返回处理结果 120 | * @see PayResp 121 | */ 122 | @interface PayReq : BaseReq 123 | 124 | /** 商家向财付通申请的商家id */ 125 | @property (nonatomic, retain) NSString *partnerId; 126 | /** 预支付订单 */ 127 | @property (nonatomic, retain) NSString *prepayId; 128 | /** 随机串,防重发 */ 129 | @property (nonatomic, retain) NSString *nonceStr; 130 | /** 时间戳,防重发 */ 131 | @property (nonatomic, assign) UInt32 timeStamp; 132 | /** 商家根据财付通文档填写的数据和签名 */ 133 | @property (nonatomic, retain) NSString *package; 134 | /** 商家根据微信开放平台文档对数据做的签名 */ 135 | @property (nonatomic, retain) NSString *sign; 136 | 137 | @end 138 | 139 | 140 | 141 | #pragma mark - PayResp 142 | /*! @brief 微信终端返回给第三方的关于支付结果的结构体 143 | * 144 | * 微信终端返回给第三方的关于支付结果的结构体 145 | */ 146 | @interface PayResp : BaseResp 147 | 148 | /** 财付通返回给商家的信息 */ 149 | @property (nonatomic, retain) NSString *returnKey; 150 | 151 | @end 152 | 153 | 154 | 155 | /*! @brief 第三方向微信终端发起拆企业红包的消息结构体 156 | * 157 | * 第三方向微信终端发起拆企业红包的消息结构体,微信终端处理后会向第三方返回处理结果 158 | * @see HBReq 159 | */ 160 | @interface HBReq : BaseReq 161 | 162 | /** 随机串,防重发 */ 163 | @property (nonatomic, retain) NSString *nonceStr; 164 | /** 时间戳,防重发 */ 165 | @property (nonatomic, assign) UInt32 timeStamp; 166 | /** 商家根据微信企业红包开发文档填写的数据和签名 */ 167 | @property (nonatomic, retain) NSString *package; 168 | /** 商家根据微信企业红包开发文档对数据做的签名 */ 169 | @property (nonatomic, retain) NSString *sign; 170 | 171 | @end 172 | 173 | 174 | 175 | #pragma mark - HBResp 176 | /*! @brief 微信终端返回给第三方的关于拆企业红包结果的结构体 177 | * 178 | * 微信终端返回给第三方的关于拆企业红包结果的结构体 179 | */ 180 | @interface HBResp : BaseResp 181 | 182 | @end 183 | 184 | 185 | 186 | 187 | #pragma mark - SendAuthReq 188 | /*! @brief 第三方程序向微信终端请求认证的消息结构 189 | * 190 | * 第三方程序要向微信申请认证,并请求某些权限,需要调用WXApi的sendReq成员函数, 191 | * 向微信终端发送一个SendAuthReq消息结构。微信终端处理完后会向第三方程序发送一个处理结果。 192 | * @see SendAuthResp 193 | */ 194 | @interface SendAuthReq : BaseReq 195 | /** 第三方程序要向微信申请认证,并请求某些权限,需要调用WXApi的sendReq成员函数,向微信终端发送一个SendAuthReq消息结构。微信终端处理完后会向第三方程序发送一个处理结果。 196 | * @see SendAuthResp 197 | * @note scope字符串长度不能超过1K 198 | */ 199 | @property (nonatomic, retain) NSString* scope; 200 | /** 第三方程序本身用来标识其请求的唯一性,最后跳转回第三方程序时,由微信终端回传。 201 | * @note state字符串长度不能超过1K 202 | */ 203 | @property (nonatomic, retain) NSString* state; 204 | @end 205 | 206 | 207 | 208 | #pragma mark - SendAuthResp 209 | /*! @brief 微信处理完第三方程序的认证和权限申请后向第三方程序回送的处理结果。 210 | * 211 | * 第三方程序要向微信申请认证,并请求某些权限,需要调用WXApi的sendReq成员函数,向微信终端发送一个SendAuthReq消息结构。 212 | * 微信终端处理完后会向第三方程序发送一个SendAuthResp。 213 | * @see onResp 214 | */ 215 | @interface SendAuthResp : BaseResp 216 | @property (nonatomic, retain) NSString* code; 217 | /** 第三方程序发送时用来标识其请求的唯一性的标志,由第三方程序调用sendReq时传入,由微信终端回传 218 | * @note state字符串长度不能超过1K 219 | */ 220 | @property (nonatomic, retain) NSString* state; 221 | @property (nonatomic, retain) NSString* lang; 222 | @property (nonatomic, retain) NSString* country; 223 | @end 224 | 225 | 226 | 227 | #pragma mark - SendMessageToWXReq 228 | /*! @brief 第三方程序发送消息至微信终端程序的消息结构体 229 | * 230 | * 第三方程序向微信发送信息需要传入SendMessageToWXReq结构体,信息类型包括文本消息和多媒体消息, 231 | * 分别对应于text和message成员。调用该方法后,微信处理完信息会向第三方程序发送一个处理结果。 232 | * @see SendMessageToWXResp 233 | */ 234 | @interface SendMessageToWXReq : BaseReq 235 | /** 发送消息的文本内容 236 | * @note 文本长度必须大于0且小于10K 237 | */ 238 | @property (nonatomic, retain) NSString* text; 239 | /** 发送消息的多媒体内容 240 | * @see WXMediaMessage 241 | */ 242 | @property (nonatomic, retain) WXMediaMessage* message; 243 | /** 发送消息的类型,包括文本消息和多媒体消息两种,两者只能选择其一,不能同时发送文本和多媒体消息 */ 244 | @property (nonatomic, assign) BOOL bText; 245 | /** 发送的目标场景,可以选择发送到会话(WXSceneSession)或者朋友圈(WXSceneTimeline)。 默认发送到会话。 246 | * @see WXScene 247 | */ 248 | @property (nonatomic, assign) int scene; 249 | 250 | @end 251 | 252 | 253 | 254 | #pragma mark - SendMessageToWXResp 255 | /*! @brief 微信终端向第三方程序返回的SendMessageToWXReq处理结果。 256 | * 257 | * 第三方程序向微信终端发送SendMessageToWXReq后,微信发送回来的处理结果,该结果用SendMessageToWXResp表示。 258 | */ 259 | @interface SendMessageToWXResp : BaseResp 260 | @property(nonatomic, retain) NSString* lang; 261 | @property(nonatomic, retain) NSString* country; 262 | @end 263 | 264 | 265 | 266 | #pragma mark - GetMessageFromWXReq 267 | /*! @brief 微信终端向第三方程序请求提供内容的消息结构体。 268 | * 269 | * 微信终端向第三方程序请求提供内容,微信终端会向第三方程序发送GetMessageFromWXReq消息结构体, 270 | * 需要第三方程序调用sendResp返回一个GetMessageFromWXResp消息结构体。 271 | */ 272 | @interface GetMessageFromWXReq : BaseReq 273 | @property (nonatomic, retain) NSString* lang; 274 | @property (nonatomic, retain) NSString* country; 275 | @end 276 | 277 | 278 | 279 | #pragma mark - GetMessageFromWXResp 280 | /*! @brief 微信终端向第三方程序请求提供内容,第三方程序向微信终端返回的消息结构体。 281 | * 282 | * 微信终端向第三方程序请求提供内容,第三方程序调用sendResp向微信终端返回一个GetMessageFromWXResp消息结构体。 283 | */ 284 | @interface GetMessageFromWXResp : BaseResp 285 | /** 向微信终端提供的文本内容 286 | @note 文本长度必须大于0且小于10K 287 | */ 288 | @property (nonatomic, retain) NSString* text; 289 | /** 向微信终端提供的多媒体内容。 290 | * @see WXMediaMessage 291 | */ 292 | @property (nonatomic, retain) WXMediaMessage* message; 293 | /** 向微信终端提供内容的消息类型,包括文本消息和多媒体消息两种,两者只能选择其一,不能同时发送文本和多媒体消息 */ 294 | @property (nonatomic, assign) BOOL bText; 295 | @end 296 | 297 | 298 | 299 | #pragma mark - ShowMessageFromWXReq 300 | /*! @brief 微信通知第三方程序,要求第三方程序显示的消息结构体。 301 | * 302 | * 微信需要通知第三方程序显示或处理某些内容时,会向第三方程序发送ShowMessageFromWXReq消息结构体。 303 | * 第三方程序处理完内容后调用sendResp向微信终端发送ShowMessageFromWXResp。 304 | */ 305 | @interface ShowMessageFromWXReq : BaseReq 306 | /** 微信终端向第三方程序发送的要求第三方程序处理的多媒体内容 307 | * @see WXMediaMessage 308 | */ 309 | @property (nonatomic, retain) WXMediaMessage* message; 310 | @property (nonatomic, retain) NSString* lang; 311 | @property (nonatomic, retain) NSString* country; 312 | @end 313 | 314 | 315 | 316 | #pragma mark - ShowMessageFromWXResp 317 | /*! @brief 微信通知第三方程序,要求第三方程序显示或处理某些消息,第三方程序处理完后向微信终端发送的处理结果。 318 | * 319 | * 微信需要通知第三方程序显示或处理某些内容时,会向第三方程序发送ShowMessageFromWXReq消息结构体。 320 | * 第三方程序处理完内容后调用sendResp向微信终端发送ShowMessageFromWXResp。 321 | */ 322 | @interface ShowMessageFromWXResp : BaseResp 323 | @end 324 | 325 | 326 | 327 | #pragma mark - LaunchFromWXReq 328 | /*! @brief 微信终端打开第三方程序携带的消息结构体 329 | * 330 | * 微信向第三方发送的结构体,第三方不需要返回 331 | */ 332 | @interface LaunchFromWXReq : BaseReq 333 | @property (nonatomic, retain) WXMediaMessage* message; 334 | @property (nonatomic, retain) NSString* lang; 335 | @property (nonatomic, retain) NSString* country; 336 | @end 337 | 338 | #pragma mark - OpenTempSessionReq 339 | /* ! @brief 第三方通知微信,打开临时会话 340 | * 341 | * 第三方通知微信,打开临时会话 342 | */ 343 | @interface OpenTempSessionReq : BaseReq 344 | /** 需要打开的用户名 345 | * @attention 长度不能超过512字节 346 | */ 347 | @property (nonatomic, retain) NSString* username; 348 | /** 开发者自定义参数,拉起临时会话后会发给开发者后台,可以用于识别场景 349 | * @attention 长度不能超过32位 350 | */ 351 | @property (nonatomic, retain) NSString* sessionFrom; 352 | @end 353 | 354 | #pragma mark - OpenWebviewReq 355 | /* ! @brief 第三方通知微信启动内部浏览器,打开指定网页 356 | * 357 | * 第三方通知微信启动内部浏览器,打开指定Url对应的网页 358 | */ 359 | @interface OpenWebviewReq : BaseReq 360 | /** 需要打开的网页对应的Url 361 | * @attention 长度不能超过1024 362 | */ 363 | @property(nonatomic,retain)NSString* url; 364 | 365 | @end 366 | 367 | #pragma mark - OpenWebviewResp 368 | /*! @brief 微信终端向第三方程序返回的OpenWebviewReq处理结果 369 | * 370 | * 第三方程序向微信终端发送OpenWebviewReq后,微信发送回来的处理结果,该结果用OpenWebviewResp表示 371 | */ 372 | @interface OpenWebviewResp : BaseResp 373 | 374 | @end 375 | 376 | 377 | #pragma mark - OpenTempSessionResp 378 | /*! @brief 微信终端向第三方程序返回的OpenTempSessionReq处理结果。 379 | * 380 | * 第三方程序向微信终端发送OpenTempSessionReq后,微信发送回来的处理结果,该结果用OpenTempSessionResp表示。 381 | */ 382 | @interface OpenTempSessionResp : BaseResp 383 | 384 | @end 385 | 386 | #pragma mark - OpenRankListReq 387 | /* ! @brief 第三方通知微信,打开硬件排行榜 388 | * 389 | * 第三方通知微信,打开硬件排行榜 390 | */ 391 | @interface OpenRankListReq : BaseReq 392 | 393 | @end 394 | 395 | #pragma mark - OpenRanklistResp 396 | /*! @brief 微信终端向第三方程序返回的OpenRankListReq处理结果。 397 | * 398 | * 第三方程序向微信终端发送OpenRankListReq后,微信发送回来的处理结果,该结果用OpenRankListResp表示。 399 | */ 400 | @interface OpenRankListResp : BaseResp 401 | 402 | @end 403 | 404 | #pragma mark - JumpToBizProfileReq 405 | /* ! @brief 第三方通知微信,打开指定微信号profile页面 406 | * 407 | * 第三方通知微信,打开指定微信号profile页面 408 | */ 409 | @interface JumpToBizProfileReq : BaseReq 410 | /** 跳转到该公众号的profile 411 | * @attention 长度不能超过512字节 412 | */ 413 | @property (nonatomic, retain) NSString* username; 414 | /** 如果用户加了该公众号为好友,extMsg会上传到服务器 415 | * @attention 长度不能超过1024字节 416 | */ 417 | @property (nonatomic, retain) NSString* extMsg; 418 | /** 419 | * 跳转的公众号类型 420 | * @see WXBizProfileType 421 | */ 422 | @property (nonatomic, assign) int profileType; 423 | @end 424 | 425 | 426 | 427 | #pragma mark - JumpToBizWebviewReq 428 | /* ! @brief 第三方通知微信,打开指定usrname的profile网页版 429 | * 430 | */ 431 | @interface JumpToBizWebviewReq : BaseReq 432 | /** 跳转的网页类型,目前只支持广告页 433 | * @see WXMPWebviewType 434 | */ 435 | @property(nonatomic, assign) int webType; 436 | /** 跳转到该公众号的profile网页版 437 | * @attention 长度不能超过512字节 438 | */ 439 | @property(nonatomic, retain) NSString* tousrname; 440 | /** 如果用户加了该公众号为好友,extMsg会上传到服务器 441 | * @attention 长度不能超过1024字节 442 | */ 443 | @property(nonatomic, retain) NSString* extMsg; 444 | 445 | @end 446 | 447 | #pragma mark - WXCardItem 448 | 449 | @interface WXCardItem : NSObject 450 | /** 卡id 451 | * @attention 长度不能超过1024字节 452 | */ 453 | @property (nonatomic,retain) NSString* cardId; 454 | /** ext信息 455 | * @attention 长度不能超过2024字节 456 | */ 457 | @property (nonatomic,retain) NSString* extMsg; 458 | /** 459 | * @attention 卡的状态,req不需要填。resp:0为未添加,1为已添加。 460 | */ 461 | @property (nonatomic,assign) UInt32 cardState; 462 | /** 463 | * @attention req不需要填,chooseCard返回的。 464 | */ 465 | @property (nonatomic,retain) NSString* encryptCode; 466 | /** 467 | * @attention req不需要填,chooseCard返回的。 468 | */ 469 | @property (nonatomic,retain) NSString* appID; 470 | @end; 471 | 472 | #pragma mark - AddCardToWXCardPackageReq 473 | /* ! @brief 请求添加卡券至微信卡包 474 | * 475 | */ 476 | 477 | @interface AddCardToWXCardPackageReq : BaseReq 478 | /** 卡列表 479 | * @attention 个数不能超过40个 类型WXCardItem 480 | */ 481 | @property (nonatomic,retain) NSArray* cardAry; 482 | 483 | @end 484 | 485 | 486 | #pragma mark - AddCardToWXCardPackageResp 487 | /** ! @brief 微信返回第三方添加卡券结果 488 | * 489 | */ 490 | 491 | @interface AddCardToWXCardPackageResp : BaseResp 492 | /** 卡列表 493 | * @attention 个数不能超过40个 类型WXCardItem 494 | */ 495 | @property (nonatomic,retain) NSArray* cardAry; 496 | @end 497 | 498 | #pragma mark - WXChooseCardReq 499 | /* ! @brief 请求从微信选取卡券 500 | * 501 | */ 502 | 503 | @interface WXChooseCardReq : BaseReq 504 | @property(nonatomic, strong) NSString *appID; 505 | @property(nonatomic, assign) UInt32 shopID; 506 | @property(nonatomic, assign) UInt32 canMultiSelect; 507 | @property(nonatomic, strong) NSString *cardType; 508 | @property(nonatomic, strong) NSString *cardTpID; 509 | @property(nonatomic, strong) NSString *signType; 510 | @property(nonatomic, strong) NSString *cardSign; 511 | @property(nonatomic, assign) UInt32 timeStamp; 512 | @property(nonatomic, strong) NSString *nonceStr; 513 | @end 514 | 515 | 516 | #pragma mark - WXChooseCardResp 517 | /** ! @brief 微信返回第三方请求选择卡券结果 518 | * 519 | */ 520 | 521 | @interface WXChooseCardResp : BaseResp 522 | @property (nonatomic,retain) NSArray* cardAry; 523 | @end 524 | 525 | #pragma mark - WXMediaMessage 526 | 527 | /*! @brief 多媒体消息结构体 528 | * 529 | * 用于微信终端和第三方程序之间传递消息的多媒体消息内容 530 | */ 531 | @interface WXMediaMessage : NSObject 532 | 533 | +(WXMediaMessage *) message; 534 | 535 | /** 标题 536 | * @note 长度不能超过512字节 537 | */ 538 | @property (nonatomic, retain) NSString *title; 539 | /** 描述内容 540 | * @note 长度不能超过1K 541 | */ 542 | @property (nonatomic, retain) NSString *description; 543 | /** 缩略图数据 544 | * @note 大小不能超过32K 545 | */ 546 | @property (nonatomic, retain) NSData *thumbData; 547 | /** 548 | * @note 长度不能超过64字节 549 | */ 550 | @property (nonatomic, retain) NSString *mediaTagName; 551 | /** 552 | * 553 | */ 554 | @property (nonatomic, retain) NSString *messageExt; 555 | @property (nonatomic, retain) NSString *messageAction; 556 | /** 557 | * 多媒体数据对象,可以为WXImageObject,WXMusicObject,WXVideoObject,WXWebpageObject等。 558 | */ 559 | @property (nonatomic, retain) id mediaObject; 560 | 561 | /*! @brief 设置消息缩略图的方法 562 | * 563 | * @param image 缩略图 564 | * @note 大小不能超过32K 565 | */ 566 | - (void) setThumbImage:(UIImage *)image; 567 | 568 | @end 569 | 570 | 571 | 572 | #pragma mark - WXImageObject 573 | /*! @brief 多媒体消息中包含的图片数据对象 574 | * 575 | * 微信终端和第三方程序之间传递消息中包含的图片数据对象。 576 | * @note imageData成员不能为空 577 | * @see WXMediaMessage 578 | */ 579 | @interface WXImageObject : NSObject 580 | /*! @brief 返回一个WXImageObject对象 581 | * 582 | * @note 返回的WXImageObject对象是自动释放的 583 | */ 584 | +(WXImageObject *) object; 585 | 586 | /** 图片真实数据内容 587 | * @note 大小不能超过10M 588 | */ 589 | @property (nonatomic, retain) NSData *imageData; 590 | 591 | @end 592 | 593 | 594 | #pragma mark - WXMusicObject 595 | /*! @brief 多媒体消息中包含的音乐数据对象 596 | * 597 | * 微信终端和第三方程序之间传递消息中包含的音乐数据对象。 598 | * @note musicUrl和musicLowBandUrl成员不能同时为空。 599 | * @see WXMediaMessage 600 | */ 601 | @interface WXMusicObject : NSObject 602 | /*! @brief 返回一个WXMusicObject对象 603 | * 604 | * @note 返回的WXMusicObject对象是自动释放的 605 | */ 606 | +(WXMusicObject *) object; 607 | 608 | /** 音乐网页的url地址 609 | * @note 长度不能超过10K 610 | */ 611 | @property (nonatomic, retain) NSString *musicUrl; 612 | /** 音乐lowband网页的url地址 613 | * @note 长度不能超过10K 614 | */ 615 | @property (nonatomic, retain) NSString *musicLowBandUrl; 616 | /** 音乐数据url地址 617 | * @note 长度不能超过10K 618 | */ 619 | @property (nonatomic, retain) NSString *musicDataUrl; 620 | 621 | /**音乐lowband数据url地址 622 | * @note 长度不能超过10K 623 | */ 624 | @property (nonatomic, retain) NSString *musicLowBandDataUrl; 625 | 626 | @end 627 | 628 | 629 | 630 | #pragma mark - WXVideoObject 631 | /*! @brief 多媒体消息中包含的视频数据对象 632 | * 633 | * 微信终端和第三方程序之间传递消息中包含的视频数据对象。 634 | * @note videoUrl和videoLowBandUrl不能同时为空。 635 | * @see WXMediaMessage 636 | */ 637 | @interface WXVideoObject : NSObject 638 | /*! @brief 返回一个WXVideoObject对象 639 | * 640 | * @note 返回的WXVideoObject对象是自动释放的 641 | */ 642 | +(WXVideoObject *) object; 643 | 644 | /** 视频网页的url地址 645 | * @note 长度不能超过10K 646 | */ 647 | @property (nonatomic, retain) NSString *videoUrl; 648 | /** 视频lowband网页的url地址 649 | * @note 长度不能超过10K 650 | */ 651 | @property (nonatomic, retain) NSString *videoLowBandUrl; 652 | 653 | @end 654 | 655 | 656 | 657 | #pragma mark - WXWebpageObject 658 | /*! @brief 多媒体消息中包含的网页数据对象 659 | * 660 | * 微信终端和第三方程序之间传递消息中包含的网页数据对象。 661 | * @see WXMediaMessage 662 | */ 663 | @interface WXWebpageObject : NSObject 664 | /*! @brief 返回一个WXWebpageObject对象 665 | * 666 | * @note 返回的WXWebpageObject对象是自动释放的 667 | */ 668 | +(WXWebpageObject *) object; 669 | 670 | /** 网页的url地址 671 | * @note 不能为空且长度不能超过10K 672 | */ 673 | @property (nonatomic, retain) NSString *webpageUrl; 674 | 675 | @end 676 | 677 | 678 | 679 | #pragma mark - WXAppExtendObject 680 | /*! @brief 多媒体消息中包含的App扩展数据对象 681 | * 682 | * 第三方程序向微信终端发送包含WXAppExtendObject的多媒体消息, 683 | * 微信需要处理该消息时,会调用该第三方程序来处理多媒体消息内容。 684 | * @note url,extInfo和fileData不能同时为空 685 | * @see WXMediaMessage 686 | */ 687 | @interface WXAppExtendObject : NSObject 688 | /*! @brief 返回一个WXAppExtendObject对象 689 | * 690 | * @note 返回的WXAppExtendObject对象是自动释放的 691 | */ 692 | +(WXAppExtendObject *) object; 693 | 694 | /** 若第三方程序不存在,微信终端会打开该url所指的App下载地址 695 | * @note 长度不能超过10K 696 | */ 697 | @property (nonatomic, retain) NSString *url; 698 | /** 第三方程序自定义简单数据,微信终端会回传给第三方程序处理 699 | * @note 长度不能超过2K 700 | */ 701 | @property (nonatomic, retain) NSString *extInfo; 702 | /** App文件数据,该数据发送给微信好友,微信好友需要点击后下载数据,微信终端会回传给第三方程序处理 703 | * @note 大小不能超过10M 704 | */ 705 | @property (nonatomic, retain) NSData *fileData; 706 | 707 | @end 708 | 709 | 710 | 711 | #pragma mark - WXEmoticonObject 712 | /*! @brief 多媒体消息中包含的表情数据对象 713 | * 714 | * 微信终端和第三方程序之间传递消息中包含的表情数据对象。 715 | * @see WXMediaMessage 716 | */ 717 | @interface WXEmoticonObject : NSObject 718 | 719 | /*! @brief 返回一个WXEmoticonObject对象 720 | * 721 | * @note 返回的WXEmoticonObject对象是自动释放的 722 | */ 723 | +(WXEmoticonObject *) object; 724 | 725 | /** 表情真实数据内容 726 | * @note 大小不能超过10M 727 | */ 728 | @property (nonatomic, retain) NSData *emoticonData; 729 | 730 | @end 731 | 732 | 733 | 734 | #pragma mark - WXFileObject 735 | /*! @brief 多媒体消息中包含的文件数据对象 736 | * 737 | * @see WXMediaMessage 738 | */ 739 | @interface WXFileObject : NSObject 740 | 741 | /*! @brief 返回一个WXFileObject对象 742 | * 743 | * @note 返回的WXFileObject对象是自动释放的 744 | */ 745 | +(WXFileObject *) object; 746 | 747 | /** 文件后缀名 748 | * @note 长度不超过64字节 749 | */ 750 | @property (nonatomic, retain) NSString *fileExtension; 751 | 752 | /** 文件真实数据内容 753 | * @note 大小不能超过10M 754 | */ 755 | @property (nonatomic, retain) NSData *fileData; 756 | 757 | @end 758 | 759 | 760 | #pragma mark - WXLocationObject 761 | /*! @brief 多媒体消息中包含的地理位置数据对象 762 | * 763 | * 微信终端和第三方程序之间传递消息中包含的地理位置数据对象。 764 | * @see WXMediaMessage 765 | */ 766 | @interface WXLocationObject : NSObject 767 | 768 | /*! @brief 返回一个WXLocationObject对象 769 | * 770 | * @note 返回的WXLocationObject对象是自动释放的 771 | */ 772 | +(WXLocationObject *) object; 773 | 774 | /** 地理位置信息 775 | * @note 经纬度 776 | */ 777 | @property (nonatomic, assign) double lng; //经度 778 | @property (nonatomic, assign) double lat; //纬度 779 | 780 | @end 781 | 782 | 783 | #pragma mark - WXTextObject 784 | /*! @brief 多媒体消息中包含的文本数据对象 785 | * 786 | * 微信终端和第三方程序之间传递消息中包含的文本数据对象。 787 | * @see WXMediaMessage 788 | */ 789 | @interface WXTextObject : NSObject 790 | 791 | /*! @brief 返回一个WXTextObject对象 792 | * 793 | * @note 返回的WXTextObject对象是自动释放的 794 | */ 795 | +(WXTextObject *) object; 796 | 797 | /** 地理位置信息 798 | * @note 文本内容 799 | */ 800 | @property (nonatomic, retain) NSString *contentText; 801 | 802 | @end 803 | 804 | -------------------------------------------------------------------------------- /Pods/libWeChatSDK/WechatAuthSDK.h: -------------------------------------------------------------------------------- 1 | // 2 | // WechatAuthSDK.h 3 | // WechatAuthSDK 4 | // 5 | // Created by 李凯 on 13-11-29. 6 | // Copyright (c) 2013年 Tencent. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | enum AuthErrCode { 13 | WechatAuth_Err_Ok = 0, //Auth成功 14 | WechatAuth_Err_NormalErr = -1, //普通错误 15 | WechatAuth_Err_NetworkErr = -2, //网络错误 16 | WechatAuth_Err_GetQrcodeFailed = -3, //获取二维码失败 17 | WechatAuth_Err_Cancel = -4, //用户取消授权 18 | WechatAuth_Err_Timeout = -5, //超时 19 | }; 20 | 21 | @protocol WechatAuthAPIDelegate 22 | @optional 23 | 24 | - (void)onAuthGotQrcode:(UIImage *)image; //得到二维码 25 | - (void)onQrcodeScanned; //二维码被扫描 26 | - (void)onAuthFinish:(int)errCode AuthCode:(NSString *)authCode; //成功登录 27 | 28 | @end 29 | 30 | @interface WechatAuthSDK : NSObject{ 31 | NSString *_sdkVersion; 32 | __weak id _delegate; 33 | } 34 | 35 | @property(nonatomic, weak) id delegate; 36 | @property(nonatomic, readonly) NSString *sdkVersion; //authSDK版本号 37 | 38 | /*! @brief 发送登录请求,等待WechatAuthAPIDelegate回调 39 | * 40 | * @param appId 微信开发者ID 41 | * @param nonceStr 一个随机的尽量不重复的字符串,用来使得每次的signature不同 42 | * @param timeStamp 时间戳 43 | * @param scope 应用授权作用域,拥有多个作用域用逗号(,)分隔 44 | * @param signature 签名 45 | * @param schemeData 会在扫码后拼在scheme后 46 | * @return 成功返回YES,失败返回NO 47 | 注:该实现只保证同时只有一个Auth在运行,Auth未完成或未Stop再次调用Auth接口时会返回NO。 48 | */ 49 | 50 | - (BOOL)Auth:(NSString *)appId 51 | nonceStr:(NSString *)nonceStr 52 | timeStamp:(NSString*)timeStamp 53 | scope:(NSString *)scope 54 | signature:(NSString *)signature 55 | schemeData:(NSString *)schemeData; 56 | 57 | 58 | /*! @brief 暂停登录请求 59 | * 60 | * @return 成功返回YES,失败返回NO。 61 | */ 62 | - (BOOL)StopAuth; 63 | 64 | @end 65 | -------------------------------------------------------------------------------- /Pods/libWeChatSDK/libWeChatSDK.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhouhao27/WeixinActivitySwift/25e0c6c34a7a75c6197cc4e2da802c1961d8bc66/Pods/libWeChatSDK/libWeChatSDK.a -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | #WeixinActivitySwift 2 | 3 | Rewrite [this project](https://github.com/iDay/WeixinActivity) in Swift 4 | 5 | Using CocoaPods for [libWeChatSDK](https://cocoapods.org/pods/libWeChatSDK) 6 | 7 | 8 | 9 | 10 | #Installation 11 | 12 | - Clone the repository 13 | - pod install 14 | 15 | #TODO 16 | 17 | - To package it in CocoaPods and Carthage 18 | -------------------------------------------------------------------------------- /WeixinActivitySwift.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 3842E9A81DF122AF0032483B /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3842E99F1DF122AF0032483B /* AppDelegate.swift */; }; 11 | 3842E9A91DF122AF0032483B /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3842E9A01DF122AF0032483B /* Assets.xcassets */; }; 12 | 3842E9AA1DF122AF0032483B /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3842E9A21DF122AF0032483B /* LaunchScreen.storyboard */; }; 13 | 3842E9AB1DF122AF0032483B /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3842E9A41DF122AF0032483B /* Main.storyboard */; }; 14 | 3842E9AD1DF122AF0032483B /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3842E9A71DF122AF0032483B /* ViewController.swift */; }; 15 | 3842E9B11DF140D90032483B /* WeixinActivityBase.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3842E9B01DF140D90032483B /* WeixinActivityBase.swift */; }; 16 | 3842E9B41DF151620032483B /* WeixinTimelineActivity.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3842E9B31DF151620032483B /* WeixinTimelineActivity.swift */; }; 17 | 3842E9B61DF154370032483B /* WeixinSessionActivity.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3842E9B51DF154370032483B /* WeixinSessionActivity.swift */; }; 18 | 3842E9C01DF159EA0032483B /* icon_session-8.png in Resources */ = {isa = PBXBuildFile; fileRef = 3842E9B81DF159EA0032483B /* icon_session-8.png */; }; 19 | 3842E9C11DF159EA0032483B /* icon_session-8@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 3842E9B91DF159EA0032483B /* icon_session-8@2x.png */; }; 20 | 3842E9C21DF159EA0032483B /* icon_session.png in Resources */ = {isa = PBXBuildFile; fileRef = 3842E9BA1DF159EA0032483B /* icon_session.png */; }; 21 | 3842E9C31DF159EA0032483B /* icon_session@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 3842E9BB1DF159EA0032483B /* icon_session@2x.png */; }; 22 | 3842E9C41DF159EA0032483B /* icon_timeline-8.png in Resources */ = {isa = PBXBuildFile; fileRef = 3842E9BC1DF159EA0032483B /* icon_timeline-8.png */; }; 23 | 3842E9C51DF159EA0032483B /* icon_timeline-8@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 3842E9BD1DF159EA0032483B /* icon_timeline-8@2x.png */; }; 24 | 3842E9C61DF159EA0032483B /* icon_timeline.png in Resources */ = {isa = PBXBuildFile; fileRef = 3842E9BE1DF159EA0032483B /* icon_timeline.png */; }; 25 | 3842E9C71DF159EA0032483B /* icon_timeline@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 3842E9BF1DF159EA0032483B /* icon_timeline@2x.png */; }; 26 | 9F732914B4DF3883EC800819 /* Pods_WeixinActivitySwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4DCDD334616B98277DD77115 /* Pods_WeixinActivitySwift.framework */; }; 27 | /* End PBXBuildFile section */ 28 | 29 | /* Begin PBXFileReference section */ 30 | 3842E9891DF121970032483B /* WeixinActivitySwift.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = WeixinActivitySwift.app; sourceTree = BUILT_PRODUCTS_DIR; }; 31 | 3842E99F1DF122AF0032483B /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 32 | 3842E9A01DF122AF0032483B /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 33 | 3842E9A31DF122AF0032483B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = LaunchScreen.storyboard; sourceTree = ""; }; 34 | 3842E9A51DF122AF0032483B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Main.storyboard; sourceTree = ""; }; 35 | 3842E9A61DF122AF0032483B /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 36 | 3842E9A71DF122AF0032483B /* ViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 37 | 3842E9AE1DF122D80032483B /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 38 | 3842E9B01DF140D90032483B /* WeixinActivityBase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WeixinActivityBase.swift; sourceTree = ""; }; 39 | 3842E9B21DF141CC0032483B /* ObjectiveC-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ObjectiveC-Bridging-Header.h"; sourceTree = ""; }; 40 | 3842E9B31DF151620032483B /* WeixinTimelineActivity.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WeixinTimelineActivity.swift; sourceTree = ""; }; 41 | 3842E9B51DF154370032483B /* WeixinSessionActivity.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WeixinSessionActivity.swift; sourceTree = ""; }; 42 | 3842E9B81DF159EA0032483B /* icon_session-8.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon_session-8.png"; sourceTree = ""; }; 43 | 3842E9B91DF159EA0032483B /* icon_session-8@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon_session-8@2x.png"; sourceTree = ""; }; 44 | 3842E9BA1DF159EA0032483B /* icon_session.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon_session.png; sourceTree = ""; }; 45 | 3842E9BB1DF159EA0032483B /* icon_session@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon_session@2x.png"; sourceTree = ""; }; 46 | 3842E9BC1DF159EA0032483B /* icon_timeline-8.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon_timeline-8.png"; sourceTree = ""; }; 47 | 3842E9BD1DF159EA0032483B /* icon_timeline-8@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon_timeline-8@2x.png"; sourceTree = ""; }; 48 | 3842E9BE1DF159EA0032483B /* icon_timeline.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon_timeline.png; sourceTree = ""; }; 49 | 3842E9BF1DF159EA0032483B /* icon_timeline@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon_timeline@2x.png"; sourceTree = ""; }; 50 | 3F3C73AF93EF1E76AADCED9E /* Pods-WeixinActivitySwift.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WeixinActivitySwift.debug.xcconfig"; path = "Pods/Target Support Files/Pods-WeixinActivitySwift/Pods-WeixinActivitySwift.debug.xcconfig"; sourceTree = ""; }; 51 | 4DCDD334616B98277DD77115 /* Pods_WeixinActivitySwift.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_WeixinActivitySwift.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | 542743D01F4AE3714B99DEC6 /* Pods-WeixinActivitySwift.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WeixinActivitySwift.release.xcconfig"; path = "Pods/Target Support Files/Pods-WeixinActivitySwift/Pods-WeixinActivitySwift.release.xcconfig"; sourceTree = ""; }; 53 | /* End PBXFileReference section */ 54 | 55 | /* Begin PBXFrameworksBuildPhase section */ 56 | 3842E9861DF121970032483B /* Frameworks */ = { 57 | isa = PBXFrameworksBuildPhase; 58 | buildActionMask = 2147483647; 59 | files = ( 60 | 9F732914B4DF3883EC800819 /* Pods_WeixinActivitySwift.framework in Frameworks */, 61 | ); 62 | runOnlyForDeploymentPostprocessing = 0; 63 | }; 64 | /* End PBXFrameworksBuildPhase section */ 65 | 66 | /* Begin PBXGroup section */ 67 | 007FBC61FFB3BBBD3B93A614 /* Pods */ = { 68 | isa = PBXGroup; 69 | children = ( 70 | 3F3C73AF93EF1E76AADCED9E /* Pods-WeixinActivitySwift.debug.xcconfig */, 71 | 542743D01F4AE3714B99DEC6 /* Pods-WeixinActivitySwift.release.xcconfig */, 72 | ); 73 | name = Pods; 74 | sourceTree = ""; 75 | }; 76 | 3842E9801DF121970032483B = { 77 | isa = PBXGroup; 78 | children = ( 79 | 3842E9AE1DF122D80032483B /* README.md */, 80 | 3842E99E1DF122860032483B /* WeixinActivitySwiftDemo */, 81 | 3842E98B1DF121970032483B /* WeixinActivitySwift */, 82 | 3842E98A1DF121970032483B /* Products */, 83 | 007FBC61FFB3BBBD3B93A614 /* Pods */, 84 | 5E7827159A4922FA28282FBB /* Frameworks */, 85 | ); 86 | sourceTree = ""; 87 | }; 88 | 3842E98A1DF121970032483B /* Products */ = { 89 | isa = PBXGroup; 90 | children = ( 91 | 3842E9891DF121970032483B /* WeixinActivitySwift.app */, 92 | ); 93 | name = Products; 94 | sourceTree = ""; 95 | }; 96 | 3842E98B1DF121970032483B /* WeixinActivitySwift */ = { 97 | isa = PBXGroup; 98 | children = ( 99 | 3842E9B71DF159EA0032483B /* Resources */, 100 | 3842E9B01DF140D90032483B /* WeixinActivityBase.swift */, 101 | 3842E9B21DF141CC0032483B /* ObjectiveC-Bridging-Header.h */, 102 | 3842E9B31DF151620032483B /* WeixinTimelineActivity.swift */, 103 | 3842E9B51DF154370032483B /* WeixinSessionActivity.swift */, 104 | ); 105 | path = WeixinActivitySwift; 106 | sourceTree = ""; 107 | }; 108 | 3842E99E1DF122860032483B /* WeixinActivitySwiftDemo */ = { 109 | isa = PBXGroup; 110 | children = ( 111 | 3842E99F1DF122AF0032483B /* AppDelegate.swift */, 112 | 3842E9A01DF122AF0032483B /* Assets.xcassets */, 113 | 3842E9A11DF122AF0032483B /* Base.lproj */, 114 | 3842E9A61DF122AF0032483B /* Info.plist */, 115 | 3842E9A71DF122AF0032483B /* ViewController.swift */, 116 | ); 117 | path = WeixinActivitySwiftDemo; 118 | sourceTree = ""; 119 | }; 120 | 3842E9A11DF122AF0032483B /* Base.lproj */ = { 121 | isa = PBXGroup; 122 | children = ( 123 | 3842E9A21DF122AF0032483B /* LaunchScreen.storyboard */, 124 | 3842E9A41DF122AF0032483B /* Main.storyboard */, 125 | ); 126 | path = Base.lproj; 127 | sourceTree = ""; 128 | }; 129 | 3842E9B71DF159EA0032483B /* Resources */ = { 130 | isa = PBXGroup; 131 | children = ( 132 | 3842E9B81DF159EA0032483B /* icon_session-8.png */, 133 | 3842E9B91DF159EA0032483B /* icon_session-8@2x.png */, 134 | 3842E9BA1DF159EA0032483B /* icon_session.png */, 135 | 3842E9BB1DF159EA0032483B /* icon_session@2x.png */, 136 | 3842E9BC1DF159EA0032483B /* icon_timeline-8.png */, 137 | 3842E9BD1DF159EA0032483B /* icon_timeline-8@2x.png */, 138 | 3842E9BE1DF159EA0032483B /* icon_timeline.png */, 139 | 3842E9BF1DF159EA0032483B /* icon_timeline@2x.png */, 140 | ); 141 | path = Resources; 142 | sourceTree = ""; 143 | }; 144 | 5E7827159A4922FA28282FBB /* Frameworks */ = { 145 | isa = PBXGroup; 146 | children = ( 147 | 4DCDD334616B98277DD77115 /* Pods_WeixinActivitySwift.framework */, 148 | ); 149 | name = Frameworks; 150 | sourceTree = ""; 151 | }; 152 | /* End PBXGroup section */ 153 | 154 | /* Begin PBXNativeTarget section */ 155 | 3842E9881DF121970032483B /* WeixinActivitySwift */ = { 156 | isa = PBXNativeTarget; 157 | buildConfigurationList = 3842E99B1DF121980032483B /* Build configuration list for PBXNativeTarget "WeixinActivitySwift" */; 158 | buildPhases = ( 159 | 58D153AE87D4CA328B723B63 /* [CP] Check Pods Manifest.lock */, 160 | 3842E9851DF121970032483B /* Sources */, 161 | 3842E9861DF121970032483B /* Frameworks */, 162 | 3842E9871DF121970032483B /* Resources */, 163 | 633C541E0721020323C5D6D0 /* [CP] Embed Pods Frameworks */, 164 | D326FF9C17E21308D620D78F /* [CP] Copy Pods Resources */, 165 | ); 166 | buildRules = ( 167 | ); 168 | dependencies = ( 169 | ); 170 | name = WeixinActivitySwift; 171 | productName = WeixinActivitySwift; 172 | productReference = 3842E9891DF121970032483B /* WeixinActivitySwift.app */; 173 | productType = "com.apple.product-type.application"; 174 | }; 175 | /* End PBXNativeTarget section */ 176 | 177 | /* Begin PBXProject section */ 178 | 3842E9811DF121970032483B /* Project object */ = { 179 | isa = PBXProject; 180 | attributes = { 181 | LastSwiftUpdateCheck = 0810; 182 | LastUpgradeCheck = 0810; 183 | ORGANIZATIONNAME = "Zhou Hao"; 184 | TargetAttributes = { 185 | 3842E9881DF121970032483B = { 186 | CreatedOnToolsVersion = 8.1; 187 | DevelopmentTeam = N39FB4CHYV; 188 | LastSwiftMigration = 0810; 189 | ProvisioningStyle = Automatic; 190 | }; 191 | }; 192 | }; 193 | buildConfigurationList = 3842E9841DF121970032483B /* Build configuration list for PBXProject "WeixinActivitySwift" */; 194 | compatibilityVersion = "Xcode 3.2"; 195 | developmentRegion = English; 196 | hasScannedForEncodings = 0; 197 | knownRegions = ( 198 | en, 199 | Base, 200 | ); 201 | mainGroup = 3842E9801DF121970032483B; 202 | productRefGroup = 3842E98A1DF121970032483B /* Products */; 203 | projectDirPath = ""; 204 | projectRoot = ""; 205 | targets = ( 206 | 3842E9881DF121970032483B /* WeixinActivitySwift */, 207 | ); 208 | }; 209 | /* End PBXProject section */ 210 | 211 | /* Begin PBXResourcesBuildPhase section */ 212 | 3842E9871DF121970032483B /* Resources */ = { 213 | isa = PBXResourcesBuildPhase; 214 | buildActionMask = 2147483647; 215 | files = ( 216 | 3842E9AB1DF122AF0032483B /* Main.storyboard in Resources */, 217 | 3842E9C21DF159EA0032483B /* icon_session.png in Resources */, 218 | 3842E9C41DF159EA0032483B /* icon_timeline-8.png in Resources */, 219 | 3842E9C51DF159EA0032483B /* icon_timeline-8@2x.png in Resources */, 220 | 3842E9A91DF122AF0032483B /* Assets.xcassets in Resources */, 221 | 3842E9C61DF159EA0032483B /* icon_timeline.png in Resources */, 222 | 3842E9C01DF159EA0032483B /* icon_session-8.png in Resources */, 223 | 3842E9C11DF159EA0032483B /* icon_session-8@2x.png in Resources */, 224 | 3842E9C31DF159EA0032483B /* icon_session@2x.png in Resources */, 225 | 3842E9C71DF159EA0032483B /* icon_timeline@2x.png in Resources */, 226 | 3842E9AA1DF122AF0032483B /* LaunchScreen.storyboard in Resources */, 227 | ); 228 | runOnlyForDeploymentPostprocessing = 0; 229 | }; 230 | /* End PBXResourcesBuildPhase section */ 231 | 232 | /* Begin PBXShellScriptBuildPhase section */ 233 | 58D153AE87D4CA328B723B63 /* [CP] Check Pods Manifest.lock */ = { 234 | isa = PBXShellScriptBuildPhase; 235 | buildActionMask = 2147483647; 236 | files = ( 237 | ); 238 | inputPaths = ( 239 | ); 240 | name = "[CP] Check Pods Manifest.lock"; 241 | outputPaths = ( 242 | ); 243 | runOnlyForDeploymentPostprocessing = 0; 244 | shellPath = /bin/sh; 245 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n"; 246 | showEnvVarsInLog = 0; 247 | }; 248 | 633C541E0721020323C5D6D0 /* [CP] Embed Pods Frameworks */ = { 249 | isa = PBXShellScriptBuildPhase; 250 | buildActionMask = 2147483647; 251 | files = ( 252 | ); 253 | inputPaths = ( 254 | ); 255 | name = "[CP] Embed Pods Frameworks"; 256 | outputPaths = ( 257 | ); 258 | runOnlyForDeploymentPostprocessing = 0; 259 | shellPath = /bin/sh; 260 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-WeixinActivitySwift/Pods-WeixinActivitySwift-frameworks.sh\"\n"; 261 | showEnvVarsInLog = 0; 262 | }; 263 | D326FF9C17E21308D620D78F /* [CP] Copy Pods Resources */ = { 264 | isa = PBXShellScriptBuildPhase; 265 | buildActionMask = 2147483647; 266 | files = ( 267 | ); 268 | inputPaths = ( 269 | ); 270 | name = "[CP] Copy Pods Resources"; 271 | outputPaths = ( 272 | ); 273 | runOnlyForDeploymentPostprocessing = 0; 274 | shellPath = /bin/sh; 275 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-WeixinActivitySwift/Pods-WeixinActivitySwift-resources.sh\"\n"; 276 | showEnvVarsInLog = 0; 277 | }; 278 | /* End PBXShellScriptBuildPhase section */ 279 | 280 | /* Begin PBXSourcesBuildPhase section */ 281 | 3842E9851DF121970032483B /* Sources */ = { 282 | isa = PBXSourcesBuildPhase; 283 | buildActionMask = 2147483647; 284 | files = ( 285 | 3842E9B61DF154370032483B /* WeixinSessionActivity.swift in Sources */, 286 | 3842E9B11DF140D90032483B /* WeixinActivityBase.swift in Sources */, 287 | 3842E9AD1DF122AF0032483B /* ViewController.swift in Sources */, 288 | 3842E9A81DF122AF0032483B /* AppDelegate.swift in Sources */, 289 | 3842E9B41DF151620032483B /* WeixinTimelineActivity.swift in Sources */, 290 | ); 291 | runOnlyForDeploymentPostprocessing = 0; 292 | }; 293 | /* End PBXSourcesBuildPhase section */ 294 | 295 | /* Begin PBXVariantGroup section */ 296 | 3842E9A21DF122AF0032483B /* LaunchScreen.storyboard */ = { 297 | isa = PBXVariantGroup; 298 | children = ( 299 | 3842E9A31DF122AF0032483B /* Base */, 300 | ); 301 | name = LaunchScreen.storyboard; 302 | sourceTree = ""; 303 | }; 304 | 3842E9A41DF122AF0032483B /* Main.storyboard */ = { 305 | isa = PBXVariantGroup; 306 | children = ( 307 | 3842E9A51DF122AF0032483B /* Base */, 308 | ); 309 | name = Main.storyboard; 310 | sourceTree = ""; 311 | }; 312 | /* End PBXVariantGroup section */ 313 | 314 | /* Begin XCBuildConfiguration section */ 315 | 3842E9991DF121980032483B /* Debug */ = { 316 | isa = XCBuildConfiguration; 317 | buildSettings = { 318 | ALWAYS_SEARCH_USER_PATHS = NO; 319 | CLANG_ANALYZER_NONNULL = YES; 320 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 321 | CLANG_CXX_LIBRARY = "libc++"; 322 | CLANG_ENABLE_MODULES = YES; 323 | CLANG_ENABLE_OBJC_ARC = YES; 324 | CLANG_WARN_BOOL_CONVERSION = YES; 325 | CLANG_WARN_CONSTANT_CONVERSION = YES; 326 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 327 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 328 | CLANG_WARN_EMPTY_BODY = YES; 329 | CLANG_WARN_ENUM_CONVERSION = YES; 330 | CLANG_WARN_INFINITE_RECURSION = YES; 331 | CLANG_WARN_INT_CONVERSION = YES; 332 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 333 | CLANG_WARN_SUSPICIOUS_MOVES = YES; 334 | CLANG_WARN_UNREACHABLE_CODE = YES; 335 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 336 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 337 | COPY_PHASE_STRIP = NO; 338 | DEBUG_INFORMATION_FORMAT = dwarf; 339 | ENABLE_STRICT_OBJC_MSGSEND = YES; 340 | ENABLE_TESTABILITY = YES; 341 | GCC_C_LANGUAGE_STANDARD = gnu99; 342 | GCC_DYNAMIC_NO_PIC = NO; 343 | GCC_NO_COMMON_BLOCKS = YES; 344 | GCC_OPTIMIZATION_LEVEL = 0; 345 | GCC_PREPROCESSOR_DEFINITIONS = ( 346 | "DEBUG=1", 347 | "$(inherited)", 348 | ); 349 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 350 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 351 | GCC_WARN_UNDECLARED_SELECTOR = YES; 352 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 353 | GCC_WARN_UNUSED_FUNCTION = YES; 354 | GCC_WARN_UNUSED_VARIABLE = YES; 355 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 356 | MTL_ENABLE_DEBUG_INFO = YES; 357 | ONLY_ACTIVE_ARCH = YES; 358 | SDKROOT = iphoneos; 359 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 360 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 361 | }; 362 | name = Debug; 363 | }; 364 | 3842E99A1DF121980032483B /* Release */ = { 365 | isa = XCBuildConfiguration; 366 | buildSettings = { 367 | ALWAYS_SEARCH_USER_PATHS = NO; 368 | CLANG_ANALYZER_NONNULL = YES; 369 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 370 | CLANG_CXX_LIBRARY = "libc++"; 371 | CLANG_ENABLE_MODULES = YES; 372 | CLANG_ENABLE_OBJC_ARC = YES; 373 | CLANG_WARN_BOOL_CONVERSION = YES; 374 | CLANG_WARN_CONSTANT_CONVERSION = YES; 375 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 376 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 377 | CLANG_WARN_EMPTY_BODY = YES; 378 | CLANG_WARN_ENUM_CONVERSION = YES; 379 | CLANG_WARN_INFINITE_RECURSION = YES; 380 | CLANG_WARN_INT_CONVERSION = YES; 381 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 382 | CLANG_WARN_SUSPICIOUS_MOVES = YES; 383 | CLANG_WARN_UNREACHABLE_CODE = YES; 384 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 385 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 386 | COPY_PHASE_STRIP = NO; 387 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 388 | ENABLE_NS_ASSERTIONS = NO; 389 | ENABLE_STRICT_OBJC_MSGSEND = YES; 390 | GCC_C_LANGUAGE_STANDARD = gnu99; 391 | GCC_NO_COMMON_BLOCKS = YES; 392 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 393 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 394 | GCC_WARN_UNDECLARED_SELECTOR = YES; 395 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 396 | GCC_WARN_UNUSED_FUNCTION = YES; 397 | GCC_WARN_UNUSED_VARIABLE = YES; 398 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 399 | MTL_ENABLE_DEBUG_INFO = NO; 400 | SDKROOT = iphoneos; 401 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 402 | VALIDATE_PRODUCT = YES; 403 | }; 404 | name = Release; 405 | }; 406 | 3842E99C1DF121980032483B /* Debug */ = { 407 | isa = XCBuildConfiguration; 408 | baseConfigurationReference = 3F3C73AF93EF1E76AADCED9E /* Pods-WeixinActivitySwift.debug.xcconfig */; 409 | buildSettings = { 410 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 411 | CLANG_ENABLE_MODULES = YES; 412 | DEVELOPMENT_TEAM = N39FB4CHYV; 413 | INFOPLIST_FILE = "$(SRCROOT)/WeixinActivitySwiftDemo/Info.plist"; 414 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 415 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 416 | PRODUCT_BUNDLE_IDENTIFIER = com.wowtv.WeixinActivitySwift; 417 | PRODUCT_NAME = "$(TARGET_NAME)"; 418 | SWIFT_OBJC_BRIDGING_HEADER = "WeixinActivitySwift/ObjectiveC-Bridging-Header.h"; 419 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 420 | SWIFT_VERSION = 3.0; 421 | }; 422 | name = Debug; 423 | }; 424 | 3842E99D1DF121980032483B /* Release */ = { 425 | isa = XCBuildConfiguration; 426 | baseConfigurationReference = 542743D01F4AE3714B99DEC6 /* Pods-WeixinActivitySwift.release.xcconfig */; 427 | buildSettings = { 428 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 429 | CLANG_ENABLE_MODULES = YES; 430 | DEVELOPMENT_TEAM = N39FB4CHYV; 431 | INFOPLIST_FILE = "$(SRCROOT)/WeixinActivitySwiftDemo/Info.plist"; 432 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 433 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 434 | PRODUCT_BUNDLE_IDENTIFIER = com.wowtv.WeixinActivitySwift; 435 | PRODUCT_NAME = "$(TARGET_NAME)"; 436 | SWIFT_OBJC_BRIDGING_HEADER = "WeixinActivitySwift/ObjectiveC-Bridging-Header.h"; 437 | SWIFT_VERSION = 3.0; 438 | }; 439 | name = Release; 440 | }; 441 | /* End XCBuildConfiguration section */ 442 | 443 | /* Begin XCConfigurationList section */ 444 | 3842E9841DF121970032483B /* Build configuration list for PBXProject "WeixinActivitySwift" */ = { 445 | isa = XCConfigurationList; 446 | buildConfigurations = ( 447 | 3842E9991DF121980032483B /* Debug */, 448 | 3842E99A1DF121980032483B /* Release */, 449 | ); 450 | defaultConfigurationIsVisible = 0; 451 | defaultConfigurationName = Release; 452 | }; 453 | 3842E99B1DF121980032483B /* Build configuration list for PBXNativeTarget "WeixinActivitySwift" */ = { 454 | isa = XCConfigurationList; 455 | buildConfigurations = ( 456 | 3842E99C1DF121980032483B /* Debug */, 457 | 3842E99D1DF121980032483B /* Release */, 458 | ); 459 | defaultConfigurationIsVisible = 0; 460 | defaultConfigurationName = Release; 461 | }; 462 | /* End XCConfigurationList section */ 463 | }; 464 | rootObject = 3842E9811DF121970032483B /* Project object */; 465 | } 466 | -------------------------------------------------------------------------------- /WeixinActivitySwift.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /WeixinActivitySwift.xcodeproj/xcuserdata/zhouhao.xcuserdatad/xcschemes/WeixinActivitySwift.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /WeixinActivitySwift.xcodeproj/xcuserdata/zhouhao.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | WeixinActivitySwift.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 3842E9881DF121970032483B 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /WeixinActivitySwift.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /WeixinActivitySwift.xcworkspace/xcuserdata/zhouhao.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /WeixinActivitySwift/ObjectiveC-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | // 2 | // ObjectiveC-Bridging-Header.h 3 | // WeixinActivitySwift 4 | // 5 | // Created by Zhou Hao on 02/12/16. 6 | // Copyright © 2016年 Zhou Hao. All rights reserved. 7 | // 8 | 9 | #ifndef ObjectiveC_Bridging_Header_h 10 | #define ObjectiveC_Bridging_Header_h 11 | 12 | #import 13 | #import "WXApi.h" 14 | 15 | #endif /* ObjectiveC_Bridging_Header_h */ 16 | -------------------------------------------------------------------------------- /WeixinActivitySwift/Resources/icon_session-8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhouhao27/WeixinActivitySwift/25e0c6c34a7a75c6197cc4e2da802c1961d8bc66/WeixinActivitySwift/Resources/icon_session-8.png -------------------------------------------------------------------------------- /WeixinActivitySwift/Resources/icon_session-8@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhouhao27/WeixinActivitySwift/25e0c6c34a7a75c6197cc4e2da802c1961d8bc66/WeixinActivitySwift/Resources/icon_session-8@2x.png -------------------------------------------------------------------------------- /WeixinActivitySwift/Resources/icon_session.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhouhao27/WeixinActivitySwift/25e0c6c34a7a75c6197cc4e2da802c1961d8bc66/WeixinActivitySwift/Resources/icon_session.png -------------------------------------------------------------------------------- /WeixinActivitySwift/Resources/icon_session@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhouhao27/WeixinActivitySwift/25e0c6c34a7a75c6197cc4e2da802c1961d8bc66/WeixinActivitySwift/Resources/icon_session@2x.png -------------------------------------------------------------------------------- /WeixinActivitySwift/Resources/icon_timeline-8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhouhao27/WeixinActivitySwift/25e0c6c34a7a75c6197cc4e2da802c1961d8bc66/WeixinActivitySwift/Resources/icon_timeline-8.png -------------------------------------------------------------------------------- /WeixinActivitySwift/Resources/icon_timeline-8@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhouhao27/WeixinActivitySwift/25e0c6c34a7a75c6197cc4e2da802c1961d8bc66/WeixinActivitySwift/Resources/icon_timeline-8@2x.png -------------------------------------------------------------------------------- /WeixinActivitySwift/Resources/icon_timeline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhouhao27/WeixinActivitySwift/25e0c6c34a7a75c6197cc4e2da802c1961d8bc66/WeixinActivitySwift/Resources/icon_timeline.png -------------------------------------------------------------------------------- /WeixinActivitySwift/Resources/icon_timeline@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhouhao27/WeixinActivitySwift/25e0c6c34a7a75c6197cc4e2da802c1961d8bc66/WeixinActivitySwift/Resources/icon_timeline@2x.png -------------------------------------------------------------------------------- /WeixinActivitySwift/WeixinActivityBase.swift: -------------------------------------------------------------------------------- 1 | // 2 | // WeixinActivityBase.swift 3 | // WeixinActivitySwift 4 | // 5 | // Created by Zhou Hao on 02/12/16. 6 | // Copyright © 2016年 Zhou Hao. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class WeixinActivityBase : UIActivity { 12 | var title: String = "" 13 | var image: UIImage? 14 | var url: URL? 15 | var scene: WXScene = WXSceneSession 16 | 17 | override open class var activityCategory: UIActivityCategory { 18 | get { 19 | return UIActivityCategory.share 20 | } 21 | } 22 | 23 | override var activityType: UIActivityType? { 24 | return UIActivityType(rawValue: "WeixinActivity") 25 | } 26 | 27 | override open func canPerform(withActivityItems activityItems: [Any]) -> Bool { 28 | 29 | if WXApi.isWXAppInstalled() && WXApi.isWXAppSupport() { 30 | for activityItem in activityItems { 31 | if activityItem is UIImage { 32 | return true 33 | } 34 | if activityItem is URL { 35 | return true 36 | } 37 | } 38 | } 39 | return false 40 | } 41 | 42 | override open func prepare(withActivityItems activityItems: [Any]) { 43 | for activityItem in activityItems { 44 | if activityItem is UIImage { 45 | image = activityItem as? UIImage 46 | } 47 | if activityItem is URL { 48 | url = activityItem as? URL 49 | } 50 | if activityItem is String { 51 | title = activityItem as! String 52 | } 53 | } 54 | } 55 | 56 | func setThumbImage(req : SendMessageToWXReq) { 57 | 58 | if image != nil { 59 | let width = 100.0 60 | let height = image!.size.height * 100.0 / image!.size.width 61 | UIGraphicsBeginImageContext(CGSize(width:Double(width), height:Double(height))) 62 | image?.draw(in: CGRect(x: 0.0, y: 0.0, width: Double(width), height: Double(height))) 63 | let scaledImage = UIGraphicsGetImageFromCurrentImageContext() 64 | UIGraphicsEndImageContext() 65 | req.message.setThumbImage(scaledImage) 66 | } 67 | } 68 | 69 | override func perform() { 70 | 71 | let req = SendMessageToWXReq() 72 | req.scene = Int32(scene.rawValue) 73 | 74 | req.message = WXMediaMessage() 75 | if scene == WXSceneSession { 76 | req.message.title = "Share" 77 | req.message.description = title 78 | } else { 79 | req.message.title = title 80 | } 81 | self.setThumbImage(req: req) 82 | 83 | if url != nil { 84 | let webObject = WXWebpageObject() 85 | webObject.webpageUrl = url!.absoluteString 86 | req.message.mediaObject = webObject 87 | } else if image != nil { 88 | let imageObject = WXImageObject() 89 | imageObject.imageData = UIImageJPEGRepresentation(image!, 1) 90 | req.message.mediaObject = imageObject 91 | } 92 | WXApi.send(req) 93 | self.activityDidFinish(true) 94 | } 95 | 96 | } 97 | -------------------------------------------------------------------------------- /WeixinActivitySwift/WeixinSessionActivity.swift: -------------------------------------------------------------------------------- 1 | // 2 | // WeixinSessionActivity.swift 3 | // WeixinActivitySwift 4 | // 5 | // Created by Zhou Hao on 02/12/16. 6 | // Copyright © 2016年 Zhou Hao. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | class WeixinSessionActivity : WeixinActivityBase { 12 | 13 | override init() { 14 | super.init() 15 | self.scene = WXSceneSession 16 | } 17 | 18 | override open var activityImage: UIImage? { 19 | get { 20 | return Int(UIDevice.current.systemVersion)! >= 8 ? UIImage(named: "icon_session-8.png") : UIImage(named: "icon_session.png") 21 | } 22 | } 23 | 24 | override var activityTitle: String? { 25 | get { 26 | return NSLocalizedString("WeChat Session", comment: "Session Title") 27 | } 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /WeixinActivitySwift/WeixinTimelineActivity.swift: -------------------------------------------------------------------------------- 1 | // 2 | // WeixinTimelineActivity.swift 3 | // WeixinActivitySwift 4 | // 5 | // Created by Zhou Hao on 02/12/16. 6 | // Copyright © 2016年 Zhou Hao. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | class WeixinTimelineActivity: WeixinActivityBase { 12 | 13 | override init() { 14 | super.init() 15 | self.scene = WXSceneTimeline 16 | } 17 | 18 | override open var activityImage: UIImage? { 19 | get { 20 | return Int(UIDevice.current.systemVersion)! >= 8 ? UIImage(named: "icon_timeline-8.png") : UIImage(named: "icon_timeline.png") 21 | } 22 | } 23 | 24 | override var activityTitle: String? { 25 | get { 26 | return NSLocalizedString("WeChat Timeline", comment: "Timeline Title") 27 | } 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /WeixinActivitySwiftDemo/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // WeixinActivitySwift 4 | // 5 | // Created by Zhou Hao on 02/12/16. 6 | // Copyright © 2016年 Zhou Hao. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /WeixinActivitySwiftDemo/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | } 43 | ], 44 | "info" : { 45 | "version" : 1, 46 | "author" : "xcode" 47 | } 48 | } -------------------------------------------------------------------------------- /WeixinActivitySwiftDemo/Assets.xcassets/Oauth.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Oauth_logo.svg.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /WeixinActivitySwiftDemo/Assets.xcassets/Oauth.imageset/Oauth_logo.svg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhouhao27/WeixinActivitySwift/25e0c6c34a7a75c6197cc4e2da802c1961d8bc66/WeixinActivitySwiftDemo/Assets.xcassets/Oauth.imageset/Oauth_logo.svg.png -------------------------------------------------------------------------------- /WeixinActivitySwiftDemo/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /WeixinActivitySwiftDemo/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /WeixinActivitySwiftDemo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /WeixinActivitySwiftDemo/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // WeixinActivitySwift 4 | // 5 | // Created by Zhou Hao on 02/12/16. 6 | // Copyright © 2016年 Zhou Hao. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: UIViewController { 12 | 13 | var activities = [UIActivity]() 14 | 15 | override func viewDidLoad() { 16 | super.viewDidLoad() 17 | 18 | activities = [WeixinSessionActivity(), WeixinTimelineActivity()]; 19 | } 20 | 21 | @IBAction func onShare(_ sender: Any) { 22 | let activityView = UIActivityViewController(activityItems: ["My title",UIImage(named:"Oauth")!, URL(string: "http://www.google.com")!], applicationActivities: activities) 23 | activityView.excludedActivityTypes = [.assignToContact,.copyToPasteboard,.print] 24 | 25 | self.present(activityView, animated: true, completion: nil) 26 | } 27 | 28 | } 29 | 30 | -------------------------------------------------------------------------------- /images/1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhouhao27/WeixinActivitySwift/25e0c6c34a7a75c6197cc4e2da802c1961d8bc66/images/1.PNG -------------------------------------------------------------------------------- /images/2.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhouhao27/WeixinActivitySwift/25e0c6c34a7a75c6197cc4e2da802c1961d8bc66/images/2.PNG --------------------------------------------------------------------------------