Skip to content

Commit 4c179e9

Browse files
committed
Move twitter auth keys to strings.xml
1 parent 698f7d9 commit 4c179e9

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

src/AndroidClient/androidchat/src/main/java/servicestack/net/androidchat/LoginActivity.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@
3535
public class LoginActivity extends AppCompatActivity {
3636
private ProgressBar progressBar;
3737
private ObjectAnimator animation;
38-
39-
// For: http://localhost:11001/
40-
private static final String TWITTER_KEY = "3H1FHjGbA1N0n0aT5yApA";
41-
private static final String TWITTER_SECRET = "MLrZ0ujK6DwyjlRk2YLp6HwSdoBjtuqwXeHDQLv0Q";
42-
4338
private TwitterAuthClient twitterAuth;
4439

4540
@Override
@@ -67,7 +62,10 @@ protected void onCreate(Bundle savedInstanceState){
6762
ImageButton btnAnon = (ImageButton)findViewById(R.id.btnAnon);
6863
LoginActivity activity = this;
6964

70-
TwitterAuthConfig authConfig = new TwitterAuthConfig(TWITTER_KEY, TWITTER_SECRET);
65+
TwitterAuthConfig authConfig = new TwitterAuthConfig(
66+
getString(R.string.twitter_key),
67+
getString(R.string.twitter_secret));
68+
7169
Fabric.with(this, new Twitter(authConfig));
7270

7371
twitterAuth = new TwitterAuthClient();

src/AndroidClient/androidchat/src/main/res/values/strings.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,10 @@
55

66
<string name="openDrawer">Switch channels</string>
77
<string name="closeDrawer">Android Chat</string>
8+
9+
<string name="facebook_app_id">316911901802572</string>
10+
11+
<!-- For: http://localhost:11001/ -->
12+
<string name="twitter_key">3H1FHjGbA1N0n0aT5yApA</string>
13+
<string name="twitter_secret">MLrZ0ujK6DwyjlRk2YLp6HwSdoBjtuqwXeHDQLv0Q</string>
814
</resources>

0 commit comments

Comments
 (0)