Skip to content

Commit

Permalink
Update open source licenses
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-lopreiato committed Feb 1, 2015
1 parent 3a8866a commit a559780
Show file tree
Hide file tree
Showing 61 changed files with 418 additions and 955 deletions.
695 changes: 21 additions & 674 deletions LICENSE.md

Large diffs are not rendered by default.

9 changes: 4 additions & 5 deletions frc-notebook/src/androidTest/java/BasicTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@

/**
* File created by phil on 4/10/14.
* Copyright 2014, Phil Lopreiato
* This file is part of FRC Notebook.
* FRC Notebook 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.
* FRC Notebook 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 FRC Notebook. If not, see http://www.gnu.org/licenses/.
* Copyright 2015, Phil Lopreiato
* This file is part of FRC Notebook
* FRC Notebook is licensed under the MIT License
* (http://opensource.org/licenses/MIT)
*/
public class BasicTest extends TestCase {

Expand Down
9 changes: 4 additions & 5 deletions frc-notebook/src/androidTest/java/TestStartActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@

/**
* File created by phil on 4/10/14.
* Copyright 2014, Phil Lopreiato
* This file is part of FRC Notebook.
* FRC Notebook 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.
* FRC Notebook 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 FRC Notebook. If not, see http://www.gnu.org/licenses/.
* Copyright 2015, Phil Lopreiato
* This file is part of FRC Notebook
* FRC Notebook is licensed under the MIT License
* (http://opensource.org/licenses/MIT)
*/
public class TestStartActivity extends ActivityInstrumentationTestCase2<StartActivity> {

Expand Down
8 changes: 8 additions & 0 deletions frc-notebook/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,14 @@
android:name="com.plnyyanks.frcnotebook.activities.AddEvent"
android:label="@string/title_activity_add_event" >
</activity>
<activity
android:name="com.plnyyanks.frcnotebook.activities.OpenSourceLicensesActivity"
android:label="@string/license_label"
android:parentActivityName="com.plnyyanks.frcnotebook.activities.StartActivity" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.plnyyanks.frcnotebook.activities.StartActivity" />
</activity>
</application>

<uses-permission android:name="android.permission.INTERNET" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@

/**
* File created by phil on 2/18/14.
* Copyright 2014, Phil Lopreiato
* This file is part of FRC Notebook.
* FRC Notebook 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.
* FRC Notebook 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 FRC Notebook. If not, see http://www.gnu.org/licenses/.
* Copyright 2015, Phil Lopreiato
* This file is part of FRC Notebook
* FRC Notebook is licensed under the MIT License
* (http://opensource.org/licenses/MIT)
*/
public class Constants {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,24 @@

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;

import com.plnyyanks.frcnotebook.Constants;
import com.plnyyanks.frcnotebook.R;
import com.plnyyanks.frcnotebook.background.ShowLocalEvents;
import com.plnyyanks.frcnotebook.background.ValidateNewEventData;
import com.plnyyanks.frcnotebook.database.PreferenceHandler;
import com.plnyyanks.frcnotebook.dialogs.DatePickerFragment;

/**
* File created by phil on 3/1/14.
* Copyright 2014, Phil Lopreiato
* This file is part of FRC Notebook.
* FRC Notebook 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.
* FRC Notebook 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 FRC Notebook. If not, see http://www.gnu.org/licenses/.
* Copyright 2015, Phil Lopreiato
* This file is part of FRC Notebook
* FRC Notebook is licensed under the MIT License
* (http://opensource.org/licenses/MIT)
*/
public class AddEvent extends Activity {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@

/**
* File created by phil on 3/1/14.
* Copyright 2014, Phil Lopreiato
* This file is part of FRC Notebook.
* FRC Notebook 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.
* FRC Notebook 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 FRC Notebook. If not, see http://www.gnu.org/licenses/.
* Copyright 2015, Phil Lopreiato
* This file is part of FRC Notebook
* FRC Notebook is licensed under the MIT License
* (http://opensource.org/licenses/MIT)
*/
public class EventDownloadActivity extends Activity {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@

/**
* File created by phil on 3/1/14.
* Copyright 2014, Phil Lopreiato
* This file is part of FRC Notebook.
* FRC Notebook 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.
* FRC Notebook 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 FRC Notebook. If not, see http://www.gnu.org/licenses/.
* Copyright 2015, Phil Lopreiato
* This file is part of FRC Notebook
* FRC Notebook is licensed under the MIT License
* (http://opensource.org/licenses/MIT)
*/
public class FieldMonitorActivity extends Activity {

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
package com.plnyyanks.frcnotebook.activities;

import android.app.Activity;
import android.os.Bundle;
import android.text.Html;
import android.view.MenuItem;
import android.widget.TextView;

import com.plnyyanks.frcnotebook.R;

import java.io.BufferedReader;
import java.io.InputStreamReader;

/**
* Created by phil on 1/31/15.
* Copyright 2015, Phil Lopreiato
* This file is part of FRC Notebook
* FRC Notebook is licensed under the MIT License
* (http://opensource.org/licenses/MIT)*
*/
public class OpenSourceLicensesActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_open_source_licenses);
TextView text = (TextView) findViewById(R.id.text);
try {
BufferedReader br = new BufferedReader(new InputStreamReader(getResources().openRawResource(R.raw.licenses)));
try {
StringBuilder sb = new StringBuilder();
String line = br.readLine();

while (line != null) {
sb.append(line);
sb.append(System.getProperty("line.separator"));
line = br.readLine();
}
String everything = sb.toString();
text.setText(Html.fromHtml(everything));
} finally {
br.close();
}
} catch (Exception e) {
e.printStackTrace();
text.setText("Error reading licenses file.");
}
}

@Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
if (id == android.R.id.home) {
this.finish();
return true;
}
return super.onOptionsItemSelected(item);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@

/**
* File created by phil on 3/1/14.
* Copyright 2014, Phil Lopreiato
* This file is part of FRC Notebook.
* FRC Notebook 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.
* FRC Notebook 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 FRC Notebook. If not, see http://www.gnu.org/licenses/.
* Copyright 2015, Phil Lopreiato
* This file is part of FRC Notebook
* FRC Notebook is licensed under the MIT License
* (http://opensource.org/licenses/MIT)
*/
public class PredefinedNoteManager extends ListActivity implements AdapterView.OnItemLongClickListener, AdapterView.OnItemClickListener {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,10 @@
*/
/**
* File created by phil on 3/1/14.
* Copyright 2014, Phil Lopreiato
* This file is part of FRC Notebook.
* FRC Notebook 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.
* FRC Notebook 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 FRC Notebook. If not, see http://www.gnu.org/licenses/.
* Copyright 2015, Phil Lopreiato
* This file is part of FRC Notebook
* FRC Notebook is licensed under the MIT License
* (http://opensource.org/licenses/MIT)
*/
public class SettingsActivity extends PreferenceActivity {
/**
Expand Down Expand Up @@ -163,8 +162,8 @@ public boolean onPreferenceClick(Preference preference) {
githubLink.setIntent(new Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/plnyyanks/frc-notebook/")));
Preference changelogLink = (Preference)findPreference("view_changelog");
changelogLink.setIntent(new Intent(Intent.ACTION_VIEW,Uri.parse("https://github.com/plnyyanks/frc-notebook/releases/tag/v"+PreferenceHandler.getAppVersion())));
Preference showLicense = (Preference)findPreference("view_license");
showLicense.setIntent(new Intent(Intent.ACTION_VIEW,Uri.parse("http://www.gnu.org/licenses/gpl-3.0.html")));
Preference licenses = findPreference("licenses");
licenses.setIntent(new Intent(this, OpenSourceLicensesActivity.class));
}

/** {@inheritDoc} */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@

/**
* File created by phil on 3/1/14.
* Copyright 2014, Phil Lopreiato
* This file is part of FRC Notebook.
* FRC Notebook 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.
* FRC Notebook 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 FRC Notebook. If not, see http://www.gnu.org/licenses/.
* Copyright 2015, Phil Lopreiato
* This file is part of FRC Notebook
* FRC Notebook is licensed under the MIT License
* (http://opensource.org/licenses/MIT)
*/
public class StartActivity extends Activity implements ActionBar.OnNavigationListener {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@

/**
* File created by phil on 3/1/14.
* Copyright 2014, Phil Lopreiato
* This file is part of FRC Notebook.
* FRC Notebook 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.
* FRC Notebook 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 FRC Notebook. If not, see http://www.gnu.org/licenses/.
* Copyright 2015, Phil Lopreiato
* This file is part of FRC Notebook
* FRC Notebook is licensed under the MIT License
* (http://opensource.org/licenses/MIT)
*/
public class ViewEvent extends Activity implements ActionBar.TabListener {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@

/**
* File created by phil on 3/1/14.
* Copyright 2014, Phil Lopreiato
* This file is part of FRC Notebook.
* FRC Notebook 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.
* FRC Notebook 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 FRC Notebook. If not, see http://www.gnu.org/licenses/.
* Copyright 2015, Phil Lopreiato
* This file is part of FRC Notebook
* FRC Notebook is licensed under the MIT License
* (http://opensource.org/licenses/MIT)
*/
public class ViewMatch extends Activity {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@

/**
* File created by phil on 3/1/14.
* Copyright 2014, Phil Lopreiato
* This file is part of FRC Notebook.
* FRC Notebook 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.
* FRC Notebook 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 FRC Notebook. If not, see http://www.gnu.org/licenses/.
* Copyright 2015, Phil Lopreiato
* This file is part of FRC Notebook
* FRC Notebook is licensed under the MIT License
* (http://opensource.org/licenses/MIT)
*/
public class ViewTeam extends Activity implements ActionBar.TabListener {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@

/**
* File created by phil on 2/26/14.
* Copyright 2014, Phil Lopreiato
* This file is part of FRC Notebook.
* FRC Notebook 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.
* FRC Notebook 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 FRC Notebook. If not, see http://www.gnu.org/licenses/.
* Copyright 2015, Phil Lopreiato
* This file is part of FRC Notebook
* FRC Notebook is licensed under the MIT License
* (http://opensource.org/licenses/MIT)
*/
public abstract class ActionBarCallback implements ActionMode.Callback{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@

/**
* File created by phil on 3/16/14.
* Copyright 2014, Phil Lopreiato
* This file is part of FRC Notebook.
* FRC Notebook 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.
* FRC Notebook 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 FRC Notebook. If not, see http://www.gnu.org/licenses/.
* Copyright 2015, Phil Lopreiato
* This file is part of FRC Notebook
* FRC Notebook is licensed under the MIT License
* (http://opensource.org/licenses/MIT)
*/
public interface AdapterInterface {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@

/**
* File created by phil on 3/10/14.
* Copyright 2014, Phil Lopreiato
* This file is part of FRC Notebook.
* FRC Notebook 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.
* FRC Notebook 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 FRC Notebook. If not, see http://www.gnu.org/licenses/.
* Copyright 2015, Phil Lopreiato
* This file is part of FRC Notebook
* FRC Notebook is licensed under the MIT License
* (http://opensource.org/licenses/MIT)
*/
public class AllianceExpandableListAdapter extends CustomExapandableListAdapter {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@

/**
* File created by phil on 2/23/2014.
* Copyright 2014, Phil Lopreiato
* This file is part of FRC Notebook.
* FRC Notebook 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.
* FRC Notebook 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 FRC Notebook. If not, see http://www.gnu.org/licenses/.
* Copyright 2015, Phil Lopreiato
* This file is part of FRC Notebook
* FRC Notebook is licensed under the MIT License
* (http://opensource.org/licenses/MIT)
*/
public abstract class CustomExapandableListAdapter extends BaseExpandableListAdapter implements AdapterInterface{

Expand Down
Loading

0 comments on commit a559780

Please sign in to comment.