Skip to content

Commit

Permalink
removed API key dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nuclearfog committed Dec 23, 2018
1 parent d22ed8a commit 243e549
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ android {
}

buildTypes {

all {
buildConfigField "String", "API_KEY_1", TWITTER_CONSUMER_KEY
buildConfigField "String", "API_KEY_2", TWITTER_CONSUMER_SECRET
}
release {
debuggable false
minifyEnabled true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import android.content.Context;
import android.support.annotation.Nullable;

import org.nuclearfog.twidda.BuildConfig;
import org.nuclearfog.twidda.backend.items.Message;
import org.nuclearfog.twidda.backend.items.Trend;
import org.nuclearfog.twidda.backend.items.Tweet;
Expand Down Expand Up @@ -35,8 +36,8 @@
public class TwitterEngine {

private static TwitterEngine mTwitter;
private final String TWITTER_CONSUMER_KEY = "QAJXMoaJ9kAhwhpPKmRB94ijK";
private final String TWITTER_CONSUMER_SECRET = "NDLiQzlXfuhAox5XibKvF7mC4YRJqjqGZCff9rsPKS7VmwUjRG";
private final String TWITTER_CONSUMER_KEY = BuildConfig.API_KEY_1;
private final String TWITTER_CONSUMER_SECRET = BuildConfig.API_KEY_2;

private String redirectionUrl;
private long twitterID;
Expand Down

0 comments on commit 243e549

Please sign in to comment.