mirror of
https://github.com/nuclearfog/Shitter.git
synced 2025-01-22 15:30:23 +01:00
removed BuildConfig constants
This commit is contained in:
parent
c7cb045ea3
commit
87d660510e
@ -17,11 +17,6 @@ android {
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
all {
|
||||
// Twitter API Keys stored in .gradle/gradle.properties
|
||||
buildConfigField 'String', 'API_KEY_1', TWITTER_CONSUMER_KEY
|
||||
buildConfigField 'String', 'API_KEY_2', TWITTER_CONSUMER_SECRET
|
||||
}
|
||||
release {
|
||||
debuggable false
|
||||
minifyEnabled true
|
||||
|
@ -6,7 +6,6 @@ import android.graphics.BitmapFactory;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import org.nuclearfog.twidda.BuildConfig;
|
||||
import org.nuclearfog.twidda.backend.holder.ListHolder;
|
||||
import org.nuclearfog.twidda.backend.holder.MessageHolder;
|
||||
import org.nuclearfog.twidda.backend.holder.TweetHolder;
|
||||
@ -56,19 +55,23 @@ import twitter4j.conf.ConfigurationBuilder;
|
||||
@Obfuscate
|
||||
public class TwitterEngine {
|
||||
|
||||
private static final String CONSUMER_KEY = BuildConfig.API_KEY_1;
|
||||
private static final String CONSUMER_KEY_SECRET = BuildConfig.API_KEY_2;
|
||||
/**
|
||||
* add your keys here
|
||||
*/
|
||||
private static final String TWITTER_CONSUMER_KEY = "";
|
||||
private static final String TWITTER_CONSUMER_SECRET = "";
|
||||
|
||||
private GlobalSettings settings;
|
||||
private static final TwitterEngine mTwitter = new TwitterEngine();
|
||||
|
||||
private Twitter twitter;
|
||||
private boolean isInitialized = false;
|
||||
private GlobalSettings settings;
|
||||
@Nullable
|
||||
private RequestToken reqToken;
|
||||
@Nullable
|
||||
private AccessToken aToken;
|
||||
|
||||
private boolean isInitialized = false;
|
||||
|
||||
|
||||
private TwitterEngine() {
|
||||
}
|
||||
@ -78,8 +81,8 @@ public class TwitterEngine {
|
||||
*/
|
||||
private void initTwitter() {
|
||||
ConfigurationBuilder builder = new ConfigurationBuilder();
|
||||
builder.setOAuthConsumerKey(CONSUMER_KEY);
|
||||
builder.setOAuthConsumerSecret(CONSUMER_KEY_SECRET);
|
||||
builder.setOAuthConsumerKey(TWITTER_CONSUMER_KEY);
|
||||
builder.setOAuthConsumerSecret(TWITTER_CONSUMER_SECRET);
|
||||
// Twitter4J has its own proxy settings
|
||||
if (settings.isProxyEnabled()) {
|
||||
builder.setHttpProxyHost(settings.getProxyHost());
|
||||
|
Loading…
Reference in New Issue
Block a user