<commit_before>
## 集成
- [手动集成](#手动集成)
- CocoaPod (即将支持)
### 手动集成
#### 1. 下载APPGear-iOS SDK [下载地址](https://github.com/camsgear/APPGear-iOS/releases/tag/v1.0.2)
#### 2. 接入APPGear-iOS SDK
- 将APPGear-iOS SDK添加到工程
- 添加项目配置
- `Build Settings` -> `Linking` -> `Ohter linker Flags` 中添加`-ObjC`
- `Build Settings` -> `Architectures` -> `Architectures`中添加`armv7s`
- `Build Settings` -> `Architectures` -> `Build Active Architecture Only` 改为`NO`
#### 3. 加入依赖库
- `Build phases` -> `Link Binary With Libraries` 中添加 `libresolv.9.tbd`
- `Build phases` -> `Link Binary With Libraries` 中添加 `APPGear-iOS.framework`
#### 4. 初始化
- 在`AppDelegate.m`中添加 `#import <APPGear/APPGear.h>`
- 在`(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions`中添加一下代码:

```Objective-C
(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

///  配置API信息<commit_msg>更新版本v1.0.3<commit_after>
## 集成
- [手动集成](#手动集成)
- CocoaPod (即将支持)
### 手动集成
#### 1. 下载APPGear-iOS SDK [下载地址](https://github.com/camsgear/APPGear-iOS/releases/tag/v1.0.3)
#### 2. 接入APPGear-iOS SDK
- 将APPGear-iOS SDK添加到工程
- 添加项目配置
- `Build Settings` -> `Linking` -> `Ohter linker Flags` 中添加`-ObjC`
- `Build Settings` -> `Architectures` -> `Architectures`中添加`armv7s`
- `Build Settings` -> `Architectures` -> `Build Active Architecture Only` 改为`NO`
#### 3. 加入依赖库
- `Build phases` -> `Link Binary With Libraries` 中添加 `libresolv.9.tbd`
- `Build phases` -> `Link Binary With Libraries` 中添加 `APPGear-iOS.framework`
#### 4. 初始化
- 在`AppDelegate.m`中添加 `#import <APPGear/APPGear.h>`
- 在`(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions`中添加一下代码:

```Objective-C
(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

///  配置API信息
{'fraction_non_alphanumeric': 0.17662897145934303, 'fraction_numerical': 0.011308562197092083, 'mean_word_length': 5.2983050847457624, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7162232', 'n_tokens_mistral': 838, 'n_tokens_neox': 812, 'n_words': 135}