Example #1
0
        /// <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);
            }
        }
Example #2
0
        /// <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);
             * }*/
        }
Example #3
0
        /// <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);
            }
        }
Example #4
0
 /// <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();
 }
Example #5
0
 /// <summary>
 /// Default ctor
 /// </summary>
 private OutputPaneLog(IIdeOutputPane outputPane, Levels minLevel, DContext?limitToContext)
 {
     this.outputPane = outputPane;
     this.minLevel   = minLevel;
     _limitToContext = limitToContext;
 }
Example #6
0
 /// <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();
 }
Example #7
0
 /// <summary>
 /// Default ctor
 /// </summary>
 private OutputPaneLog(IIdeOutputPane outputPane)
 {
     this.outputPane = outputPane;
 }
Example #8
0
 /// <summary>
 /// Default ctor
 /// </summary>
 private OutputPaneLog(IIdeOutputPane outputPane, Levels minLevel,DContext? limitToContext)
 {
     this.outputPane = outputPane;
     this.minLevel = minLevel;
     _limitToContext = limitToContext;
 }
Example #9
0
 /// <summary>
 /// Default ctor
 /// </summary>
 private OutputPaneLog(IIdeOutputPane outputPane)
 {
     this.outputPane = outputPane;
 }