Skip to content

Commit c858310

Browse files
author
Josh Deffibaugh
committed
Explicitly use sample project id
1 parent e77f837 commit c858310

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test-app/src/main/java/com/optimizely/ab/android/test_app/MyApplication.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,11 @@ public String getAnonUserId() {
6060
public void onCreate() {
6161
super.onCreate();
6262

63-
// If the project doesn't compile because you are missing R.string.optly_project_id you need
64-
// to put `git_ignored_strings.xml` in test-app/src/main/res/values. This file is git ignored.
65-
// It contains values that are unique for each developer.
66-
final String projectId = getResources().getString(
67-
getResources().getIdentifier("optly_project_id", "string", getPackageName()));
68-
optimizelyManager = OptimizelyManager.builder(projectId)
63+
// This app is built against a real Optimizely project with real experiments set. Automated
64+
// espresso tests are run against this project id. Changing it will make the Optimizely
65+
// tests setup not work and the Espresso tests will fail. Also, the project id passed here
66+
// must match the project id of the compiled in Optimizely data file in rest/raw/data_file.json.
67+
optimizelyManager = OptimizelyManager.builder("7664231436")
6968
.withEventHandlerDispatchInterval(30, TimeUnit.SECONDS)
7069
.withDataFileDownloadInterval(30, TimeUnit.SECONDS)
7170
.build();

0 commit comments

Comments
 (0)