Closed rooftopsparrow closed 7 years ago
Very easy to do: Stack Overflow
Ok, so we can't have both the Device class provided from Dr. Paul and have a Device class we wrote ourselves because the device class packaged in the JAR is in the "default" package:
Classes in the default package are not visible to classes inside a package. When classes are in a different package, then you basically need to import classes. But since it's impossible to import classes in the default package, the only solution is to put those classes in a package.
via Stack Overflow
This means what we wanted to do, isn't possible as far as I can tell. Has anyone successfully done this somehow in their projects?
I think we can make gradle do conditional compile based on some external property. I'll research this some more.
We need the provided JAR to be included in the gradle build project. I will be documenting my findings in this issue.
The main reason we want to do this is to verify our implementation of DeviceUnlocker works with the provided Device, and not coded to specific assumptions made in our own implementation of Device.