Update the list of licenses of our dependencies

This commit is contained in:
Alexander Bakker 2020-08-10 18:49:53 +02:00
parent 7a3ad11902
commit c3d38c18a3
5 changed files with 122 additions and 40 deletions

View file

@ -1,4 +1,4 @@
package com.beemdevelopment.aegis.ui.glide; package com.beemdevelopment.aegis.licenses;
import android.content.Context; import android.content.Context;

View file

@ -0,0 +1,34 @@
package com.beemdevelopment.aegis.licenses;
import android.content.Context;
import com.beemdevelopment.aegis.R;
import de.psdev.licensesdialog.licenses.License;
public class ProtobufLicense extends License {
@Override
public String getName() {
return "Protocol Buffers License";
}
@Override
public String readSummaryTextFromResources(Context context) {
return getContent(context, R.raw.protobuf_license);
}
@Override
public String readFullTextFromResources(Context context) {
return getContent(context, R.raw.protobuf_license);
}
@Override
public String getVersion() {
return null;
}
@Override
public String getUrl() {
return "https://raw.githubusercontent.com/protocolbuffers/protobuf/master/LICENSE";
}
}

View file

@ -19,7 +19,8 @@ import com.beemdevelopment.aegis.BuildConfig;
import com.beemdevelopment.aegis.R; import com.beemdevelopment.aegis.R;
import com.beemdevelopment.aegis.Theme; import com.beemdevelopment.aegis.Theme;
import com.beemdevelopment.aegis.helpers.ThemeHelper; import com.beemdevelopment.aegis.helpers.ThemeHelper;
import com.beemdevelopment.aegis.ui.glide.GlideLicense; import com.beemdevelopment.aegis.licenses.GlideLicense;
import com.beemdevelopment.aegis.licenses.ProtobufLicense;
import com.mikepenz.iconics.context.IconicsLayoutInflater2; import com.mikepenz.iconics.context.IconicsLayoutInflater2;
import de.psdev.licensesdialog.LicenseResolver; import de.psdev.licensesdialog.LicenseResolver;
@ -125,6 +126,8 @@ public class AboutActivity extends AegisActivity {
stylesheet = String.format(stylesheet, backgroundColor, textColor, licenseColor, linkColor); stylesheet = String.format(stylesheet, backgroundColor, textColor, licenseColor, linkColor);
LicenseResolver.registerLicense(new GlideLicense()); LicenseResolver.registerLicense(new GlideLicense());
LicenseResolver.registerLicense(new ProtobufLicense());
new LicensesDialog.Builder(this) new LicensesDialog.Builder(this)
.setNotices(R.raw.notices) .setNotices(R.raw.notices)
.setTitle(R.string.licenses) .setTitle(R.string.licenses)

View file

@ -1,39 +1,15 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<notices> <notices>
<notice> <notice>
<name>TextDrawable</name> <name>Android Jetpack Libraries</name>
<url>https://github.com/amulyakhare/TextDrawable</url> <url>https://developer.android.com/jetpack/androidx</url>
<copyright>Copyright (C) 2014 Amulya Khare</copyright> <copyright>Copyright (C) 2020 The Android Open Source Project</copyright>
<license>MIT License</license>
</notice>
<notice>
<name>Preferencex</name>
<url>https://github.com/takisoft/preferencex-android</url>
<copyright />
<license>Apache Software License 2.0</license> <license>Apache Software License 2.0</license>
</notice> </notice>
<notice>
<name>FloatingActionButton</name>
<url>https://github.com/futuresimple/android-floating-action-button</url>
<copyright>Copyright 2014 Jerzy Chalupski</copyright>
<license>Apache Software License 2.0</license>
</notice>
<notice>
<name>AppIntro</name>
<url>https://github.com/AppIntro/AppIntro</url>
<copyright/>
<license>Apache Software License 2.0</license>
</notice>
<notice>
<name>Krop</name>
<url>https://github.com/avito-tech/krop</url>
<copyright>Copyright (c) 2017 Avito Technology</copyright>
<license>MIT License</license>
</notice>
<notice> <notice>
<name>Bouncy Castle</name> <name>Bouncy Castle</name>
<url>https://www.bouncycastle.org/</url> <url>https://www.bouncycastle.org/</url>
<copyright>Copyright (c) 2000-2019 The Legion of the Bouncy Castle Inc. (http://www.bouncycastle.org)</copyright> <copyright>Copyright (c) 2000-2020 The Legion of the Bouncy Castle Inc. (http://www.bouncycastle.org)</copyright>
<license>MIT License</license> <license>MIT License</license>
</notice> </notice>
<notice> <notice>
@ -43,14 +19,14 @@
<license>Apache Software License 2.0</license> <license>Apache Software License 2.0</license>
</notice> </notice>
<notice> <notice>
<name>Barcodescanner</name> <name>FloatingActionButton</name>
<url>https://github.com/dm77/barcodescanner</url> <url>https://github.com/futuresimple/android-floating-action-button</url>
<copyright>Copyright (c) 2014 Dushyanth Maguluru</copyright> <copyright>Copyright 2014 Jerzy Chalupski</copyright>
<license>Apache Software License 2.0</license> <license>Apache Software License 2.0</license>
</notice> </notice>
<notice> <notice>
<name>libsu</name> <name>Guava</name>
<url>https://github.com/topjohnwu/libsu</url> <url>https://github.com/google/guava</url>
<license>Apache Software License 2.0</license> <license>Apache Software License 2.0</license>
</notice> </notice>
<notice> <notice>
@ -65,14 +41,51 @@
<license>Apache Software License 2.0</license> <license>Apache Software License 2.0</license>
</notice> </notice>
<notice> <notice>
<name>Android Support Libraries</name> <name>Krop</name>
<url>http://developer.android.com/tools/support-library/index.html</url> <url>https://github.com/avito-tech/krop</url>
<copyright>Copyright (C) 2016 The Android Open Source Project</copyright> <copyright>Copyright (c) 2017 Avito Technology</copyright>
<license>MIT License</license>
</notice>
<notice>
<name>libsu</name>
<url>https://github.com/topjohnwu/libsu</url>
<license>Apache Software License 2.0</license> <license>Apache Software License 2.0</license>
</notice> </notice>
<notice> <notice>
<name>SQLCipher for Android</name> <name>LicensesDialog</name>
<url>https://github.com/sqlcipher/android-database-sqlcipher</url> <url>https://github.com/PSDev/LicensesDialog</url>
<license>Apache Software License 2.0</license>
</notice>
<notice>
<name>Material Components for Android</name>
<url>https://github.com/material-components/material-components-android</url>
<license>Apache Software License 2.0</license>
</notice>
<notice>
<name>Protocol Buffers</name>
<url>https://github.com/protocolbuffers/protobuf/tree/master/java</url>
<license>Protocol Buffers License</license>
</notice>
<notice>
<name>TextDrawable</name>
<url>https://github.com/amulyakhare/TextDrawable</url>
<copyright>Copyright (C) 2014 Amulya Khare</copyright>
<license>MIT License</license>
</notice>
<notice>
<name>Zip4j</name>
<url>https://github.com/srikanth-lingala/zip4j</url>
<license>Apache Software License 2.0</license>
</notice>
<notice>
<name>zxcvbn4j</name>
<url>https://github.com/nulab/zxcvbn4j</url>
<copyright>Copyright (c) 2014 Nulab Inc</copyright>
<license>MIT License</license>
</notice>
<notice>
<name>ZXing Buffers</name>
<url>https://github.com/zxing/zxing</url>
<license>Apache Software License 2.0</license> <license>Apache Software License 2.0</license>
</notice> </notice>
</notices> </notices>

View file

@ -0,0 +1,32 @@
Copyright 2008 Google Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Code generated by the Protocol Buffer compiler is owned by the owner
of the input file used when generating it. This code is not
standalone and requires a support library to be linked with it. This
support library is itself covered by the above license.