From 6944f4a68aa0a7f04f8bc74c639ae5f4ab93bddf Mon Sep 17 00:00:00 2001 From: Christian Schabesberger Date: Mon, 12 Sep 2016 00:33:11 +0200 Subject: [PATCH] add copyright headers and update sdk --- app/build.gradle | 10 +++++----- .../org/schabi/newpipe/ChannelActivity.java | 18 ++++++++++++++++++ .../org/schabi/newpipe/ErrorActivity.java | 8 ++++---- .../java/org/schabi/newpipe/MainActivity.java | 16 ++++++++++++++++ .../schabi/newpipe/download/MainActivity.java | 1 + .../newpipe/info_list/InfoItemHolder.java | 19 ++++++++++++++++++- .../newpipe/info_list/InfoListAdapter.java | 19 ++++++++++++++++++- .../SearchInfoItemFragment.java | 16 ++++++++++++++++ .../SearchSuggestionListener.java | 19 ++++++++++++++++++- .../newpipe/search_fragment/SearchWorker.java | 18 +++++++++++++++++- .../SuggestionListAdapter.java | 18 +++++++++++++++++- .../SuggestionSearchRunnable.java | 18 +++++++++++++++++- .../newpipe/settings/NewPipeSettings.java | 19 +++++++++++++++++++ 13 files changed, 184 insertions(+), 15 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 3d122e516..6e07de082 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'com.android.application' android { compileSdkVersion 24 - buildToolsVersion '23.0.2' + buildToolsVersion '23.0.3' defaultConfig { applicationId "org.schabi.newpipe" @@ -32,10 +32,10 @@ android { dependencies { testCompile 'junit:junit:4.12' - compile 'com.android.support:appcompat-v7:24.1.1' - compile 'com.android.support:support-v4:24.1.1' - compile 'com.android.support:design:24.1.1' - compile 'com.android.support:recyclerview-v7:24.1.1' + compile 'com.android.support:appcompat-v7:24.2.0' + compile 'com.android.support:support-v4:24.2.0' + compile 'com.android.support:design:24.2.0' + compile 'com.android.support:recyclerview-v7:24.2.0' compile 'org.jsoup:jsoup:1.8.3' compile 'org.mozilla:rhino:1.7.7' compile 'info.guardianproject.netcipher:netcipher:1.2' diff --git a/app/src/main/java/org/schabi/newpipe/ChannelActivity.java b/app/src/main/java/org/schabi/newpipe/ChannelActivity.java index a58182a5e..7f5aaf1f8 100644 --- a/app/src/main/java/org/schabi/newpipe/ChannelActivity.java +++ b/app/src/main/java/org/schabi/newpipe/ChannelActivity.java @@ -30,6 +30,24 @@ import org.schabi.newpipe.info_list.InfoListAdapter; import java.io.IOException; +/** + * Copyright (C) Christian Schabesberger 2016 + * ChannelActivity.java is part of NewPipe. + * + * NewPipe is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * NewPipe is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with NewPipe. If not, see . + */ + public class ChannelActivity extends AppCompatActivity { diff --git a/app/src/main/java/org/schabi/newpipe/ErrorActivity.java b/app/src/main/java/org/schabi/newpipe/ErrorActivity.java index a992f0fd1..485a19c6d 100644 --- a/app/src/main/java/org/schabi/newpipe/ErrorActivity.java +++ b/app/src/main/java/org/schabi/newpipe/ErrorActivity.java @@ -38,20 +38,20 @@ import java.util.Vector; /** * Created by Christian Schabesberger on 24.10.15. - *

+ * * Copyright (C) Christian Schabesberger 2016 * ErrorActivity.java is part of NewPipe. - *

+ * * NewPipe is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. - *

+ * < * NewPipe is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - *

+ * < * You should have received a copy of the GNU General Public License * along with NewPipe. If not, see . */ diff --git a/app/src/main/java/org/schabi/newpipe/MainActivity.java b/app/src/main/java/org/schabi/newpipe/MainActivity.java index e8f7189a4..e94d7591c 100644 --- a/app/src/main/java/org/schabi/newpipe/MainActivity.java +++ b/app/src/main/java/org/schabi/newpipe/MainActivity.java @@ -14,6 +14,22 @@ import org.schabi.newpipe.settings.SettingsActivity; /** * Created by Christian Schabesberger on 02.08.16. + * + * Copyright (C) Christian Schabesberger 2016 + * MainActivity.java is part of NewPipe. + * + * NewPipe is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * NewPipe is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with NewPipe. If not, see . */ public class MainActivity extends AppCompatActivity { diff --git a/app/src/main/java/org/schabi/newpipe/download/MainActivity.java b/app/src/main/java/org/schabi/newpipe/download/MainActivity.java index a62d645f7..ec4d97dda 100644 --- a/app/src/main/java/org/schabi/newpipe/download/MainActivity.java +++ b/app/src/main/java/org/schabi/newpipe/download/MainActivity.java @@ -95,6 +95,7 @@ public class MainActivity extends AppCompatActivity implements AdapterView.OnIte actionBar.setTitle(R.string.downloads_title); actionBar.setDisplayShowTitleEnabled(true); + //todo: this needs to be fixed Context.MODE_WORLD_READABLE is obsolet mPrefs = getSharedPreferences(THREADS, Context.MODE_WORLD_READABLE); // Fragment diff --git a/app/src/main/java/org/schabi/newpipe/info_list/InfoItemHolder.java b/app/src/main/java/org/schabi/newpipe/info_list/InfoItemHolder.java index 0e3374dcc..dbba4ac5f 100644 --- a/app/src/main/java/org/schabi/newpipe/info_list/InfoItemHolder.java +++ b/app/src/main/java/org/schabi/newpipe/info_list/InfoItemHolder.java @@ -9,8 +9,25 @@ import android.widget.TextView; import org.schabi.newpipe.R; /** - * Created by the-scrabi on 01.08.16. + * Created by Christian Schabesberger on 01.08.16. + * + * Copyright (C) Christian Schabesberger 2016 + * InfoItemHolder.java is part of NewPipe. + * + * NewPipe is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * NewPipe is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with NewPipe. If not, see . */ + public class InfoItemHolder extends RecyclerView.ViewHolder { public ImageView itemThumbnailView; diff --git a/app/src/main/java/org/schabi/newpipe/info_list/InfoListAdapter.java b/app/src/main/java/org/schabi/newpipe/info_list/InfoListAdapter.java index 365ed246e..ba23d95ba 100644 --- a/app/src/main/java/org/schabi/newpipe/info_list/InfoListAdapter.java +++ b/app/src/main/java/org/schabi/newpipe/info_list/InfoListAdapter.java @@ -18,8 +18,25 @@ import java.util.List; import java.util.Vector; /** - * Created by the-scrabi on 01.08.16. + * Created by Christian Schabesberger on 01.08.16. + * + * Copyright (C) Christian Schabesberger 2016 + * InfoListAdapter.java is part of NewPipe. + * + * NewPipe is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * NewPipe is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with NewPipe. If not, see . */ + public class InfoListAdapter extends RecyclerView.Adapter { public interface OnItemSelectedListener { diff --git a/app/src/main/java/org/schabi/newpipe/search_fragment/SearchInfoItemFragment.java b/app/src/main/java/org/schabi/newpipe/search_fragment/SearchInfoItemFragment.java index 99d2a57dd..52fc305fb 100644 --- a/app/src/main/java/org/schabi/newpipe/search_fragment/SearchInfoItemFragment.java +++ b/app/src/main/java/org/schabi/newpipe/search_fragment/SearchInfoItemFragment.java @@ -28,6 +28,22 @@ import org.schabi.newpipe.info_list.InfoListAdapter; /** * Created by Christian Schabesberger on 02.08.16. + * + * Copyright (C) Christian Schabesberger 2016 + * SearchInfoItemFragment.java is part of NewPipe. + * + * NewPipe is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * NewPipe is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with NewPipe. If not, see . */ public class SearchInfoItemFragment extends Fragment { diff --git a/app/src/main/java/org/schabi/newpipe/search_fragment/SearchSuggestionListener.java b/app/src/main/java/org/schabi/newpipe/search_fragment/SearchSuggestionListener.java index 833af8521..df6aacd6b 100644 --- a/app/src/main/java/org/schabi/newpipe/search_fragment/SearchSuggestionListener.java +++ b/app/src/main/java/org/schabi/newpipe/search_fragment/SearchSuggestionListener.java @@ -3,9 +3,26 @@ package org.schabi.newpipe.search_fragment; import android.support.v7.widget.SearchView; /** - * Created by the-scrabi on 02.08.16. + * Created by Christian Schabesberger on 02.08.16. + * + * Copyright (C) Christian Schabesberger 2016 + * SearchSuggestionListener.java is part of NewPipe. + * + * NewPipe is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * NewPipe is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with NewPipe. If not, see . */ + public class SearchSuggestionListener implements SearchView.OnSuggestionListener{ private SearchView searchView; diff --git a/app/src/main/java/org/schabi/newpipe/search_fragment/SearchWorker.java b/app/src/main/java/org/schabi/newpipe/search_fragment/SearchWorker.java index d14cdbd41..11de3b185 100644 --- a/app/src/main/java/org/schabi/newpipe/search_fragment/SearchWorker.java +++ b/app/src/main/java/org/schabi/newpipe/search_fragment/SearchWorker.java @@ -19,7 +19,23 @@ import org.schabi.newpipe.extractor.ServiceList; import java.io.IOException; /** - * Created by the-scrabi on 02.08.16. + * Created by Christian Schabesberger on 02.08.16. + * + * Copyright (C) Christian Schabesberger 2016 + * SearchWorker.java is part of NewPipe. + * + * NewPipe is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * NewPipe is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with NewPipe. If not, see . */ diff --git a/app/src/main/java/org/schabi/newpipe/search_fragment/SuggestionListAdapter.java b/app/src/main/java/org/schabi/newpipe/search_fragment/SuggestionListAdapter.java index 5a8ae2ce7..dc085f685 100644 --- a/app/src/main/java/org/schabi/newpipe/search_fragment/SuggestionListAdapter.java +++ b/app/src/main/java/org/schabi/newpipe/search_fragment/SuggestionListAdapter.java @@ -12,7 +12,23 @@ import android.widget.TextView; import java.util.List; /** - * Created by the-scrabi on 02.08.16. + * Created by Christian Schabesberger on 02.08.16. + * + * Copyright (C) Christian Schabesberger 2016 + * SuggestionListAdapter.java is part of NewPipe. + * + * NewPipe is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * NewPipe is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with NewPipe. If not, see . */ public class SuggestionListAdapter extends CursorAdapter { diff --git a/app/src/main/java/org/schabi/newpipe/search_fragment/SuggestionSearchRunnable.java b/app/src/main/java/org/schabi/newpipe/search_fragment/SuggestionSearchRunnable.java index 94308200d..71a3ef1ba 100644 --- a/app/src/main/java/org/schabi/newpipe/search_fragment/SuggestionSearchRunnable.java +++ b/app/src/main/java/org/schabi/newpipe/search_fragment/SuggestionSearchRunnable.java @@ -18,7 +18,23 @@ import java.io.IOException; import java.util.List; /** - * Created by the-scrabi on 02.08.16. + * Created by Christian Schabesberger on 02.08.16. + * + * Copyright (C) Christian Schabesberger 2016 + * SuggestionSearchRunnable.java is part of NewPipe. + * + * NewPipe is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * NewPipe is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with NewPipe. If not, see . */ public class SuggestionSearchRunnable implements Runnable{ diff --git a/app/src/main/java/org/schabi/newpipe/settings/NewPipeSettings.java b/app/src/main/java/org/schabi/newpipe/settings/NewPipeSettings.java index 0c3d29e59..3934655b6 100644 --- a/app/src/main/java/org/schabi/newpipe/settings/NewPipeSettings.java +++ b/app/src/main/java/org/schabi/newpipe/settings/NewPipeSettings.java @@ -35,6 +35,25 @@ import us.shandian.giga.util.Utility; /** * Helper for global settings */ + +/** + * Copyright (C) Christian Schabesberger 2016 + * NewPipeSettings.java is part of NewPipe. + * + * NewPipe is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * NewPipe is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with NewPipe. If not, see . + */ + public class NewPipeSettings { private NewPipeSettings() {