=======================
This project for currency conversion and checking exchange rates
- Clone the Project:
git clone https://github.com/dannijax/fx-converter.git
- Import the project in Android Studio
- Get API key from currencylayer
- Add the gradle.properties file which includes my ACCESS Key or copy the contents in file to the new gradle.properties file
- There are 2 build vaiants in the project.
-
- Submission
- Debug
- switch to the submission variant
- Sync the project, Build and run the application
Unit tests can be found in the app/src/test directory
- Add UI integration tests
- Add Test for viewmodel
- Add settings screen for users to change sync interval time dynamically
By default, build script will perform static code analysys and aggregate results. Build task will fail if any analyzers report errors or warnings. However, you can always choose not to use one or all of them. To disable all analyzers, except Lint, remove following line from your build.gradle script:
apply from: rootProject.file('gradle/check.gradle')
http://tools.android.com/tips/lint
Lint configuration can be found in build.gradle file:
lintOptions {
abortOnError true
checkAllWarnings true
warningsAsErrors true
disable 'AllowBackup', 'ContentDescription', 'InvalidPackage', 'SelectableText', 'SpUsage'
}
You can always suppress Lint warnings using @SuppressLint() annotation. See http://tools.android.com/tips/lint/suppressing-lint-warnings for more details.
Results can be found in ./build/lint-results.html
http://checkstyle.sourceforge.net
CheckStyle configuration files can be found in ./gradle/config/checkstyle folder.
You can disable check for some code fragment using following comments:
//CHECKSTYLE:OFF
String s= "Some"+
"poorly " + "formatted"+" code";
//CHECKSTYLE:ON
Results can be found in ./build/reports/checkstyle