File tree Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -288,9 +288,19 @@ _openinstallFlutterPlugin.init(wakeupHandler);
288
288
### iOS平台
289
289
290
290
#### 广告平台渠道和ASA渠道的配置
291
- 1、将 ` ios/Classes/OpeninstallFlutterPlugin.m ` 文件替换为 ` example/ad-track/OpeninstallFlutterPlugin.m ` 文件
291
+ 1、工程目录下新建plugins文件夹用来存放本地插件,拷贝 ` openinstall_flutter_plugin ` 插件到plugins文件夹独自引用
292
292
293
- 2、需要在Info.plist文件中配置权限
293
+ ![ 新建文件夹] ( https://res.cdn.openinstall.io/doc/flutterForder.png )
294
+
295
+ 2、在工程中找到pubspec.yaml,修改为本地插件引用方式
296
+
297
+ ![ 本地插件引用] ( https://res.cdn.openinstall.io/doc/flutterYaml.png )
298
+
299
+ 3、将 ` ios/Classes/OpeninstallFlutterPlugin.m ` 文件替换为 ` example/ad-track/OpeninstallFlutterPlugin.m ` 文件
300
+
301
+ ![ 文件替换] ( https://res.cdn.openinstall.io/doc/flutterAdTrack.png )
302
+
303
+ 4、需要在Info.plist文件中配置权限
294
304
``` xml
295
305
<key >NSUserTrackingUsageDescription</key >
296
306
<string >请允许,以获取和使用您的IDFA</string >
Original file line number Diff line number Diff line change @@ -168,10 +168,10 @@ + (void)initOpenInstall:(OpeninstallFlutterPlugin *)obj{
168
168
// iOS14.5苹果隐私政策正式启用
169
169
if (@available (iOS 14 , *)) {
170
170
[ATTrackingManager requestTrackingAuthorizationWithCompletionHandler: ^(ATTrackingManagerAuthorizationStatus status) {
171
- [self OpInit ];
171
+ [self OpInit: obj ];
172
172
}];
173
173
}else {
174
- [self OpInit ];
174
+ [self OpInit: obj ];
175
175
}
176
176
}
177
177
@@ -187,7 +187,7 @@ + (void)OpInit:(OpeninstallFlutterPlugin *)obj{
187
187
NSString *idfaStr = [[[ASIdentifierManager sharedManager ] advertisingIdentifier ] UUIDString ];
188
188
[config setValue: idfaStr forKey: OP_Idfa_Id];
189
189
190
- [OpenInstallSDK initWithDelegate: self adsAttribution: config];
190
+ [OpenInstallSDK initWithDelegate: obj adsAttribution: config];
191
191
}
192
192
193
193
#pragma mark - Application Delegate
Original file line number Diff line number Diff line change 1
1
name : openinstall_flutter_plugin
2
2
description : openinstall_flutter_plugin is a Flutter plugin based on openinstall, and with null safety support.
3
- version : 2.1.1
3
+ version : 2.1.2
4
4
homepage : https://www.openinstall.io
5
5
6
6
environment :
You can’t perform that action at this time.
0 commit comments