Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Replace hardcode telemetry settings string by resources variant #12707

Merged
merged 1 commit into from
Aug 22, 2018

Conversation

tobrun
Copy link
Member

@tobrun tobrun commented Aug 22, 2018

@tobrun tobrun added the Android Mapbox Maps SDK for Android label Aug 22, 2018
@tobrun tobrun added this to the android-v6.5.0 milestone Aug 22, 2018
@tobrun tobrun self-assigned this Aug 22, 2018
@tobrun tobrun force-pushed the tvn-translatable-telemetry-settings branch from 7b2170f to 0628971 Compare August 22, 2018 05:34
@1ec5 1ec5 added the localization Human language support and internationalization label Aug 22, 2018
public AttributionParser build() {
if (attributionDataStringArray == null) {
throw new IllegalStateException("Using builder without providing attribution data");
}

if (context == null) {
throw new IllegalStateException("Using builder without providing a context");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this a semver-major change?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, you are right, I can revisit this PR so it returns the hardcoded string in case of no context provided.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made this change backwards compatible, see https://github.com/mapbox/mapbox-gl-native/pull/12707/files#diff-4d31b0b92dcd5125ea5d5a966d049f7aR176 where we check for availability for context, if not available use old hardcoded string instead.

@tobrun tobrun force-pushed the tvn-translatable-telemetry-settings branch from 0628971 to e5d3645 Compare August 22, 2018 09:26
@tobrun tobrun merged commit 520df7f into master Aug 22, 2018
@tobrun tobrun deleted the tvn-translatable-telemetry-settings branch June 25, 2019 11:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android localization Human language support and internationalization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants