@@ -130,6 +130,23 @@ + (NSString *)getApplicationSupportDirectory
130
130
return applicationSupportDirectory;
131
131
}
132
132
133
+ + (void )setDeploymentKey : (NSString *)deploymentKey
134
+ {
135
+ [CodePushConfig current ].deploymentKey = deploymentKey;
136
+ }
137
+
138
+ #pragma mark - Test-only methods
139
+
140
+ /*
141
+ * WARNING: This cleans up all downloaded and pending updates.
142
+ */
143
+ + (void )clearUpdates
144
+ {
145
+ [CodePushPackage clearUpdates ];
146
+ [self removePendingUpdate ];
147
+ [self removeFailedUpdates ];
148
+ }
149
+
133
150
/*
134
151
* This returns a boolean value indicating whether CodePush has
135
152
* been set to run under a test configuration.
@@ -139,11 +156,6 @@ + (BOOL)isUsingTestConfiguration
139
156
return testConfigurationFlag;
140
157
}
141
158
142
- + (void )setDeploymentKey : (NSString *)deploymentKey
143
- {
144
- [CodePushConfig current ].deploymentKey = deploymentKey;
145
- }
146
-
147
159
/*
148
160
* This is used to enable an environment in which tests can be run.
149
161
* Specifically, it flips a boolean flag that causes bundles to be
@@ -155,16 +167,6 @@ + (void)setUsingTestConfiguration:(BOOL)shouldUseTestConfiguration
155
167
testConfigurationFlag = shouldUseTestConfiguration;
156
168
}
157
169
158
- /*
159
- * WARNING: This cleans up all downloaded and pending updates.
160
- */
161
- + (void )clearUpdates
162
- {
163
- [CodePushPackage clearUpdates ];
164
- [self removePendingUpdate ];
165
- [self removeFailedUpdates ];
166
- }
167
-
168
170
#pragma mark - Private API methods
169
171
170
172
@synthesize bridge = _bridge;
0 commit comments