/// <summary> /// Default ctor /// </summary> public ApkRunner(IIde ide, string apkPath, string packageName, string activity, bool debuggable, int launchFlags) { this.ide = ide; this.apkPath = apkPath; this.packageName = packageName; this.activity = activity; this.debuggable = debuggable; this.launchFlags = launchFlags; cancellationTokenSource = new CancellationTokenSource(); outputPane = ide.CreateDot42OutputPane(); DeployApk = true; // Load package try { var apk = new ApkFile(apkPath); if (!apk.Manifest.TryGetMinSdkVersion(out minSdkVersion)) { minSdkVersion = -1; } } catch (Exception ex) { minSdkVersion = -1; ErrorLog.DumpError(ex); } }
/// <summary> /// Default ctor /// </summary> public BarRunner(IIde ide, string barPath, string packageName, string activity, bool debuggable, int launchFlags) { this.ide = ide; this.barPath = barPath; this.packageName = packageName; this.activity = activity; this.debuggable = debuggable; this.launchFlags = launchFlags; cancellationTokenSource = new CancellationTokenSource(); outputPane = ide.CreateDebugOutputPane(); // Load package /*try * { * var apk = new ApkFile(barPath); * if (!apk.Manifest.TryGetMinSdkVersion(out minSdkVersion)) * minSdkVersion = -1; * } * catch (Exception ex) * { * minSdkVersion = -1; * ErrorLog.DumpError(ex); * }*/ }
/// <summary> /// Default ctor /// </summary> public ApkRunner(IIde ide, string apkPath, string packageName, string activity, bool debuggable, int launchFlags) { this.ide = ide; this.apkPath = apkPath; this.packageName = packageName; this.activity = activity; this.debuggable = debuggable; this.launchFlags = launchFlags; cancellationTokenSource = new CancellationTokenSource(); outputPane = ide.CreateDot42OutputPane(); DeployApk = true; // Load package try { var apk = new ApkFile(apkPath); if (!apk.Manifest.TryGetMinSdkVersion(out minSdkVersion)) minSdkVersion = -1; } catch (Exception ex) { minSdkVersion = -1; ErrorLog.DumpError(ex); } }
/// <summary> /// Default ctor /// </summary> public LaunchMonitor(IIde ide, IDevice device, string apkPath, string packageName, int apiLevel, int launchFlags, Action <LauncherStates, string> stateUpdate, CancellationToken token) { this.ide = ide; this.device = device; this.apkPath = apkPath; this.packageName = packageName; this.apiLevel = apiLevel; this.launchFlags = launchFlags; this.stateUpdate = stateUpdate; this.token = token; outputPane = ide.CreateDot42OutputPane(); }
/// <summary> /// Default ctor /// </summary> private OutputPaneLog(IIdeOutputPane outputPane, Levels minLevel, DContext?limitToContext) { this.outputPane = outputPane; this.minLevel = minLevel; _limitToContext = limitToContext; }
/// <summary> /// Default ctor /// </summary> public LaunchMonitor(IIde ide, IDevice device, string apkPath, string packageName, int apiLevel, int launchFlags, Action<LauncherStates, string> stateUpdate, CancellationToken token) { this.ide = ide; this.device = device; this.apkPath = apkPath; this.packageName = packageName; this.apiLevel = apiLevel; this.launchFlags = launchFlags; this.stateUpdate = stateUpdate; this.token = token; outputPane = ide.CreateDebugOutputPane(); }
/// <summary> /// Default ctor /// </summary> private OutputPaneLog(IIdeOutputPane outputPane) { this.outputPane = outputPane; }
/// <summary> /// Default ctor /// </summary> private OutputPaneLog(IIdeOutputPane outputPane, Levels minLevel,DContext? limitToContext) { this.outputPane = outputPane; this.minLevel = minLevel; _limitToContext = limitToContext; }