Fix stale idbConfig and adb in CertificateProvider
Summary: CertificateProvider initializes too early, and set abd and idb to undefined, before adb and idb are initialized by android and ios manager. Reviewed By: lawrencelomax Differential Revision: D33792854 fbshipit-source-id: b6bba32dead7edf62e360b2e2563f2b67243b1b8
This commit is contained in:
committed by
Facebook GitHub Bot
parent
377e5963a9
commit
e0204486a5
@@ -82,8 +82,6 @@ export type SecureServerConfig = {
|
|||||||
* Flipper CA.
|
* Flipper CA.
|
||||||
*/
|
*/
|
||||||
export default class CertificateProvider {
|
export default class CertificateProvider {
|
||||||
private adb = getAdbClient();
|
|
||||||
private idbConfig = getIdbConfig();
|
|
||||||
private didCertificateSetup = false;
|
private didCertificateSetup = false;
|
||||||
private server: ServerController;
|
private server: ServerController;
|
||||||
|
|
||||||
@@ -91,6 +89,14 @@ export default class CertificateProvider {
|
|||||||
this.server = server;
|
this.server = server;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private get adb() {
|
||||||
|
return getAdbClient();
|
||||||
|
}
|
||||||
|
|
||||||
|
private get idbConfig() {
|
||||||
|
return getIdbConfig();
|
||||||
|
}
|
||||||
|
|
||||||
private uploadFiles = async (
|
private uploadFiles = async (
|
||||||
zipPath: string,
|
zipPath: string,
|
||||||
deviceID: string,
|
deviceID: string,
|
||||||
|
|||||||
Reference in New Issue
Block a user