Skip to content

Commit d61d714

Browse files
committed
support android key within leanengine
1 parent c2894db commit d61d714

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

leanengine/src/main/java/cn/leancloud/LeanEngine.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ public static void initialize(String applicationId, String clientKey, String mas
4545

4646
public static void initializeWithServerUrl(String applicationId, String clientKey, String masterKey, String hookKey,
4747
String serverUrl) {
48-
initializeWithServerUrl(applicationId, clientKey, masterKey, hookKey, null, serverUrl);
48+
String androidKey = EngineAppConfiguration.getEnvOrProperty(EngineAppConfiguration.SYSTEM_ATTR_ANDX_KEY);
49+
initializeWithServerUrl(applicationId, clientKey, masterKey, hookKey, androidKey, serverUrl);
4950
}
5051

5152
protected static void initializeWithServerUrl(String applicationId, String clientKey, String masterKey, String hookKey,

0 commit comments

Comments
 (0)