Kit.java
3.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
package io.fabric.sdk.android;
import android.content.Context;
import io.fabric.sdk.android.services.common.IdManager;
import io.fabric.sdk.android.services.concurrency.DependsOn;
import io.fabric.sdk.android.services.concurrency.Task;
import java.io.File;
import java.util.Collection;
import sz;
import tb;
public abstract class Kit<Result>
implements Comparable<Kit>
{
Context context;
final DependsOn dependsOnAnnotation = (DependsOn)getClass().getAnnotation(DependsOn.class);
Fabric fabric;
protected IdManager idManager;
public InitializationCallback<Result> initializationCallback;
tb<Result> initializationTask = new tb(this);
public int compareTo(Kit paramKit)
{
if (containsAnnotatedDependency(paramKit)) {}
do
{
return 1;
if (paramKit.containsAnnotatedDependency(this)) {
return -1;
}
} while ((hasAnnotatedDependency()) && (!paramKit.hasAnnotatedDependency()));
if ((!hasAnnotatedDependency()) && (paramKit.hasAnnotatedDependency())) {
return -1;
}
return 0;
}
boolean containsAnnotatedDependency(Kit paramKit)
{
boolean bool2 = false;
boolean bool1 = bool2;
Class[] arrayOfClass;
int j;
int i;
if (hasAnnotatedDependency())
{
arrayOfClass = this.dependsOnAnnotation.value();
j = arrayOfClass.length;
i = 0;
}
for (;;)
{
bool1 = bool2;
if (i < j)
{
if (arrayOfClass[i].isAssignableFrom(paramKit.getClass())) {
bool1 = true;
}
}
else {
return bool1;
}
i += 1;
}
}
public abstract Result doInBackground();
public Context getContext()
{
return this.context;
}
protected Collection<Task> getDependencies()
{
return this.initializationTask.getDependencies();
}
public Fabric getFabric()
{
return this.fabric;
}
protected IdManager getIdManager()
{
return this.idManager;
}
public abstract String getIdentifier();
public String getPath()
{
return ".Fabric" + File.separator + getIdentifier();
}
public abstract String getVersion();
boolean hasAnnotatedDependency()
{
return this.dependsOnAnnotation != null;
}
final void initialize()
{
this.initializationTask.executeOnExecutor(this.fabric.getExecutorService(), new Void[] { null });
}
void injectParameters(Context paramContext, Fabric paramFabric, InitializationCallback<Result> paramInitializationCallback, IdManager paramIdManager)
{
this.fabric = paramFabric;
this.context = new sz(paramContext, getIdentifier(), getPath());
this.initializationCallback = paramInitializationCallback;
this.idManager = paramIdManager;
}
public void onCancelled(Result paramResult) {}
public void onPostExecute(Result paramResult) {}
public boolean onPreExecute()
{
return true;
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/io/fabric/sdk/android/Kit.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/