diff --git a/doc/CustomsParameters.txt b/doc/CustomsParameters.txt new file mode 100644 index 000000000..dc39dbba5 --- /dev/null +++ b/doc/CustomsParameters.txt @@ -0,0 +1,72 @@ + ********************************** + * LINPHONE customs parameters * + ********************************** + +In res/values/non_localizable_custom.xml (filled with linphone default options): + +1. Global + + * Set the default domain used by the application: + sip.linphone.orghttps://sip3.linphone.org:444/inapp.php + + * In CreateAccount, allow username instead of phone number for creating a new account + true + + * Hide buttons in assistant menu + false + false + false + + +3. Inapp + + * Enabled inapp purchase + true + + * Days before end of trial period that launch daily notification to remind user to buy an account + 5 + + * Time between two inapp notifications in seconds + 86400 + + * Hide username field in purchase view (automatically get from default account) + true + + +In res/raw/linphonerc_factory sections: + + [in-app-purchase] + * Server xmlrpc url for inapp + server_url=https://sip3.linphone.org:444/inapp.php + + * Item ids from the google play store + purchasable_items_ids=test_account_subscription + + [app] + + * Numbers of digits to enter for validation/recover account + activation_code_length=4 + + + [assistant] + + * Set the default domain used for account creation : + domain=sip.linphone.org + + * Set the default password length (min-max) : + password_max_length=-1 + password_min_length=1 + + * Set the default username length (min-max) : + username_length=-1 + username_max_length=64 + username_min_length=1 + username_regex=^[a-z0-9_.\-]*$ + + * Server xmlrpc url for accounts + xmlrpc_url=https://sip3.linphone.org:444/inapp.php diff --git a/res/layout/assistant_account_creation.xml b/res/layout/assistant_account_creation.xml index ea6bb13ea..165b138dc 100644 --- a/res/layout/assistant_account_creation.xml +++ b/res/layout/assistant_account_creation.xml @@ -103,14 +103,14 @@ android:visibility="gone" android:layout_width="match_parent" android:layout_height="wrap_content" - android:text="Don't use phone number as username"/> + android:text="@string/use_username_instead_or_phone_number"/> + android:text="@string/use_email_for_validation"/> - + android:layout_height="match_parent" + android:gravity="center" + android:orientation="vertical"> - + + + + + + + + + + + + + + + + + + + + + - - - - - - + android:text="@string/login_with_username"/> - + android:layout_height="wrap_content"> - + + + + + + android:layout_height="wrap_content"> + + + + + + +