Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

Latest commit

 

History

History

android

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Helium Android Sample

This project uses 'android' and 'helium' plugins for gradle.

In SampleActivity you'll find imports of classes which sources are not located in src/main/java. Theses classes are generated by Helium from the specification file.

Generation options are defined in build.gradle file.

The project can be easily imported to Android Studio, and generated classes will be accessible in your editor.

Helium also adds an additional task for running REST API tests generated from the spec. To launch these tests run

  gradle runApiTests

After running gradle build you should see a message about failed test. If you open the tests report file, you'll see that there are complains about bad format of field favourites_count for User objects in received response. This is an example how Helium validates received data structures, and tests can be easily fixed with correcting the corresponding line.