diff --git a/LICENSE b/LICENSE.txt similarity index 99% rename from LICENSE rename to LICENSE.txt index b195edfb..bc2737b2 100644 --- a/LICENSE +++ b/LICENSE.txt @@ -1,13 +1,16 @@ Copyright (C) 2017 Jakob Nixdorf Copyright (C) 2015 Bruno Bierbaumer + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE diff --git a/README.md b/README.md index 6c70b7a8..d5bffea0 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,7 @@ goes to Bruno. #### Open-source components used: * [Apache Commons Codec](https://commons.apache.org/proper/commons-codec/) + * [LicensesDialog](https://github.com/PSDev/LicensesDialog) * [MaterialProgressBar](https://github.com/DreaminginCodeZH/MaterialProgressBar) * [ZXing Android Embedded](https://github.com/journeyapps/zxing-android-embedded) diff --git a/app/build.gradle b/app/build.gradle index 06c63946..d9431ff3 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -30,6 +30,7 @@ android { dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' + compile ('de.psdev.licensesdialog:licensesdialog:1.8.2') {exclude module: 'jsr305'} compile 'com.android.support:appcompat-v7:25.3.1' compile 'com.android.support:design:25.3.1' compile 'com.android.support:recyclerview-v7:25.3.1' diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 2feecaa8..347831c9 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -23,6 +23,10 @@ + + + diff --git a/app/src/main/res/drawable/ic_copyright_gray.xml b/app/src/main/res/drawable/ic_copyright_gray.xml new file mode 100644 index 00000000..525d614e --- /dev/null +++ b/app/src/main/res/drawable/ic_copyright_gray.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_history_gray.xml b/app/src/main/res/drawable/ic_history_gray.xml new file mode 100644 index 00000000..022b772a --- /dev/null +++ b/app/src/main/res/drawable/ic_history_gray.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_info_outline_gray.xml b/app/src/main/res/drawable/ic_info_outline_gray.xml new file mode 100644 index 00000000..f3d52358 --- /dev/null +++ b/app/src/main/res/drawable/ic_info_outline_gray.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/layout/content_about.xml b/app/src/main/res/layout/content_about.xml new file mode 100644 index 00000000..c2aa6969 --- /dev/null +++ b/app/src/main/res/layout/content_about.xml @@ -0,0 +1,238 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/dialog_about.xml b/app/src/main/res/layout/dialog_about.xml deleted file mode 100644 index acdc1785..00000000 --- a/app/src/main/res/layout/dialog_about.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/raw/licenses.xml b/app/src/main/res/raw/licenses.xml new file mode 100644 index 00000000..fcf9a0b4 --- /dev/null +++ b/app/src/main/res/raw/licenses.xml @@ -0,0 +1,21 @@ + + + + Apache Commons Codec + https://commons.apache.org/proper/commons-codec + Copyright 2002-2014 The Apache Software Foundation + Apache Software License 2.0 + + + MaterialProgressBar + https://github.com/DreaminginCodeZH/MaterialProgressBar + Copyright 2015 Zhang Hai + Apache Software License 2.0 + + + ZXing Android Embedded + https://github.com/journeyapps/zxing-android-embedded + Copyright (C) 2012-2017 ZXing authors, Journey Mobile + Apache Software License 2.0 + + \ No newline at end of file diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index fd1016be..a146b09a 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -7,6 +7,7 @@ 16dp 0dp + 4dp 2dp diff --git a/app/src/main/res/values/strings_about.xml b/app/src/main/res/values/strings_about.xml new file mode 100644 index 00000000..4e79e79c --- /dev/null +++ b/app/src/main/res/values/strings_about.xml @@ -0,0 +1,15 @@ + + + About + + + An open-source two-factor authentication App for Android 4.4+. + + + Changelog + License + Open source licenses + MIT License + Source code + Version + \ No newline at end of file diff --git a/app/src/main/res/values/strings_main.xml b/app/src/main/res/values/strings_main.xml index 8fb288c6..a4976fd4 100644 --- a/app/src/main/res/values/strings_main.xml +++ b/app/src/main/res/values/strings_main.xml @@ -46,15 +46,4 @@ Enter your device credentials to start andOTP. Are you sure you want do remove this account? - - - - An open-source two-factor authentication App for Android 4.4+. - - Version - https://github.com/flocke/andOTP - - Copyright © 2017 Jakob Nixdorf\n - Copyright © 2015 Bruno Bierbaumer -