Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 4 additions & 17 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
classpath 'com.android.tools.build:gradle:2.2.1'
// the latest version of the android-apt plugin for annotations
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
// For publishing stuff to Google Play
Expand All @@ -32,10 +32,6 @@ buildscript {
apply plugin: 'com.android.application'
apply plugin: 'com.github.triplet.play'

// For annotations
apply plugin: 'android-apt'
def AAVersion = '3.3.2'

repositories {
jcenter()
}
Expand All @@ -54,7 +50,9 @@ def gitCommitCount =

android {
compileSdkVersion 23
buildToolsVersion '23.0.2'
buildToolsVersion '23.0.3'

dataBinding.enabled = true

lintOptions {
abortOnError false
Expand Down Expand Up @@ -120,14 +118,6 @@ android {
}
}

// annotations
apt {
arguments {
//resourcePackageName android.defaultConfig.applicationId
androidManifestFile variant.outputs[0].processResources.manifestFile
}
}

dependencies {
//compile fileTree(dir: 'libs', include: '*.jar')
compile 'com.android.support:support-v4:23.1.0'
Expand All @@ -146,9 +136,6 @@ dependencies {
compile 'com.squareup.retrofit:retrofit:1.6.1'
// Included libraries
compile project(':external:datetimepicker')
// annotations
apt "org.androidannotations:androidannotations:$AAVersion"
compile "org.androidannotations:androidannotations-api:$AAVersion"
// Dropbox and non-free stuff
playCompile fileTree(dir: 'src/play/libs', include: '*.jar')
playBetaCompile fileTree(dir: 'src/play/libs', include: '*.jar')
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
package com.nononsenseapps.notepad.test;

import com.nononsenseapps.notepad.database.DatabaseHandler;
import com.nononsenseapps.notepad.database.LegacyDBHelper;
import com.nononsenseapps.notepad.database.MyContentProvider;
import com.nononsenseapps.notepad.database.Task;
import com.nononsenseapps.notepad.database.TaskList;
import com.nononsenseapps.notepad.data.local.sql.DatabaseHandler;
import com.nononsenseapps.notepad.data.local.sql.LegacyDBHelper;
import com.nononsenseapps.notepad.data.model.sql.Task;
import com.nononsenseapps.notepad.data.model.sql.TaskList;

import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.test.AndroidTestCase;
import android.test.ProviderTestCase2;
import android.test.RenamingDelegatingContext;
import android.test.mock.MockContentResolver;
import android.test.suitebuilder.annotation.SmallTest;

public class DBFreshTest extends AndroidTestCase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import java.util.HashSet;
import java.util.Random;

import com.nononsenseapps.notepad.database.DAO;
import com.nononsenseapps.notepad.database.Task;
import com.nononsenseapps.notepad.database.TaskList;
import com.nononsenseapps.notepad.data.model.sql.DAO;
import com.nononsenseapps.notepad.data.model.sql.Task;
import com.nononsenseapps.notepad.data.model.sql.TaskList;

import android.content.ContentResolver;
import android.content.ContentValues;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
import java.util.Calendar;
import java.util.List;

import com.nononsenseapps.notepad.database.DatabaseHandler;
import com.nononsenseapps.notepad.database.Task;
import com.nononsenseapps.notepad.database.TaskList;
import com.nononsenseapps.notepad.data.model.sql.Task;
import com.nononsenseapps.notepad.data.model.sql.TaskList;

import android.content.ContentResolver;
import android.content.Context;
Expand All @@ -15,10 +14,10 @@
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.MediumTest;

import static com.nononsenseapps.notepad.database.DatabaseHandler.resetTestDatabase;
import static com.nononsenseapps.notepad.database.DatabaseHandler.setEmptyTestDatabase;
import static com.nononsenseapps.notepad.database.DatabaseHandler.setFreshTestDatabase;
import static com.nononsenseapps.notepad.database.DatabaseHandler.setTestDatabase;
import static com.nononsenseapps.notepad.data.local.sql.DatabaseHandler.resetTestDatabase;
import static com.nononsenseapps.notepad.data.local.sql.DatabaseHandler.setEmptyTestDatabase;
import static com.nononsenseapps.notepad.data.local.sql.DatabaseHandler.setFreshTestDatabase;
import static com.nononsenseapps.notepad.data.local.sql.DatabaseHandler.setTestDatabase;

public class DBProviderTest extends AndroidTestCase {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,19 @@
package com.nononsenseapps.notepad.test;

import java.io.File;
import com.nononsenseapps.notepad.data.local.sql.DatabaseHandler;
import com.nononsenseapps.notepad.data.local.sql.LegacyDBHelper;
import com.nononsenseapps.notepad.data.local.sql.LegacyDBHelper.NotePad;
import com.nononsenseapps.notepad.data.model.sql.Notification;
import com.nononsenseapps.notepad.data.model.sql.Task;
import com.nononsenseapps.notepad.data.model.sql.TaskList;

import com.nononsenseapps.notepad.R;
import com.nononsenseapps.notepad.database.DatabaseHandler;
import com.nononsenseapps.notepad.database.LegacyDBHelper;
import com.nononsenseapps.notepad.database.LegacyDBHelper.NotePad;
import com.nononsenseapps.notepad.database.Notification;
import com.nononsenseapps.notepad.database.Task;
import com.nononsenseapps.notepad.database.TaskList;

import android.annotation.SuppressLint;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.provider.BaseColumns;
import android.test.AndroidTestCase;
import android.test.RenamingDelegatingContext;
import android.test.suitebuilder.annotation.MediumTest;
import android.test.suitebuilder.annotation.SmallTest;

public class DBUpgradeTest extends AndroidTestCase {
static final String PREFIX = "dbupgrade_test_";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.nononsenseapps.notepad.test;

import com.nononsenseapps.notepad.database.Task;
import com.nononsenseapps.notepad.data.model.sql.Task;

import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.MediumTest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import android.test.ActivityInstrumentationTestCase2;
import android.test.suitebuilder.annotation.SmallTest;

import com.nononsenseapps.notepad.dashclock.TasksSettings;
import com.nononsenseapps.notepad.ui.dashclock.TasksSettings;
import com.squareup.spoon.Spoon;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
import android.test.suitebuilder.annotation.SmallTest;

import com.nononsenseapps.notepad.R;
import com.nononsenseapps.notepad.activities.ActivityEditor;
import com.nononsenseapps.notepad.database.Task;
import com.nononsenseapps.notepad.ui.editor.ActivityEditor;
import com.nononsenseapps.notepad.data.model.sql.Task;
import com.squareup.spoon.Spoon;

public class FragmentTaskDetailTest extends ActivityInstrumentationTestCase2<ActivityEditor> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@
import android.test.ActivityInstrumentationTestCase2;
import android.test.suitebuilder.annotation.SmallTest;
import android.view.View;
import android.widget.ListView;

import com.nononsenseapps.notepad.R;
import com.nononsenseapps.notepad.activities.ActivityList;
import com.nononsenseapps.notepad.ui.list.ActivityList;
import com.squareup.spoon.Spoon;

public class FragmentTaskListsTest extends ActivityInstrumentationTestCase2<ActivityList> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,22 @@
import java.util.HashMap;
import java.util.List;

import com.nononsenseapps.notepad.database.DatabaseHandler;
import com.nononsenseapps.notepad.database.Task;
import com.nononsenseapps.notepad.database.TaskList;
import com.nononsenseapps.notepad.sync.googleapi.GoogleTask;
import com.nononsenseapps.notepad.sync.googleapi.GoogleTaskList;
import com.nononsenseapps.notepad.sync.googleapi.GoogleTaskSync;
import com.nononsenseapps.notepad.data.model.sql.Task;
import com.nononsenseapps.notepad.data.model.sql.TaskList;
import com.nononsenseapps.notepad.data.model.gtasks.GoogleTask;
import com.nononsenseapps.notepad.data.model.gtasks.GoogleTaskList;
import com.nononsenseapps.notepad.data.remote.gtasks.GoogleTaskSync;

import android.database.Cursor;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
import android.util.Log;
import android.util.Pair;

import static com.nononsenseapps.notepad.database.DatabaseHandler.resetTestDatabase;
import static com.nononsenseapps.notepad.database.DatabaseHandler.setEmptyTestDatabase;
import static com.nononsenseapps.notepad.database.DatabaseHandler.setFreshTestDatabase;
import static com.nononsenseapps.notepad.database.DatabaseHandler.setTestDatabase;
import static com.nononsenseapps.notepad.data.local.sql.DatabaseHandler.resetTestDatabase;
import static com.nononsenseapps.notepad.data.local.sql.DatabaseHandler.setEmptyTestDatabase;
import static com.nononsenseapps.notepad.data.local.sql.DatabaseHandler.setFreshTestDatabase;
import static com.nononsenseapps.notepad.data.local.sql.DatabaseHandler.setTestDatabase;

public class GTaskSyncTest extends AndroidTestCase {
String balle = "balle";
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;

import com.nononsenseapps.notepad.database.RemoteTask;
import com.nononsenseapps.notepad.database.RemoteTaskList;
import com.nononsenseapps.notepad.database.Task;
import com.nononsenseapps.notepad.database.TaskList;
import com.nononsenseapps.notepad.sync.orgsync.OrgConverter;
import com.nononsenseapps.notepad.sync.orgsync.SDSynchronizer;
import com.nononsenseapps.notepad.data.model.sql.RemoteTask;
import com.nononsenseapps.notepad.data.model.sql.RemoteTaskList;
import com.nononsenseapps.notepad.data.model.sql.Task;
import com.nononsenseapps.notepad.data.model.sql.TaskList;
import com.nononsenseapps.notepad.data.local.orgmode.OrgConverter;
import com.nononsenseapps.notepad.data.local.orgmode.SDSynchronizer;

import org.cowboyprogrammer.org.OrgFile;

Expand All @@ -21,9 +21,9 @@
import java.util.ArrayList;
import java.util.HashSet;

import static com.nononsenseapps.notepad.database.DatabaseHandler.resetTestDatabase;
import static com.nononsenseapps.notepad.database.DatabaseHandler.setEmptyTestDatabase;
import static com.nononsenseapps.notepad.database.DatabaseHandler.setTestDatabase;
import static com.nononsenseapps.notepad.data.local.sql.DatabaseHandler.resetTestDatabase;
import static com.nononsenseapps.notepad.data.local.sql.DatabaseHandler.setEmptyTestDatabase;
import static com.nononsenseapps.notepad.data.local.sql.DatabaseHandler.setTestDatabase;

/**
* Test the synchronizer code.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
package com.nononsenseapps.notepad.test;

import java.text.ParseException;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

import android.test.AndroidTestCase;
import android.util.Log;

import com.nononsenseapps.utils.time.RFC3339Date;
import com.nononsenseapps.notepad.util.RFC3339Date;

public class RFCDateTest extends AndroidTestCase {

Expand Down
37 changes: 0 additions & 37 deletions app/src/free/java/com/nononsenseapps/notepad/ActivityLocation.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package com.nononsenseapps.notepad.sync.orgsync;
package com.nononsenseapps.notepad.data.remote.orgmodedropbox;

import android.content.Context;
import android.support.annotation.NonNull;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package com.nononsenseapps.notepad.sync.orgsync;
package com.nononsenseapps.notepad.data.remote.orgmodedropbox;

import android.app.Activity;

import com.nononsenseapps.notepad.prefs.SyncPrefs;
import com.nononsenseapps.notepad.data.local.orgmode.Monitor;
import com.nononsenseapps.notepad.data.local.orgmode.SynchronizerInterface;
import com.nononsenseapps.notepad.data.service.OrgSyncService;
import com.nononsenseapps.notepad.ui.settings.SyncPrefs;

import org.cowboyprogrammer.org.OrgFile;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package com.nononsenseapps.filepicker;
package com.nononsenseapps.notepad.ui.orgmodedropbox;

/**
* Dummy class. See Play build flavor for real one.
Expand Down
Loading