Skip to content

Commit

Permalink
Update the plugin key for analytics to match one generated by the cli…
Browse files Browse the repository at this point in the history
… and update configuration method (aws-amplify#328)
  • Loading branch information
desokroshan authored Mar 26, 2020
1 parent bfba833 commit 2005012
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
import com.amplifyframework.analytics.AnalyticsException;
import com.amplifyframework.analytics.BasicAnalyticsEvent;
import com.amplifyframework.analytics.UserProfile;
import com.amplifyframework.analytics.pinpoint.test.R;
import com.amplifyframework.core.Amplify;
import com.amplifyframework.core.AmplifyConfiguration;
import com.amplifyframework.logging.Logger;
import com.amplifyframework.testutils.Sleep;

Expand Down Expand Up @@ -71,11 +69,9 @@ public class AnalyticsPinpointInstrumentedTest {
@BeforeClass
public static void setUp() throws AmplifyException {
Context context = getApplicationContext();
AmplifyConfiguration configuration =
AmplifyConfiguration.fromConfigFile(context, R.raw.amplifyconfiguration);
plugin = new AmazonPinpointAnalyticsPlugin((Application) context);
Amplify.addPlugin(plugin);
Amplify.configure(configuration, context);
Amplify.configure(context);
analyticsClient = plugin.getAnalyticsClient();
targetingClient = plugin.getTargetingClient();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ public void flushEvents() {
@NonNull
@Override
public String getPluginKey() {
return "amazonPinpointAnalyticsPlugin";
return "awsPinpointAnalyticsPlugin";
}

/**
Expand Down

0 comments on commit 2005012

Please sign in to comment.