Пример #1
0
 protected Boolean m425d() {
   C3218c.m9728h().m9687a("Beta", "Beta kit initializing...");
   Context B = m402B();
   IdManager A = m401A();
   if (TextUtils.isEmpty(m418a(B, A.m9899h()))) {
     C3218c.m9728h().m9687a("Beta", "A Beta device token was not found for this app");
     return Boolean.valueOf(false);
   }
   C3218c.m9728h().m9687a("Beta", "Beta device token is present, checking for app updates.");
   C3305f h = m419h();
   C0350d a = m417a(B);
   if (m422a(h, a)) {
     this.f359c.m384a(
         B, this, A, h, a, new C3239d(this), new C3266p(), new C3296b(C3218c.m9728h()));
   }
   return Boolean.valueOf(true);
 }
Пример #2
0
 private String m418a(Context context, String str) {
   if (m423a(str, VERSION.SDK_INT)) {
     C3218c.m9728h().m9687a("Beta", "App was possibly installed by Beta. Getting device token");
     try {
       String str2 = (String) this.f357a.m9797a(context, this.f358b);
       if (BuildConfig.FLAVOR.equals(str2)) {
         str2 = null;
       }
       return str2;
     } catch (Throwable e) {
       C3218c.m9728h().m9695e("Beta", "Failed to load the Beta device token", e);
       return null;
     }
   }
   C3218c.m9728h().m9687a("Beta", "App was not installed by Beta. Skipping device token");
   return null;
 }
Пример #3
0
 private C0350d m417a(Context context) {
   InputStream open;
   C0350d a;
   Throwable th;
   Throwable e;
   Object obj;
   Throwable th2;
   C0350d c0350d;
   InputStream inputStream = null;
   try {
     open = context.getAssets().open("crashlytics-build.properties");
     if (open != null) {
       try {
         a = C0350d.m429a(open);
       } catch (Throwable e2) {
         th = e2;
         obj = inputStream;
         th2 = th;
         try {
           C3218c.m9728h().m9695e("Beta", "Error reading Beta build properties", th2);
           if (open != null) {
             try {
               open.close();
             } catch (Throwable th22) {
               C3218c.m9728h().m9695e("Beta", "Error closing Beta build properties asset", th22);
             }
           }
           return c0350d;
         } catch (Throwable th3) {
           e2 = th3;
           if (open != null) {
             try {
               open.close();
             } catch (Throwable th222) {
               C3218c.m9728h().m9695e("Beta", "Error closing Beta build properties asset", th222);
             }
           }
           throw e2;
         }
       }
       try {
         C3218c.m9728h()
             .m9687a(
                 "Beta",
                 a.f363d
                     + " build properties: "
                     + a.f361b
                     + " ("
                     + a.f360a
                     + ")"
                     + " - "
                     + a.f362c);
         c0350d = a;
       } catch (Throwable e22) {
         th = e22;
         c0350d = a;
         th222 = th;
         C3218c.m9728h().m9695e("Beta", "Error reading Beta build properties", th222);
         if (open != null) {
           open.close();
         }
         return c0350d;
       }
     }
     obj = inputStream;
     if (open != null) {
       try {
         open.close();
       } catch (Throwable th2222) {
         C3218c.m9728h().m9695e("Beta", "Error closing Beta build properties asset", th2222);
       }
     }
   } catch (Throwable e222) {
     open = inputStream;
     InputStream inputStream2 = inputStream;
     th2222 = e222;
     c0350d = inputStream2;
     C3218c.m9728h().m9695e("Beta", "Error reading Beta build properties", th2222);
     if (open != null) {
       open.close();
     }
     return c0350d;
   } catch (Throwable th4) {
     e222 = th4;
     open = inputStream;
     if (open != null) {
       open.close();
     }
     throw e222;
   }
   return c0350d;
 }