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