-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Added build flavors to separate FULL and DEMO app releases.
fix: Subtitle based on build flavor. Demo package name ignored in settings on purpose.
- Loading branch information
Showing
9 changed files
with
144 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
app/src/demo/java/com/baruckis/mycryptocoins/utilities/ConstantsFlavor.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Copyright 2018-2019 Andrius Baruckis www.baruckis.com | mycryptocoins.baruckis.com | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.baruckis.mycryptocoins.utilities | ||
|
||
/** | ||
* Constants used throughout the app for DEMO build. | ||
*/ | ||
|
||
// This testing sandbox has free access to all endpoints and all subscription plans to test with a | ||
// snapshot of CoinMarketCap market data. It is used for DEMO purpose. | ||
const val API_SERVICE_BASE_URL = "https://sandbox-api.coinmarketcap.com/" | ||
|
||
const val API_SERVICE_AUTHENTICATION_KEY = "" // TODO: Use your API Key provided by CoinMarketCap Professional API Developer Portal. | ||
|
||
// This is dedicated test Ad Unit ID for Android rewarded video. | ||
const val ADMOB_AD_UNIT_ID = "ca-app-pub-3940256099942544/5224354917" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="utf-8"?><!-- | ||
~ Copyright 2018-2019 Andrius Baruckis www.baruckis.com | mycryptocoins.baruckis.com | ||
~ | ||
~ Licensed under the Apache License, Version 2.0 (the "License"); | ||
~ you may not use this file except in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
--> | ||
|
||
<!-- Strings used throughout the app for DEMO build. --> | ||
|
||
<resources> | ||
|
||
<string name="app_version" translatable="false">@string/app_version_demo</string> | ||
<string name="app_subtitle" translatable="false">@string/app_subtitle_demo</string> | ||
|
||
<!-- App ID provided by Google AdMob is just for testing. --> | ||
<string name="admob_app_id" translatable="false">"ca-app-pub-3940256099942544~3347511713"</string> | ||
|
||
</resources> |
30 changes: 30 additions & 0 deletions
30
app/src/full/java/com/baruckis/mycryptocoins/utilities/ConstantsFlavor.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Copyright 2018-2019 Andrius Baruckis www.baruckis.com | mycryptocoins.baruckis.com | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.baruckis.mycryptocoins.utilities | ||
|
||
/** | ||
* Constants used throughout the app for FULL build. | ||
*/ | ||
|
||
// This is live production environment with the latest market data of CoinMarketCap. | ||
// It is used for FULL release version to Google Play Store. | ||
const val API_SERVICE_BASE_URL = "https://pro-api.coinmarketcap.com/" | ||
|
||
const val API_SERVICE_AUTHENTICATION_KEY = "" // TODO: Use your API Key provided by CoinMarketCap Professional API Developer Portal. | ||
|
||
// This is dedicated real Ad Unit ID for Android rewarded video. | ||
const val ADMOB_AD_UNIT_ID = "" // TODO: Use your Ad Unit ID provided by Google AdMob. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="utf-8"?><!-- | ||
~ Copyright 2018-2019 Andrius Baruckis www.baruckis.com | mycryptocoins.baruckis.com | ||
~ | ||
~ Licensed under the Apache License, Version 2.0 (the "License"); | ||
~ you may not use this file except in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
--> | ||
|
||
<!-- Strings used throughout the app for FULL build. --> | ||
|
||
<resources> | ||
|
||
<string name="app_version" translatable="false">@string/app_version_full</string> | ||
<string name="app_subtitle" translatable="false">@string/app_subtitle_full</string> | ||
|
||
<!-- TODO: Use your App ID provided by Google AdMob. --> | ||
<string name="admob_app_id" translatable="false">""</string> | ||
|
||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters