hedera-sdk-java icon indicating copy to clipboard operation
hedera-sdk-java copied to clipboard

Make android example easier to compile with current SDK version

Open Sean-Tedrow-LB opened this issue 2 years ago • 0 comments

Problem

The android example was set up to pull an older version of the hedera SDK from the maven repo. We sorta hacked it to get it working with the current SDK version, but it could be a lot better. Getting it to run currently requires a lot of manual shenanigans.

Solution

The example probably should pull from the maven repo, because it's an example for how users should set up their project/gradle file, and that is what we want them to do.

However, in the top level gradle file, there should probably be a task to easily build and run the android example with this version of the SDK.

The way we've hacked things at the moment, the android example depends on the "sdk/build/lib/*.jar" file. Because it is not a fat jar, we also had to manually add all of the SDK's dependencies.

We should clean all of this up so that the android example's gradle file looks like what we'd expect, but it's also easy and convenient to build the android example with the current SDK version if desired.

Alternatives

No response

Sean-Tedrow-LB avatar Aug 27 '22 01:08 Sean-Tedrow-LB