Skip to content

Commit

Permalink
Remove unused strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Slion committed Oct 3, 2023
1 parent ad3fbdc commit 325c602
Show file tree
Hide file tree
Showing 42 changed files with 19 additions and 2,415 deletions.
61 changes: 0 additions & 61 deletions app/src/main/res/values-af-rZA/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-ar-rSA/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-bs-rBA/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-ca-rES/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-cs-rCZ/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-da-rDK/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-de-rDE/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-el-rGR/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-en-rGB/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-en-rUS/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-es-rES/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-fi-rFI/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-fr-rFR/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-hr-rHR/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-hu-rHU/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-in-rID/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-it-rIT/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-iw-rIL/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-ja-rJP/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-ko-rKR/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-lt-rLT/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-me-rME/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-nl-rNL/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-no-rNO/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-pl-rPL/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-pt-rBR/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-pt-rPT/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-ro-rRO/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-ru-rRU/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-sat-rIN/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-sr-rCS/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-sr-rSP/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-sv-rSE/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-tr-rTR/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-uk-rUA/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-vi-rVN/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-zh-rCN/strings.xml

Large diffs are not rendered by default.

61 changes: 0 additions & 61 deletions app/src/main/res/values-zh-rTW/strings.xml

Large diffs are not rendered by default.

7 changes: 0 additions & 7 deletions app/src/main/res/values/donottranslate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@

<!-- On tab change -->
<string name="pref_key_on_tab_change_show_animation">pref_key_on_tab_change_show_animation</string>
<string name="pref_key_on_tab_change_vibrate">pref_key_on_tab_change_vibrate</string>

<!-- On tab back -->
<string name="pref_key_on_tab_back_show_animation">pref_key_on_tab_back_show_animation</string>
Expand Down Expand Up @@ -167,12 +166,6 @@
<string name="slions_api_key">eQxvqk5DGEXUBqdt5Y_7rGRxF2m0REdb</string>


<string-array name="block_ad_frequency_list">
<item>@string/block_remote_frequency_daily</item>
<item>@string/block_remote_frequency_weekly</item>
<item>@string/block_remote_frequency_monthly</item>
</string-array>

<string name="two">2</string>
<string name="three">3</string>
<string name="four">4</string>
Expand Down
65 changes: 1 addition & 64 deletions app/src/main/res/values/strings.xml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import com.android.billingclient.api.*
import dagger.hilt.android.AndroidEntryPoint
// See: https://stackoverflow.com/a/54188472/3969362
import org.threeten.bp.Period;
import timber.log.Timber
import javax.inject.Inject

/**
Expand All @@ -49,8 +50,6 @@ class SponsorshipSettingsFragment : AbstractSettingsFragment(),
PurchasesUpdatedListener,
BillingClientStateListener {

private val LOG_TAG = "SponsorshipSettingsFragment"

val SPONSOR_BRONZE = "sponsor.bronze"
val SUBS_SKUS = listOf(SPONSOR_BRONZE)

Expand Down Expand Up @@ -105,7 +104,7 @@ class SponsorshipSettingsFragment : AbstractSettingsFragment(),
* Start connection with Google Play store billing.
*/
private fun connectToPlayBillingService(): Boolean {
Log.d(LOG_TAG, "connectToPlayBillingService")
Timber.d( "connectToPlayBillingService")
if (!playStoreBillingClient.isReady) {
playStoreBillingClient.startConnection(this)
return true
Expand All @@ -120,7 +119,7 @@ class SponsorshipSettingsFragment : AbstractSettingsFragment(),
override fun onBillingSetupFinished(billingResult: BillingResult) {
when (billingResult.responseCode) {
BillingClient.BillingResponseCode.OK -> {
Log.d(LOG_TAG, "onBillingSetupFinished successfully")
Timber.d( "onBillingSetupFinished successfully")
//querySkuDetailsAsync(BillingClient.SkuType.INAPP, GameSku.INAPP_SKUS)
// Ask client for list of available subscriptions
populatePreferenceScreen()
Expand All @@ -129,12 +128,12 @@ class SponsorshipSettingsFragment : AbstractSettingsFragment(),
}
BillingClient.BillingResponseCode.BILLING_UNAVAILABLE -> {
//Some apps may choose to make decisions based on this knowledge.
Log.d(LOG_TAG, billingResult.debugMessage)
Timber.d( billingResult.debugMessage)
}
else -> {
//do nothing. Someone else will connect it through retry policy.
//May choose to send to server though
Log.d(LOG_TAG, billingResult.debugMessage)
Timber.d( billingResult.debugMessage)
}
}
}
Expand All @@ -149,7 +148,7 @@ class SponsorshipSettingsFragment : AbstractSettingsFragment(),
* been called.
**/
override fun onBillingServiceDisconnected() {
Log.d(LOG_TAG, "onBillingServiceDisconnected")
Timber.d( "onBillingServiceDisconnected")
connectToPlayBillingService()
}

Expand Down Expand Up @@ -196,19 +195,19 @@ class SponsorshipSettingsFragment : AbstractSettingsFragment(),
playStoreBillingClient.querySkuDetailsAsync(params) { billingResult, skuDetailsList ->
when (billingResult.responseCode) {
BillingClient.BillingResponseCode.OK -> {
Log.d(LOG_TAG, "populateSubscriptions OK")
Timber.d( "populateSubscriptions OK")
if (skuDetailsList.orEmpty().isNotEmpty()) {
// We got a valid list of SKUs for our subscriptions
var purchases = playStoreBillingClient.queryPurchasesAsync(BillingClient.SkuType.SUBS, PurchasesResponseListener { billingResult, purchases ->
if (billingResult.responseCode == BillingClient.BillingResponseCode.OK) {
//Log.d(LOG_TAG, "Purchases dump: ")
//Timber.d( "Purchases dump: ")
if (purchases.isEmpty()) {
// No valid subscriptions anymore, just downgrade then
// We only do this here for now so unless user goes to Sponsorship activity after expiration she should still be able to use her expired subscriptions
userPreferences.sponsorship = Sponsorship.TIN
} else {
purchases.forEach {
//Log.d(LOG_TAG, it.toString())
//Timber.d( it.toString())
// Take this opportunity to update our entitlements
// That should fix things up for re-installations
if (it.skus.contains(SPONSOR_BRONZE) && it.isAcknowledged) {
Expand All @@ -219,7 +218,7 @@ class SponsorshipSettingsFragment : AbstractSettingsFragment(),

// TODO: do we need to check the result?
skuDetailsList?.forEach { skuDetails ->
Log.d(LOG_TAG, skuDetails.toString())
Timber.d( skuDetails.toString())
val pref = SwitchPreferenceCompat(requireContext())
pref.isSingleLineTitle = false
pref.title = skuDetails.title
Expand Down Expand Up @@ -257,15 +256,15 @@ class SponsorshipSettingsFragment : AbstractSettingsFragment(),
prefCat.addPreference(pref)
}
} else {
Log.e(LOG_TAG, "queryPurchasesAsync failed")
Log.e(LOG_TAG, billingResult.debugMessage)
Timber.e( "queryPurchasesAsync failed")
Timber.e( billingResult.debugMessage)
}
})
}
}
else -> {
Log.e(LOG_TAG, "querySkuDetailsAsync failed")
Log.e(LOG_TAG, billingResult.debugMessage)
Timber.e( "querySkuDetailsAsync failed")
Timber.e( billingResult.debugMessage)
}
}
}
Expand Down Expand Up @@ -336,7 +335,7 @@ class SponsorshipSettingsFragment : AbstractSettingsFragment(),
* We need to acknowledge them.
*/
override fun onPurchasesUpdated(billingResult: BillingResult, purchases: MutableList<Purchase>?) {
Log.d(LOG_TAG, "onPurchasesUpdated")
Timber.d( "onPurchasesUpdated")
when (billingResult.responseCode) {
BillingClient.BillingResponseCode.OK -> {
purchases?.forEach {
Expand All @@ -346,7 +345,7 @@ class SponsorshipSettingsFragment : AbstractSettingsFragment(),
val acknowledgePurchaseParams = AcknowledgePurchaseParams.newBuilder().setPurchaseToken(it.purchaseToken).build()
playStoreBillingClient.acknowledgePurchase(acknowledgePurchaseParams) {
// TODO: Again what should we do with that?
billingResult -> Log.d(LOG_TAG, "onAcknowledgePurchaseResponse: $billingResult")
billingResult -> Timber.d( "onAcknowledgePurchaseResponse: $billingResult")
when (billingResult.responseCode) {
BillingClient.BillingResponseCode.OK -> {
if (it.skus.contains(SPONSOR_BRONZE) ) {
Expand All @@ -369,7 +368,7 @@ class SponsorshipSettingsFragment : AbstractSettingsFragment(),
connectToPlayBillingService()
}
else -> {
Log.i(LOG_TAG, billingResult.debugMessage)
Timber.w(billingResult.debugMessage)
}
}
}
Expand All @@ -385,8 +384,7 @@ class SponsorshipSettingsFragment : AbstractSettingsFragment(),
when (billingResult.responseCode) {
BillingClient.BillingResponseCode.SERVICE_DISCONNECTED -> connectToPlayBillingService()
BillingClient.BillingResponseCode.OK -> succeeded = true
else -> Log.w(LOG_TAG,
"isSubscriptionSupported() error: ${billingResult.debugMessage}")
else -> Timber.w("isSubscriptionSupported() error: ${billingResult.debugMessage}")
}
return succeeded
}
Expand Down
6 changes: 0 additions & 6 deletions app/src/styx/res/values/arrays.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@
<item>@string/action_webpage</item>
</string-array>

<string-array name="block_javascript">
<item>@string/no</item>
<item>@string/unlisted_javascript</item>
<item>@string/listed_javascript</item>
</string-array>

<string-array name="suggestion_name_array">
<item>@string/two</item>
<item>@string/three</item>
Expand Down

0 comments on commit 325c602

Please sign in to comment.