Add a new PNP build flavor.

This commit is contained in:
Greyson Parrelli
2023-02-08 15:48:31 -05:00
parent 684150dc1e
commit 803154c544
10 changed files with 60 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ import org.thoughtcrime.securesms.BuildConfig
object Environment {
const val IS_STAGING: Boolean = BuildConfig.BUILD_ENVIRONMENT_TYPE == "Staging"
const val IS_PNP: Boolean = BuildConfig.BUILD_ENVIRONMENT_TYPE == "Pnp"
object Donations {
@JvmStatic

View File

@@ -321,7 +321,7 @@ public final class FeatureFlags {
/** Internal testing extensions. */
public static boolean internalUser() {
return getBoolean(INTERNAL_USER, false);
return getBoolean(INTERNAL_USER, false) || Environment.IS_PNP;
}
/** Whether or not to use the UUID in verification codes. */
@@ -344,7 +344,7 @@ public final class FeatureFlags {
* IMPORTANT: This is under active development. Enabling this *will* break your contacts in terrible, irreversible ways.
*/
public static boolean phoneNumberPrivacy() {
return getBoolean(PHONE_NUMBER_PRIVACY, false);
return getBoolean(PHONE_NUMBER_PRIVACY, false) || Environment.IS_PNP;
}
/** Whether to use the custom streaming muxer or built in android muxer. */