Skip to content

Commit

Permalink
shift chromecast app_id in api.properties
Browse files Browse the repository at this point in the history
  • Loading branch information
csoni111 committed Aug 22, 2017
1 parent 910f294 commit d481651
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ android {
buildConfigField "String", "API_URL_PROXY", formatStringField(apiProperties["url.proxy"])
buildConfigField "String", "API_CLIENT_ID", formatStringField(apiProperties["client.id"])
buildConfigField "String", "API_CLIENT_SECRET", formatStringField(apiProperties["client.secret"])
buildConfigField "String", "CHROMECAST_APP_ID", formatStringField(apiProperties["chromecast.app.id"])

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import com.google.android.gms.cast.framework.media.CastMediaOptions;
import com.google.android.gms.cast.framework.media.NotificationOptions;

import org.amahi.anywhere.BuildConfig;
import org.amahi.anywhere.R;
import org.amahi.anywhere.activity.ExpandedControlsActivity;

Expand All @@ -48,7 +49,7 @@ public CastOptions getCastOptions(Context appContext) {
.build();

return new CastOptions.Builder()
.setReceiverApplicationId(appContext.getString(R.string.app_id))
.setReceiverApplicationId(BuildConfig.CHROMECAST_APP_ID)
.setCastMediaOptions(mediaOptions)
.build();
}
Expand Down
1 change: 0 additions & 1 deletion src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
<resources>

<string name="application_name" translatable="false">Amahi</string>
<string name="app_id" translatable="false">4F8B3483</string>

<string name="title_apps">Apps</string>
<string name="title_settings">Settings</string>
Expand Down

0 comments on commit d481651

Please sign in to comment.