Skip to content

Commit

Permalink
Add copywrite/GPL headers. Add readme and license files.
Browse files Browse the repository at this point in the history
Version bump to 2.0!
  • Loading branch information
corcoran committed May 16, 2014
1 parent c11a469 commit 9cebac7
Show file tree
Hide file tree
Showing 29 changed files with 1,199 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Apphangar/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="ca.mimic.apphangar"
android:permission="android.permission.RECEIVE_BOOT_COMPLETED"
android:versionCode="28"
android:versionName="1.15.6" >
android:versionCode="29"
android:versionName="2.0" >

<uses-permission android:name="android.permission.GET_TASKS" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
Expand Down
20 changes: 20 additions & 0 deletions Apphangar/src/main/aidl/ca/mimic/apphangar/IWatchfulService.aidl
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright © 2014 Jeff Corcoran
*
* This file is part of Hangar.
*
* Hangar 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.
*
* Hangar 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 Hangar. If not, see <http://www.gnu.org/licenses/>.
*
*/

package ca.mimic.apphangar;

interface IWatchfulService {
Expand Down
20 changes: 20 additions & 0 deletions Apphangar/src/main/java/ca/mimic/apphangar/AppDrawer.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright © 2014 Jeff Corcoran
*
* This file is part of Hangar.
*
* Hangar 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.
*
* Hangar 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 Hangar. If not, see <http://www.gnu.org/licenses/>.
*
*/

package ca.mimic.apphangar;

import android.app.PendingIntent;
Expand Down
20 changes: 20 additions & 0 deletions Apphangar/src/main/java/ca/mimic/apphangar/AppsWidget.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright © 2014 Jeff Corcoran
*
* This file is part of Hangar.
*
* Hangar 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.
*
* Hangar 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 Hangar. If not, see <http://www.gnu.org/licenses/>.
*
*/

package ca.mimic.apphangar;

import android.appwidget.AppWidgetManager;
Expand Down
20 changes: 20 additions & 0 deletions Apphangar/src/main/java/ca/mimic/apphangar/AppsWidgetSettings.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright © 2014 Jeff Corcoran
*
* This file is part of Hangar.
*
* Hangar 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.
*
* Hangar 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 Hangar. If not, see <http://www.gnu.org/licenses/>.
*
*/

package ca.mimic.apphangar;

import android.appwidget.AppWidgetManager;
Expand Down
20 changes: 20 additions & 0 deletions Apphangar/src/main/java/ca/mimic/apphangar/BarDrawable.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright © 2014 Jeff Corcoran
*
* This file is part of Hangar.
*
* Hangar 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.
*
* Hangar 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 Hangar. If not, see <http://www.gnu.org/licenses/>.
*
*/

package ca.mimic.apphangar;

import android.graphics.Canvas;
Expand Down
20 changes: 20 additions & 0 deletions Apphangar/src/main/java/ca/mimic/apphangar/BootStart.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright © 2014 Jeff Corcoran
*
* This file is part of Hangar.
*
* Hangar 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.
*
* Hangar 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 Hangar. If not, see <http://www.gnu.org/licenses/>.
*
*/

package ca.mimic.apphangar;

import android.content.BroadcastReceiver;
Expand Down
20 changes: 20 additions & 0 deletions Apphangar/src/main/java/ca/mimic/apphangar/ChangeLog.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright © 2014 Jeff Corcoran
*
* This file is part of Hangar.
*
* Hangar 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.
*
* Hangar 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 Hangar. If not, see <http://www.gnu.org/licenses/>.
*
*/

package ca.mimic.apphangar;

import android.content.Context;
Expand Down
2 changes: 2 additions & 0 deletions Apphangar/src/main/java/ca/mimic/apphangar/ColorHelper.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/*
* Copyright (C) 2013 SlimRoms Project
*
* Modifications to original by Jeff Corcoran
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
Expand Down
20 changes: 20 additions & 0 deletions Apphangar/src/main/java/ca/mimic/apphangar/Donate.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright © 2014 Jeff Corcoran
*
* This file is part of Hangar.
*
* Hangar 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.
*
* Hangar 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 Hangar. If not, see <http://www.gnu.org/licenses/>.
*
*/

package ca.mimic.apphangar;

import android.app.Activity;
Expand Down
59 changes: 59 additions & 0 deletions Apphangar/src/main/java/ca/mimic/apphangar/License.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/*
* Copyright © 2014 Jeff Corcoran
*
* This file is part of Hangar.
*
* Hangar 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.
*
* Hangar 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 Hangar. If not, see <http://www.gnu.org/licenses/>.
*
*/

package ca.mimic.apphangar;

import android.content.Context;
import android.content.Intent;
import android.graphics.Paint;
import android.net.Uri;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

public class License {
Context context;
View mLicense;

License(Context context) {
this.context = context;
}

protected View getView() {
LayoutInflater inflater = (LayoutInflater) context.getSystemService( Context.LAYOUT_INFLATER_SERVICE );
mLicense = inflater.inflate(R.layout.license, null);

TextView mViewSource = (TextView) mLicense.findViewById(R.id.license_view_source);
mViewSource.setPaintFlags(Paint.UNDERLINE_TEXT_FLAG);

LinearLayout mViewSourceCont = (LinearLayout) mViewSource.getParent();
mViewSourceCont.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(context.getResources().getString(R.string.license_github_url)));
context.startActivity(i);
}
});

return mLicense;
}
}
35 changes: 35 additions & 0 deletions Apphangar/src/main/java/ca/mimic/apphangar/Settings.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright © 2014 Jeff Corcoran
*
* This file is part of Hangar.
*
* Hangar 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.
*
* Hangar 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 Hangar. If not, see <http://www.gnu.org/licenses/>.
*
*/

package ca.mimic.apphangar;

import java.util.Collections;
Expand Down Expand Up @@ -306,6 +326,18 @@ public void onClick(DialogInterface dialog, int which) {
.show();
}

protected void launchLicense() {
License license = new License(this);
View mLicense = license.getView();
mLicense.refreshDrawableState();
new AlertDialog.Builder(Settings.this)
.setTitle(R.string.license_title)
.setIcon(R.drawable.ic_launcher)
.setView(mLicense)
.setPositiveButton(R.string.license_accept_button, null)
.show();
}

protected void launchDonate() {
final Donate donate = new Donate(this);
donate.bindServiceConn();
Expand Down Expand Up @@ -434,6 +466,9 @@ public boolean onOptionsItemSelected(MenuItem item) {
} else if (id == R.id.action_donate) {
launchDonate();
return true;
} else if (id == R.id.action_license) {
launchLicense();
return true;
}
return super.onOptionsItemSelected(item);
}
Expand Down
20 changes: 20 additions & 0 deletions Apphangar/src/main/java/ca/mimic/apphangar/StatsWidget.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright © 2014 Jeff Corcoran
*
* This file is part of Hangar.
*
* Hangar 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.
*
* Hangar 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 Hangar. If not, see <http://www.gnu.org/licenses/>.
*
*/

package ca.mimic.apphangar;

import android.app.PendingIntent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright © 2014 Jeff Corcoran
*
* This file is part of Hangar.
*
* Hangar 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.
*
* Hangar 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 Hangar. If not, see <http://www.gnu.org/licenses/>.
*
*/

package ca.mimic.apphangar;

import android.appwidget.AppWidgetManager;
Expand Down
20 changes: 20 additions & 0 deletions Apphangar/src/main/java/ca/mimic/apphangar/Tasks.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright © 2014 Jeff Corcoran
*
* This file is part of Hangar.
*
* Hangar 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.
*
* Hangar 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 Hangar. If not, see <http://www.gnu.org/licenses/>.
*
*/

package ca.mimic.apphangar;

import android.content.Context;
Expand Down
Loading

0 comments on commit 9cebac7

Please sign in to comment.