Skip to content

Commit 7771453

Browse files
authored
Merge pull request #215 from jwfing/master
support android key within leanengine
2 parents 284de33 + d61d714 commit 7771453

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)