Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply android-sdk-versions-plugin to Telemetry and Core modules #435

Merged
merged 2 commits into from
Nov 15, 2019

Conversation

harvsu
Copy link
Contributor

@harvsu harvsu commented Nov 15, 2019

This plugin https://github.com/mapbox/android-sdk-versions-plugin validates and persists the SDK version into a file in assets folder. This information further feeds into Reformed User Agent.
https://github.com/mapbox/mobile-telemetry/issues/452
https://github.com/mapbox/mobile-telemetry/issues/423

Add generated files to git.
Write tests to ensute the files generated have appropriate information.
@harvsu harvsu requested review from alfwatt and nkukday November 15, 2019 19:39
public void testPersistedCoreSDKInfo() {
Context context = InstrumentationRegistry.getTargetContext();
AssetManager assetManager = context.getAssets();
InputStream is = null;
Copy link
Contributor

Choose a reason for hiding this comment

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

is could use a more meaningful name

public void testPersistedTelemetrySDKInfo() {
Context context = InstrumentationRegistry.getTargetContext();
AssetManager assetManager = context.getAssets();
InputStream is = null;
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above

@harvsu harvsu force-pushed the apply-versions-plugin branch from 11cbde4 to f5471c8 Compare November 15, 2019 21:11
@codecov
Copy link

codecov bot commented Nov 15, 2019

Codecov Report

Merging #435 into master will decrease coverage by 0.01%.
The diff coverage is 60%.

@@             Coverage Diff              @@
##             master     #435      +/-   ##
============================================
- Coverage     68.25%   68.23%   -0.02%     
- Complexity      382      383       +1     
============================================
  Files            68       68              
  Lines          2079     2084       +5     
  Branches        163      163              
============================================
+ Hits           1419     1422       +3     
- Misses          570      571       +1     
- Partials         90       91       +1

@harvsu harvsu merged commit 0559f0c into master Nov 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants