Updated SnakeYaml version to work on Android devices#9
Open
itsymbal wants to merge 1 commit intoorhanobut:masterfrom
Open
Updated SnakeYaml version to work on Android devices#9itsymbal wants to merge 1 commit intoorhanobut:masterfrom
itsymbal wants to merge 1 commit intoorhanobut:masterfrom
Conversation
|
We are using stock mockwebserverplus but with swapped snakeyaml dependency in our Android projects. androidTestCompile('com.orhanobut:mockwebserverplus:1.0.0') {
exclude module: 'snakeyaml'
}
androidTestCompile 'pl.droidsonroids.yaml:snakeyaml:1.18-android'That artifact is published to maven central, so no additional repository is needed. |
Author
|
That's even better. @orhanobut Should I update the dependency in this PR to use the one @koral suggested? That seems like a better option than relying on a SNAPSHOT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The current version of Yaml (1.14) doesn't work on Android devices or emulators. The newer version supports Android.
Unfortunately, it uses the SNAPSHOT version of the library... SAD! - which means I won't be able to use it offline on the subway... but at least it works.
If there's a better way to do it, by all means, use that way.
The current 1.14 version causes this exception:
I'm going to try to figure out a way to share yaml and json between
testandandroidTestand update the README.