Skip to content

Commit

Permalink
Revert "rename iOS project"
Browse files Browse the repository at this point in the history
This reverts commit f2caf8f.
  • Loading branch information
jeasonzhu committed Dec 14, 2016
1 parent f2caf8f commit 0f9f04a
Show file tree
Hide file tree
Showing 304 changed files with 32 additions and 32 deletions.
14 changes: 7 additions & 7 deletions doc/App_Integration_Guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* [编写你自己的Engine]()

##概要
WeDemo除了具有演示客户端,服务器如何安全的接入微信服务的作用,还提供了一套[安全的通信方式](https://github.com/Tencent/WeDemo/wiki/微信WeDemo交互时序说明文档)供开发者使用以快速搭建自己的App。本文为客户端接入指南,PHP端接入指南详见[WeDemo后台(PHP)接入指南](https://github.com/Tencent/WeDemo/wiki/WeDemo后台(PHP)接入指南)
WeDemo除了具有演示客户端,服务器如何安全的接入微信服务的作用,还提供了一套[安全的通信方式](https://github.com/Tencent/WeDemo/wiki/微信WeDemo交互时序说明文档)供开发者使用以快速搭建自己的App。本文为客户端接入指南,PHP端接入指南详见[WeChatAuthDemo后台(PHP)接入指南]()

##获取源代码
在Mac OS X上打开终端模拟器,输入以下命令:
Expand All @@ -34,11 +34,11 @@ git clone https://github.com/Tencent/WeDemo
在终端模拟器中输入以下命令来打开工程所在目录:

```bash
cd WeDemo/iOS/WeDemo
cd WeDemo/iOS/wechatauthdemo
open .
```

在弹出的Finder窗口中打开工程文件```WeDemo.xcworkspace```。在工程树中找到并修改**Info.plist**中的App信息,如下图所示:
在弹出的Finder窗口中打开工程文件```wechatauthdemo.xcworkspace```。在工程树中找到并修改**Info.plist**中的App信息,如下图所示:

![](https://raw.githubusercontent.com/weixin-open/WeChatAuthDemo/master/doc/image/WXAppInfo.jpg)

Expand All @@ -57,13 +57,13 @@ open .
为了让你自己的服务器能成功接收到请求并做出响应,需要替换客户端中的服务器信息,具体步骤如下:

###替换服务器地址
找到[BaseNetworkEngine.m](https://github.com/Tencent/WeDemo/blob/master/iOS/WeDemo/Service/BaseNetworkEngine.m)文件,修改defaultHost的值为你自己的服务器地址,如下图所示:
找到[BaseNetworkEngine.m](https://github.com/weixin-open/WeChatAuthDemo/blob/master/iOS/wechatauthdemo/Service/BaseNetworkEngine.m)文件,修改defaultHost的值为你自己的服务器地址,如下图所示:

![](https://raw.githubusercontent.com/weixin-open/WeChatAuthDemo/master/doc/image/defaultHost.jpg)

###替换服务器RSA公钥和自签名SSL证书

将服务器中用于与App通信的RSA公钥和SSL证书下载下来, 然后打开[BaseNetworkEngine.m](https://github.com/Tencent/WeDemo/blob/master/iOS/WeDemo/Service/BaseNetworkEngine.m)文件,将公钥内容复制替换掉,如下图所示:
将服务器中用于与App通信的RSA公钥和SSL证书下载下来, 然后打开[BaseNetworkEngine.m](https://github.com/weixin-open/WeChatAuthDemo/blob/master/iOS/wechatauthdemo/Service/BaseNetworkEngine.m)文件,将公钥内容复制替换掉,如下图所示:

![](https://raw.githubusercontent.com/weixin-open/WeChatAuthDemo/master/doc/image/RSAPublicKey.jpg)

Expand All @@ -77,7 +77,7 @@ open .
你可以在WeDemo的基础上添加你自己的功能,完成你的App。

###增加CGI配置
按照[ConfigItemsMaker.h](https://github.com/Tencent/WeDemo/blob/master/iOS/WeDemo/Service/ConfigItemsMaker.h)的格式,增加你需要增加的CGI的配置信息,包括请求的路径,加解密算法等,参考示例如下(在[ConfigItemsMaker.h](https://github.com/Tencent/WeDemo/blob/master/iOS/WeDemo/Service/ConfigItemsMaker.h)):
按照[ConfigItemsMaker.h](https://github.com/Tencent/WeDemo/blob/master/iOS/wechatauthdemo/Service/ConfigItemsMaker.h)的格式,增加你需要增加的CGI的配置信息,包括请求的路径,加解密算法等,参考示例如下(在[ConfigItemsMaker.h](https://github.com/Tencent/WeDemo/blob/master/iOS/wechatauthdemo/Service/ConfigItemsMaker.h)):

```objective-c
@{
Expand All @@ -93,7 +93,7 @@ open .
```

###编写你自己的Engine
之后只需要继承[BaseNetworkEngine](https://github.com/Tencent/WeDemo/blob/master/iOS/WeDemo/Service/BaseNetworkEngine.m),然后用```JSONTaskForHost:Para:ConfigKeyPath:WithCompletion:```建立一个网络请求并发起即可,参考示例如下(在[ADNetworkEngine.m](https://github.com/Tencent/WeDemo/blob/master/iOS/WeDemo/Service/ADNetworkEngine.m)中):
之后只需要继承[BaseNetworkEngine](https://github.com/Tencent/WeDemo/blob/master/iOS/wechatauthdemo/Service/BaseNetworkEngine.m),然后用```JSONTaskForHost:Para:ConfigKeyPath:WithCompletion:```建立一个网络请求并发起即可,参考示例如下(在[ADNetworkEngine.m](https://github.com/Tencent/WeDemo/blob/master/iOS/wechatauthdemo/Service/ADNetworkEngine.m)中):

```objective-c
- (void)getReplyListForUin:(UInt32)uin
Expand Down
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
4ADE14298AD0AD62C5C4E13D /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; };
735560791B45202D00B3EE93 /* Localizable.strings */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = Localizable.strings; path = ../Localizable.strings; sourceTree = "<group>"; };
7363B3131B42963000D833A5 /* libWeChatSDK.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libWeChatSDK.a; path = WeChatSDK/libWeChatSDK.a; sourceTree = "<group>"; };
73BED5E71B3AA48600CA4C4D /* WeDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = WeDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
73BED5E71B3AA48600CA4C4D /* wechatauthdemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = wechatauthdemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
73BED6191B3AA77100CA4C4D /* WXApi.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WXApi.h; path = WeChatSDK/WXApi.h; sourceTree = "<group>"; };
73BED61A1B3AA77100CA4C4D /* WXApiObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WXApiObject.h; path = WeChatSDK/WXApiObject.h; sourceTree = "<group>"; };
73BED61C1B3AA82000CA4C4D /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
Expand Down Expand Up @@ -294,7 +294,7 @@
73BED5E81B3AA48600CA4C4D /* Products */ = {
isa = PBXGroup;
children = (
73BED5E71B3AA48600CA4C4D /* WeDemo.app */,
73BED5E71B3AA48600CA4C4D /* wechatauthdemo.app */,
);
name = Products;
sourceTree = "<group>";
Expand Down Expand Up @@ -684,9 +684,9 @@
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
73BED5E61B3AA48600CA4C4D /* WeDemo */ = {
73BED5E61B3AA48600CA4C4D /* wechatauthdemo */ = {
isa = PBXNativeTarget;
buildConfigurationList = 73BED60A1B3AA48600CA4C4D /* Build configuration list for PBXNativeTarget "WeDemo" */;
buildConfigurationList = 73BED60A1B3AA48600CA4C4D /* Build configuration list for PBXNativeTarget "wechatauthdemo" */;
buildPhases = (
186A11AB97A42A7640491420 /* Check Pods Manifest.lock */,
73BED5E31B3AA48600CA4C4D /* Sources */,
Expand All @@ -699,9 +699,9 @@
);
dependencies = (
);
name = WeDemo;
name = wechatauthdemo;
productName = wechatauthdemo;
productReference = 73BED5E71B3AA48600CA4C4D /* WeDemo.app */;
productReference = 73BED5E71B3AA48600CA4C4D /* wechatauthdemo.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
Expand All @@ -719,7 +719,7 @@
};
};
};
buildConfigurationList = 73BED5E21B3AA48600CA4C4D /* Build configuration list for PBXProject "WeDemo" */;
buildConfigurationList = 73BED5E21B3AA48600CA4C4D /* Build configuration list for PBXProject "wechatauthdemo" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
Expand All @@ -732,7 +732,7 @@
projectDirPath = "";
projectRoot = "";
targets = (
73BED5E61B3AA48600CA4C4D /* WeDemo */,
73BED5E61B3AA48600CA4C4D /* wechatauthdemo */,
);
};
/* End PBXProject section */
Expand Down Expand Up @@ -1032,7 +1032,7 @@
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
73BED5E21B3AA48600CA4C4D /* Build configuration list for PBXProject "WeDemo" */ = {
73BED5E21B3AA48600CA4C4D /* Build configuration list for PBXProject "wechatauthdemo" */ = {
isa = XCConfigurationList;
buildConfigurations = (
73BED6081B3AA48600CA4C4D /* Debug */,
Expand All @@ -1041,7 +1041,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
73BED60A1B3AA48600CA4C4D /* Build configuration list for PBXNativeTarget "WeDemo" */ = {
73BED60A1B3AA48600CA4C4D /* Build configuration list for PBXNativeTarget "wechatauthdemo" */ = {
isa = XCConfigurationList;
buildConfigurations = (
73BED60B1B3AA48600CA4C4D /* Debug */,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "73BED5E61B3AA48600CA4C4D"
BuildableName = "WeDemo.app"
BlueprintName = "WeDemo"
ReferencedContainer = "container:WeDemo.xcodeproj">
BuildableName = "wechatauthdemo.app"
BlueprintName = "wechatauthdemo"
ReferencedContainer = "container:wechatauthdemo.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
Expand All @@ -33,9 +33,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "73BED5E61B3AA48600CA4C4D"
BuildableName = "WeDemo.app"
BlueprintName = "WeDemo"
ReferencedContainer = "container:WeDemo.xcodeproj">
BuildableName = "wechatauthdemo.app"
BlueprintName = "wechatauthdemo"
ReferencedContainer = "container:wechatauthdemo.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
Expand All @@ -56,9 +56,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "73BED5E61B3AA48600CA4C4D"
BuildableName = "WeDemo.app"
BlueprintName = "WeDemo"
ReferencedContainer = "container:WeDemo.xcodeproj">
BuildableName = "wechatauthdemo.app"
BlueprintName = "wechatauthdemo"
ReferencedContainer = "container:wechatauthdemo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
Expand All @@ -75,9 +75,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "73BED5E61B3AA48600CA4C4D"
BuildableName = "WeDemo.app"
BlueprintName = "WeDemo"
ReferencedContainer = "container:WeDemo.xcodeproj">
BuildableName = "wechatauthdemo.app"
BlueprintName = "wechatauthdemo"
ReferencedContainer = "container:wechatauthdemo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
<dict>
<key>SchemeUserState</key>
<dict>
<key>WeDemo.xcscheme</key>
<key>wechatauthdemo.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>3</integer>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0f9f04a

Please sign in to comment.