Extract share url to build config
This commit is contained in:
parent
9265bb5c54
commit
3f7333020d
4 changed files with 5 additions and 5 deletions
|
@ -38,11 +38,13 @@ android {
|
|||
|
||||
productFlavors {
|
||||
free {
|
||||
buildConfigField "String", "SHARE_URL", "\"https://github.com/btimofeev/UniPatcher\""
|
||||
buildConfigField "String", "PAYPAL_USER", "\"btimofeev@emunix.org\""
|
||||
buildConfigField "String", "PAYPAL_CURRENCY_CODE", "\"USD\""
|
||||
buildConfigField "String", "BITCOIN_ADDRESS", "\"16coztryz7xbNNDNhhf98wuHmi3hEintsW\""
|
||||
}
|
||||
google {
|
||||
buildConfigField "String", "SHARE_URL", "\"https://play.google.com/store/apps/details?id=org.eminix.unipatcher\""
|
||||
buildConfigField "String", "GOOGLE_PLAY_PUBKEY", "\"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA384jTCBEuJ8nCWaC4S6AFrnMQN4mBlmkOXHV3Xg5hlFOl8TkVwiCfqz8r20yJpEy0IJ1+3QRnlq59zadUxbkD+PacJlGB/r2b3mbKfu+m0K+e/0aL6eWupjMSIyPgpnbN3uswiBEGUb4ytzYF53ZKTbLARnruQdMnjV6+VyfwMgpor/48anVQawDARBj/AIAj6VGtRHLmg6DmKDyOGQ7uCgXSv+ysnBKJjtIX/L/5nQgL8Q+9jsr2knuWY7j9BmrtpUXaDH3Kb50M1TOCKiqxPGa8lInOOIndABWxcpqmSMXP06SPYOanUlEH7lT0jjqpHpFNx8hRTT9xf652rgMJwIDAQAB\""
|
||||
}
|
||||
}
|
||||
|
|
|
@ -185,7 +185,7 @@ public class MainActivity extends AppCompatActivity
|
|||
Intent shareIntent = new Intent(Intent.ACTION_SEND);
|
||||
shareIntent.setType("text/plain");
|
||||
shareIntent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.app_name));
|
||||
shareIntent.putExtra(Intent.EXTRA_TEXT, getString(R.string.share_text) + "https://play.google.com/store/apps/details?id=org.eminix.unipatcher");
|
||||
shareIntent.putExtra(Intent.EXTRA_TEXT, getString(R.string.share_text) + BuildConfig.SHARE_URL);
|
||||
startActivity(Intent.createChooser(shareIntent, getString(R.string.share_dialog_title)));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -131,8 +131,7 @@
|
|||
<string name="send_feedback_error_no_email_apps">Non ci sono client email installati</string>
|
||||
|
||||
<string name="share_dialog_title">Condividi UniPatcher</string>
|
||||
<string name="share_text">Scarica il miglior patcher di ROM per Android. Supporta i formati IPS, IPS32, UPS, BPS, APS (GBA), APS (N64), PPF, DPS, EBP e XDelta3.\\n\\n
|
||||
</string>
|
||||
<string name="share_text">Scarica il miglior patcher di ROM per Android. Supporta i formati IPS, IPS32, UPS, BPS, APS (GBA), APS (N64), PPF, DPS, EBP e XDelta3.\n\n</string>
|
||||
|
||||
<!-- Navigation list -->
|
||||
<string name="nav_apply_patch">Applica patch</string>
|
||||
|
|
|
@ -131,8 +131,7 @@
|
|||
<string name="send_feedback_error_no_email_apps">Не установлен email клиент</string>
|
||||
|
||||
<string name="share_dialog_title">Рассказать о UniPatcher</string>
|
||||
<string name="share_text">Скачай лучший ROM патчер для Android. Поддерживает патчи в форматах IPS, IPS32, UPS, BPS, APS (GBA), APS (N64), PPF, DPS, EBP и XDelta3.\\n\\n
|
||||
</string>
|
||||
<string name="share_text">Скачай лучший ROM патчер для Android. Поддерживает патчи в форматах IPS, IPS32, UPS, BPS, APS (GBA), APS (N64), PPF, DPS, EBP и XDelta3.\n\n</string>
|
||||
|
||||
<!-- Navigation list -->
|
||||
<string name="nav_apply_patch">Применить патч</string>
|
||||
|
|
Loading…
Add table
Reference in a new issue