Skip to content

Support Gradle and Android 7.0#7

Merged
vsbogd merged 21 commits intosingnet:masterfrom
vsbogd:gradle-plugin
Dec 27, 2019
Merged

Support Gradle and Android 7.0#7
vsbogd merged 21 commits intosingnet:masterfrom
vsbogd:gradle-plugin

Conversation

@vsbogd
Copy link
Copy Markdown
Member

@vsbogd vsbogd commented Dec 25, 2019

List of changes which were done to support Gradle and Android starting from 7.0:

  • Get rid of using command line web3j to generate Java stubs for Solidity contracts
  • Move SDK plugin core into separate project plugin-core
  • Add unit tests for SDK plugin core
  • Add Gradle SDK plugin to support Android platform
  • Add instruction about using SDK in Gradle
  • Add own base64 implementation and tests to support Android 7.0
  • Remove Guava usage as it is conflicted with Gradle Android plugin
  • Downgrade web3j version to 4.2.0-android to support Android 7.0

Changes are relatively simple and organized by commits. It is better to review this PR commit by commit.

@vsbogd vsbogd requested a review from raamb December 25, 2019 15:43
if (!parent.isDirectory() && !parent.mkdirs()) {
throw new IOException("failed to create directory " + parent);
}
try (OutputStream o = Files.newOutputStream(f.toPath())) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Does a try without catch does anything?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, it is try with block, it closes OutputStream o after leaving the block. So it is equal to

OutputStream o = Files.newOutputStream(f.toPath());
try {
} finally {
  o.close();
}

@noskill
Copy link
Copy Markdown

noskill commented Dec 27, 2019

looks good to me

@vsbogd vsbogd merged commit b9ba923 into singnet:master Dec 27, 2019
@vsbogd
Copy link
Copy Markdown
Member Author

vsbogd commented Dec 27, 2019

Thanks @noskill !

@vsbogd vsbogd deleted the gradle-plugin branch December 27, 2019 15:53
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