adding Kotlin and Stetho licenses

This commit is contained in:
tibbi 2016-11-20 23:54:14 +01:00
parent 0d375a5a29
commit 3e99f73732
9 changed files with 50 additions and 0 deletions

View File

@ -11,7 +11,10 @@ class LicenseActivity : SimpleActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_license)
license_kotlin_title.setOnClickListener { openUrl(R.string.kotlin_url) }
license_ambilwarna_title.setOnClickListener { openUrl(R.string.ambilwarna_url) }
license_stetho_title.setOnClickListener { openUrl(R.string.stetho_url) }
}
private fun openUrl(id: Int) {

View File

@ -13,10 +13,25 @@
android:padding="@dimen/activity_margin">
<TextView
android:id="@+id/license_notice"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/notice"/>
<TextView
android:id="@+id/license_kotlin_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="@dimen/activity_margin"
android:text="@string/kotlin_title"
android:textColor="@color/colorPrimary"/>
<TextView
android:id="@+id/license_kotlin_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/kotlin_text"/>
<TextView
android:id="@+id/license_ambilwarna_title"
android:layout_width="match_parent"
@ -31,5 +46,19 @@
android:layout_height="wrap_content"
android:text="@string/ambilwarna_text"/>
<TextView
android:id="@+id/license_stetho_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="@dimen/activity_margin"
android:text="@string/stetho_title"
android:textColor="@color/colorPrimary"/>
<TextView
android:id="@+id/license_stetho_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/stetho_text"/>
</LinearLayout>
</ScrollView>

View File

@ -46,6 +46,8 @@
<!-- License -->
<string name="notice">Diese App nutzt die folgenden Drittanbieterbibliotheken, die mein Leben einfacher machen. Danke.</string>
<string name="third_party_licences">Drittanbieterlizenzen</string>
<string name="kotlin_title"><u>Kotlin (Programmiersprache)</u></string>
<string name="ambilwarna_title"><u>AmbilWarna (Color Picker)</u></string>
<string name="stetho_title"><u>Stetho (debugging databases)</u></string>
</resources>

View File

@ -46,6 +46,8 @@
<!-- License -->
<string name="notice">Esta aplicación usa las siguientes librerías de terceros para hacerme la vida más fácil. Gracias.</string>
<string name="third_party_licences">Licencias de terceros</string>
<string name="kotlin_title"><u>Kotlin (Lenguaje de programación)</u></string>
<string name="ambilwarna_title"><u>AmbilWarna (Selector de colores)</u></string>
<string name="stetho_title"><u>Stetho (debugging databases)</u></string>
</resources>

View File

@ -46,6 +46,8 @@
<!-- License -->
<string name="notice">Questa app usa le seguenti librerie di terze parti per semplificarmi la vita. Grazie.</string>
<string name="third_party_licences">Licenze di terze parti</string>
<string name="kotlin_title"><u>Kotlin (programming language)</u></string>
<string name="ambilwarna_title"><u>AmbilWarna (color picker)</u></string>
<string name="stetho_title"><u>Stetho (debugging databases)</u></string>
</resources>

View File

@ -46,6 +46,8 @@
<!-- License -->
<string name="notice">このアプリは、私の暮らしにゆとりを持たせるために、次のサードパーティのライブラリーを使用しています。 ありがとうございます。</string>
<string name="third_party_licences">サードパーティー ライセンス</string>
<string name="kotlin_title"><u>Kotlin (プログラミング言語)</u></string>
<string name="ambilwarna_title"><u>AmbilWarna (カラー ピッカー)</u></string>
<string name="stetho_title"><u>Stetho (debugging databases)</u></string>
</resources>

View File

@ -46,6 +46,8 @@
<!-- License -->
<string name="notice">Esta aplicação usa as seguintes bibliotecas de terceiros para facilitar a minha vida. Obrigado.</string>
<string name="third_party_licences">Licenças de terceiros</string>
<string name="kotlin_title"><u>Kotlin (linguagem de programação)</u></string>
<string name="ambilwarna_title"><u>AmbilWarna (seletor de cores)</u></string>
<string name="stetho_title"><u>Stetho (debugging databases)</u></string>
</resources>

View File

@ -46,6 +46,8 @@
<!-- License -->
<string name="notice">Denna app använder följande tredjepartsbibliotek för att göra mitt liv enklare. Tack.</string>
<string name="third_party_licences">Tredjepartslicenser</string>
<string name="kotlin_title"><u>Kotlin (programming language)</u></string>
<string name="ambilwarna_title"><u>AmbilWarna (color picker)</u></string>
<string name="stetho_title"><u>Stetho (debugging databases)</u></string>
</resources>

View File

@ -47,8 +47,14 @@
<!-- License -->
<string name="notice">This app uses the following third party libraries to make my life easier. Thank you.</string>
<string name="third_party_licences">Third party licences</string>
<string name="kotlin_title"><u>Kotlin (programming language)</u></string>
<string name="kotlin_text" translatable="false">Copyright 2010 - 2016 JetBrains s.r.o.\n\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.You may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions and limitations under the License.</string>
<string name="kotlin_url" translatable="false">https://github.com/JetBrains/kotlin</string>
<string name="ambilwarna_title"><u>AmbilWarna (color picker)</u></string>
<string name="ambilwarna_text" translatable="false">Copyright 2009-2015 Yuku\n\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.</string>
<string name="ambilwarna_url" translatable="false">https://github.com/yukuku/ambilwarna</string>
<string name="stetho_title"><u>Stetho (debugging databases)</u></string>
<string name="stetho_text" translatable="false">BSD License\n\nFor Stetho software\n\nCopyright (c) 2015, Facebook, Inc. All rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n * Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n * Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n * Neither the name Facebook nor the names of its contributors may be used to\n endorse or promote products derived from this software without specific\n prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</string>
<string name="stetho_url" translatable="false">https://github.com/facebook/stetho</string>
</resources>