Skip to content

Configuration

You are almost finished and ready to compile your apps. but first let's go to client apps customization file and fill some parameters there. Open android folder in Android Studio 3.0+

Options

Tip

To find and open files faster in Android Studio you can use Double Shift Hotkey.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<resources>
    <string name="server_address" translatable="false">http://x.x.x.x:8080/</string>
    <string name="fabric_key" templateMergeStrategy="preserve" translatable="false"></string>
    <string name="stripe_publishable_key" translatable="false"></string>
    <string name="payment_currency" translatable="false">usd</string>
    <string name="google_maps_key" templateMergeStrategy="preserve" translatable="false"></string>
    <string name="defaultLocation" translatable="false"></string>
    <string name="theme" translatable="false">Amaranth</string>
    <!--string name="testMode" translatable="false"></string-->
    <bool name="is_call_request_enabled_driver">true</bool>
    <bool name="is_call_request_enabled_rider">true</bool>
    <bool name="is_direct_call_enabled_driver">true</bool>
    <bool name="is_direct_call_enabled_rider">true</bool>
    <bool name="use_fixed_fee">true</bool>
    <bool name="auto_select_first_driver">false</bool>
    <bool name="show_current_location_button">true</bool>
    <bool name="use_custom_login">false</bool>
    <string name="verification_address"></string>
    <string name="verify_address">false</string>
    <bool name="payment_stripe_enabled">true</bool>
    <bool name="payment_web_enabled">true</bool>
    <string name="charge_first">10</string>
    <string name="charge_second">20</string>
    <string name="charge_third">50</string>
</resources>

server_address (Important)

Enter external IP address+port of your server.

Example

The value would look like this: http://8.8.8.8:8080/

google_maps_key (Important)

You will need to enter Google Maps API Key you have retrieved in previous section here.

Example

The format should be like [lat],[lng] for example: 40.1792,44.4991

ApplicationId

In previous sections you have selected an applicationId. now change the default applicationId to the one you have selected in each project's build.gradle file.