Skip to content

Commit

Permalink
Issue #SB-857 chore: Added production build flavour in gradle.propert…
Browse files Browse the repository at this point in the history
…ies.example
  • Loading branch information
anilguptatarento committed Dec 6, 2017
1 parent 24e3f1c commit c65b20a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ Mobile app for sunbird software. Provides the mobile interfaces for all function
6. You need to generate key and secret for `mobile_app` user using JWT token of `mobile_admin` user.
Please find the steps here
[https://github.com/project-sunbird/sunbird-devops/blob/master/Installation.md#step-6-generate-key-and-secrets-for-mobile-app](https://github.com/project-sunbird/sunbird-devops/blob/master/Installation.md#step-6-generate-key-and-secrets-for-mobile-app)
7. If You want to change the app name go to sunbird-android/app/src/main/res/values/strings.xml and give the required app name.
7. If You want to `change the app name` go to sunbird-android/app/src/main/res/values/strings.xml and give the required app name.
8. For app logo changing goto sunbird-android/app/src/main/res folder, here in all mipmap folders and drawable folder replace `ic_launcher.png` image with your logo. Logo name should be `ic_launcher.png`
10. If you would like to show contents only for the given channelId than change the value of `FILTER_CONTENT_BY_CHANNEL_ID` to true, by default it's false.
10. If you would like to show contents only for the given channelId than change the value of `FILTER_CONTENT_BY_CHANNEL_ID` to true, by default it's false in `build.gradle`
11. Give your external path value in `Constants.class EXTERNAL_PATH`

## Reporting Issues
We have an open and active [issue tracker](https://github.com/project-sunbird/sunbird-commons/issues). Please report any issues or you find.
8 changes: 4 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,15 @@ android {
buildConfigField 'String', 'CONTENT_BASE_URL', '"https://staging.open-sunbird.org/api/content/v1"'
buildConfigField 'String', 'APIGATEWAY_BASE_URL', '"https://staging.open-sunbird.org/api/api-manager/v1"'
buildConfigField 'String', 'PLAYER_CONFIG', '"org.sunbird.utils.PlayerConfig"'
buildConfigField 'String', 'PRODUCER_ID', '"$PRODUCER_ID$"'
buildConfigField 'String', 'CHANNEL_ID', '"$CHANNEL_ID$"'
buildConfigField 'String', 'PRODUCER_ID', "${production_producer_id}"
buildConfigField 'String', 'CHANNEL_ID', "${production_channel_id}"
buildConfigField 'boolean', 'FILTER_CONTENT_BY_CHANNEL_ID', "false"
buildConfigField 'int', 'MIN_COMPATIBILITY_LEVEL', "1"
buildConfigField 'int', 'MAX_COMPATIBILITY_LEVEL', "4"
buildConfigField 'String', 'LOG_LEVEL', '"INFO"'
buildConfigField 'String', 'MOBILE_APP_CONSUMER', '"mobile_device"'
buildConfigField 'String', 'MOBILE_APP_KEY', '"$MOBILE_APP_KEY$"'
buildConfigField 'String', 'MOBILE_APP_SECRET', '"$MOBILE_APP_SECRET$"'
buildConfigField 'String', 'MOBILE_APP_KEY', "${production_mobile_app_key}"
buildConfigField 'String', 'MOBILE_APP_SECRET', "${production_mobile_app_secret}"
}
}

Expand Down
6 changes: 5 additions & 1 deletion gradle.properties.example
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,8 @@ dev_mobile_app_secret = "DEV_MOBILE_APP_SECRET"
staging_producer_id = "STAGING_PRODUCER_ID"
staging_channel_id = "STAGING_CHANNEL_ID"
staging_mobile_app_key = "STAGING_MOBILE_APP_KEY"
staging_mobile_app_secret = "STAGING_MOBILE_APP_SECRET"
staging_mobile_app_secret = "STAGING_MOBILE_APP_SECRET"
production_producer_id = "PRODUCTION_PRODUCER_ID"
production_channel_id = "PRODUCTION_CHANNEL_ID"
production_mobile_app_key = "PRODUCTION_MOBILE_APP_KEY"
production_mobile_app_secret = "PRODUCTION_MOBILE_APP_SECRET"

0 comments on commit c65b20a

Please sign in to comment.