diff options
author | ByteHamster <info@bytehamster.com> | 2020-11-26 19:46:31 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2020-11-26 19:50:20 +0100 |
commit | 73d39cdc55da7f54284086c36ea618b92ca08e74 (patch) | |
tree | 7542e8312627b99acc5f852aff1f4317e084d5ec /app/src | |
parent | 66ee677ebe647d100f0aa32f371085e1c65a1688 (diff) | |
download | AntennaPod-73d39cdc55da7f54284086c36ea618b92ca08e74.zip |
Relicense under the GPL
The license file still needs to include the MIT license.
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/assets/licenses.xml | 2 | ||||
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/preferences/MainPreferencesFragment.java | 11 |
2 files changed, 11 insertions, 2 deletions
diff --git a/app/src/main/assets/licenses.xml b/app/src/main/assets/licenses.xml index 4f0255182..b6e12cf54 100644 --- a/app/src/main/assets/licenses.xml +++ b/app/src/main/assets/licenses.xml @@ -4,7 +4,7 @@ name="AntennaPod" author="The AntennaPod team" website="https://github.com/AntennaPod/AntennaPod/" - license="MIT" + license="GPL-3.0" licenseText="LICENSE.txt" /> <library name="AntennaPod-AudioPlayer" diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/preferences/MainPreferencesFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/preferences/MainPreferencesFragment.java index 7b533cf4e..82e04e301 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/preferences/MainPreferencesFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/preferences/MainPreferencesFragment.java @@ -5,6 +5,7 @@ import android.os.Build; import android.os.Bundle; import android.provider.Settings; import androidx.appcompat.app.AppCompatActivity; +import androidx.preference.Preference; import androidx.preference.PreferenceFragmentCompat; import com.bytehamster.lib.preferencesearch.SearchConfiguration; import com.bytehamster.lib.preferencesearch.SearchPreference; @@ -38,10 +39,18 @@ public class MainPreferencesFragment extends PreferenceFragmentCompat { setupSearch(); // If you are writing a spin-off, please update the details on screens like "About" and "Report bug" - // and afterwards remove the following lines. + // and afterwards remove the following lines. Please keep in mind that AntennaPod is licensed under the GPL. + // This means that your application needs to be open-source under the GPL, too. + // It must also include a prominent copyright notice. String packageName = getContext().getPackageName(); if (!"de.danoeh.antennapod".equals(packageName) && !"de.danoeh.antennapod.debug".equals(packageName)) { findPreference(PREF_CATEGORY_PROJECT).setVisible(false); + Preference copyrightNotice = new Preference(getContext()); + copyrightNotice.setSummary("This application is based on AntennaPod." + + " The AntennaPod team does NOT provide support for this unofficial version." + + " If you can read this message, the developers of this modification" + + " violate the GNU General Public License (GPL)."); + findPreference(PREF_CATEGORY_PROJECT).getParent().addPreference(copyrightNotice); } } |