Skip to content

Commit

Permalink
Added setServerUrl to AmplitudePlugin for unity plugin to use (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
haoliu-amp authored Jul 15, 2020
1 parent e44badf commit 1e8c482
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/amplitude/api/DeviceInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ public Location getMostRecentLocation() {
providers = locationManager.getProviders(true);
} catch (SecurityException e) {
// failed to get providers list
} catch (Exception e) {
// other causes
}
if (providers == null) {
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ public static void setLibraryVersion(String instanceName, String libraryVersion)
Amplitude.getInstance(instanceName).setLibraryVersion(libraryVersion);
}

public static void setServerUrl(String instanceName, String serverUrl) {
Amplitude.getInstance(instanceName).setServerUrl(serverUrl);
}

@Deprecated
public static void startSession() { return; }

Expand Down

0 comments on commit 1e8c482

Please sign in to comment.