Kaynağa Gözat

集成测试工具

zwp 5 ay önce
ebeveyn
işleme
b62fbccf4e
2 değiştirilmiş dosya ile 13 ekleme ve 0 silme
  1. 12 0
      AIIM/AppDelegate.m
  2. 1 0
      Podfile

+ 12 - 0
AIIM/AppDelegate.m

@@ -30,6 +30,10 @@
 
 #import <Bugly/Bugly.h>
 
+#ifdef DEBUG
+#import <DoraemonKit/DoraemonManager.h>
+#endif
+
 
 @import JitsiMeetSDK;
 
@@ -88,6 +92,14 @@
     [session setCategory:AVAudioSessionCategoryPlayAndRecord mode:AVAudioSessionModeVoiceChat options:AVAudioSessionCategoryOptionAllowBluetooth | AVAudioSessionCategoryOptionAllowBluetoothA2DP | AVAudioSessionCategoryOptionAllowAirPlay error:nil];
     [session setActive:YES error:nil];
     
+    
+#ifdef DEBUG
+        //默认
+        [[DoraemonManager shareInstance] install];
+        // 或者使用传入位置,解决遮挡关键区域,减少频繁移动
+        //[[DoraemonManager shareInstance] installWithStartingPosition:CGPointMake(66, 66)];
+    #endif
+    
     return YES;
 }
 

+ 1 - 0
Podfile

@@ -10,6 +10,7 @@ target 'AIIM' do
   use_modular_headers!
   # Pods for AIIM
   pod 'LookinServer', :configurations => ['Debug']
+  pod 'DoraemonKit/Core', :configurations => ['Debug']
 
   pod 'SocketRocket'
   pod 'FMDB'