Skip to content

Commit c3ade14

Browse files
authored
Merge pull request #53 from optimizely/mng/make-datafile-method-static
Make getDatafileUrl static for easier access.
2 parents 387f74a + 6b164c0 commit c3ade14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

android-sdk/src/main/java/com/optimizely/ab/android/sdk/OptimizelyManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,10 @@ public boolean isDatafileCached(Context context) {
322322

323323
/**
324324
* Returns the URL of the versioned datafile that this SDK expects to use
325+
* @param projectId The id of the project for which we are getting the datafile
325326
* @return the CDN location of the datafile
326327
*/
327-
public @NonNull String getDatafileUrl() {
328+
public static @NonNull String getDatafileUrl(String projectId) {
328329
return DataFileService.getDatafileUrl(projectId);
329330
}
330331

0 commit comments

Comments
 (0)