-
Notifications
You must be signed in to change notification settings - Fork 62
How to build the project
$ git clone https://github.com/raphaelm/opacclient.git opacclient
$ cd opacclient/
You can also do this directly from Android Studio.
We assume you have an Android Studio installation ready to use.
- Start Android Studio and choose 'Open an existing Android Studio project'
- Select the folder
opacclient
inside the repository you just cloned - Start coding!
Should work. If not, play around or email us at [email protected]. Happy hacking!
$ ./gradlew assembleDebug
The Unit Tests connect to all supported libraries and run some basic tests to ensure that the API classes work as intended. Because of the high number of libraries, running the Unit Tests will take quite a long time, and some of them will fail because of unreachable library servers. To run the Unit Tests, follow these steps:
- Click on the
Run -> Edit Configurations...
menu entry in Android Studio - Add a new Run configuration of the
JUnit
type - Set the name of the new run configuration to
tests
- Set
Use classpath of module
totests
- Set the
Class
tode.geeksfactory.opacclient.tests.apitests.LibraryApiTestCases
- Click
OK
to close the Run configurations window and run the Unit Tests using thetests
configuration
The MeaningDetector tool connects to all supported libraries, calls the OpacApi.getSearchFields()
function and tries to detect the meaning of all search fields using the MeaningDetector.detectMeaning(SearchField)
function. If this fails, it will prompt the user to enter the correct meaning for the search field and the tool will change the configuration files in the opacapp\src\main\assets\meanings
directory accordingly.
To run this tool, follow these steps:
- Click on the
Run -> Edit Configurations...
menu entry in Android Studio - Add a new Run configuration of the
Application
type - Set the name of the new run configuration to
meaningdetector
- Set
Use classpath of module
tomeaningdetector
- Set the
Main class
tode.geeksfactory.opacclient.meanings.Main
- Click
OK
to close the Run configurations window and run the tool using themeaningdetector
configuration