Update the list of licenses of our dependencies

pull/561/head
Alexander Bakker 5 years ago
parent 7a3ad11902
commit c3d38c18a3

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

@ -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";
}
}

@ -19,7 +19,8 @@ import com.beemdevelopment.aegis.BuildConfig;
import com.beemdevelopment.aegis.R;
import com.beemdevelopment.aegis.Theme;
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 de.psdev.licensesdialog.LicenseResolver;
@ -125,6 +126,8 @@ public class AboutActivity extends AegisActivity {
stylesheet = String.format(stylesheet, backgroundColor, textColor, licenseColor, linkColor);
LicenseResolver.registerLicense(new GlideLicense());
LicenseResolver.registerLicense(new ProtobufLicense());
new LicensesDialog.Builder(this)
.setNotices(R.raw.notices)
.setTitle(R.string.licenses)

@ -1,15 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<notices>
<notice>
<name>TextDrawable</name>
<url>https://github.com/amulyakhare/TextDrawable</url>
<copyright>Copyright (C) 2014 Amulya Khare</copyright>
<name>Android Jetpack Libraries</name>
<url>https://developer.android.com/jetpack/androidx</url>
<copyright>Copyright (C) 2020 The Android Open Source Project</copyright>
<license>Apache Software License 2.0</license>
</notice>
<notice>
<name>Bouncy Castle</name>
<url>https://www.bouncycastle.org/</url>
<copyright>Copyright (c) 2000-2020 The Legion of the Bouncy Castle Inc. (http://www.bouncycastle.org)</copyright>
<license>MIT License</license>
</notice>
<notice>
<name>Preferencex</name>
<url>https://github.com/takisoft/preferencex-android</url>
<copyright />
<name>CircleImageView</name>
<url>https://github.com/hdodenhof/CircleImageView</url>
<copyright>Copyright 2014 - 2019 Henning Dodenhof</copyright>
<license>Apache Software License 2.0</license>
</notice>
<notice>
@ -19,8 +25,18 @@
<license>Apache Software License 2.0</license>
</notice>
<notice>
<name>AppIntro</name>
<url>https://github.com/AppIntro/AppIntro</url>
<name>Guava</name>
<url>https://github.com/google/guava</url>
<license>Apache Software License 2.0</license>
</notice>
<notice>
<name>Glide</name>
<url>https://github.com/bumptech/glide</url>
<license>Glide License</license>
</notice>
<notice>
<name>Iconics</name>
<url>https://github.com/mikepenz/Android-Iconics</url>
<copyright/>
<license>Apache Software License 2.0</license>
</notice>
@ -31,48 +47,45 @@
<license>MIT License</license>
</notice>
<notice>
<name>Bouncy Castle</name>
<url>https://www.bouncycastle.org/</url>
<copyright>Copyright (c) 2000-2019 The Legion of the Bouncy Castle Inc. (http://www.bouncycastle.org)</copyright>
<license>MIT License</license>
<name>libsu</name>
<url>https://github.com/topjohnwu/libsu</url>
<license>Apache Software License 2.0</license>
</notice>
<notice>
<name>CircleImageView</name>
<url>https://github.com/hdodenhof/CircleImageView</url>
<copyright>Copyright 2014 - 2019 Henning Dodenhof</copyright>
<name>LicensesDialog</name>
<url>https://github.com/PSDev/LicensesDialog</url>
<license>Apache Software License 2.0</license>
</notice>
<notice>
<name>Barcodescanner</name>
<url>https://github.com/dm77/barcodescanner</url>
<copyright>Copyright (c) 2014 Dushyanth Maguluru</copyright>
<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>libsu</name>
<url>https://github.com/topjohnwu/libsu</url>
<license>Apache Software License 2.0</license>
<name>Protocol Buffers</name>
<url>https://github.com/protocolbuffers/protobuf/tree/master/java</url>
<license>Protocol Buffers License</license>
</notice>
<notice>
<name>Glide</name>
<url>https://github.com/bumptech/glide</url>
<license>Glide License</license>
<name>TextDrawable</name>
<url>https://github.com/amulyakhare/TextDrawable</url>
<copyright>Copyright (C) 2014 Amulya Khare</copyright>
<license>MIT License</license>
</notice>
<notice>
<name>Iconics</name>
<url>https://github.com/mikepenz/Android-Iconics</url>
<copyright/>
<name>Zip4j</name>
<url>https://github.com/srikanth-lingala/zip4j</url>
<license>Apache Software License 2.0</license>
</notice>
<notice>
<name>Android Support Libraries</name>
<url>http://developer.android.com/tools/support-library/index.html</url>
<copyright>Copyright (C) 2016 The Android Open Source Project</copyright>
<license>Apache Software License 2.0</license>
<name>zxcvbn4j</name>
<url>https://github.com/nulab/zxcvbn4j</url>
<copyright>Copyright (c) 2014 Nulab Inc</copyright>
<license>MIT License</license>
</notice>
<notice>
<name>SQLCipher for Android</name>
<url>https://github.com/sqlcipher/android-database-sqlcipher</url>
<name>ZXing Buffers</name>
<url>https://github.com/zxing/zxing</url>
<license>Apache Software License 2.0</license>
</notice>
</notices>

@ -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.
Loading…
Cancel
Save