mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 20:54:34 +00:00
Added invite link configuration
This commit is contained in:
parent
980e634d90
commit
74a4a25fd2
2 changed files with 8 additions and 1 deletions
|
@ -51,6 +51,7 @@ android {
|
|||
full {
|
||||
dimension "all"
|
||||
buildConfigField "boolean", "PLAY_STORE_RELEASE", "false"
|
||||
buildConfigField "String", "INVITE_LINK", "\"https://email.faircode.eu/\""
|
||||
buildConfigField "String", "PRO_FEATURES", "\"https://email.faircode.eu/donate/\""
|
||||
buildConfigField "String", "GITHUB_LATEST_API", "\"https://api.github.com/repos/M66B/open-source-email/releases/latest\""
|
||||
buildConfigField "boolean", "BETA_RELEASE", "true"
|
||||
|
@ -58,6 +59,7 @@ android {
|
|||
play_beta {
|
||||
dimension "all"
|
||||
buildConfigField "boolean", "PLAY_STORE_RELEASE", "true"
|
||||
buildConfigField "String", "INVITE_LINK", "\"https://play.google.com/apps/testing/eu.faircode.email\""
|
||||
buildConfigField "String", "PRO_FEATURES", "\"https://email.faircode.eu/#pro\""
|
||||
buildConfigField "String", "GITHUB_LATEST_API", "\"\""
|
||||
buildConfigField "boolean", "BETA_RELEASE", "true"
|
||||
|
@ -65,6 +67,7 @@ android {
|
|||
play_release {
|
||||
dimension "all"
|
||||
buildConfigField "boolean", "PLAY_STORE_RELEASE", "true"
|
||||
buildConfigField "String", "INVITE_LINK", "\"https://play.google.com/store/apps/details?id=eu.faircode.email\""
|
||||
buildConfigField "String", "PRO_FEATURES", "\"https://email.faircode.eu/#pro\""
|
||||
buildConfigField "String", "GITHUB_LATEST_API", "\"\""
|
||||
buildConfigField "boolean", "BETA_RELEASE", "false"
|
||||
|
|
|
@ -804,10 +804,14 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||
}
|
||||
|
||||
private Intent getIntentInvite() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(getString(R.string.title_try)).append("\n\n");
|
||||
sb.append(BuildConfig.INVITE_LINK).append("\n\n");
|
||||
|
||||
Intent intent = new Intent(Intent.ACTION_SEND);
|
||||
intent.setType("text/plain");
|
||||
intent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.app_name));
|
||||
intent.putExtra(Intent.EXTRA_TEXT, getString(R.string.title_try) + "\n\nhttps://email.faircode.eu/\n\n");
|
||||
intent.putExtra(Intent.EXTRA_TEXT, sb.toString());
|
||||
return intent;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue