// Path: app/src/main/java/discovery/contentful/CFApp.java
// public class CFApp extends Application {
//   public static CFApp sInstance;
// 
//   @Override
//   public void onCreate() {
//     super.onCreate();
// 
//     sInstance = this;
//   }
// 
//   public static CFApp getInstance() {
//     return sInstance;
//   }
// }
// 
// Path: app/src/main/java/discovery/contentful/db/schema/CredentialsTable.java
// public final class CredentialsTable {
//   private CredentialsTable() {
//   }
// 
//   public static final String NAME = "credentials";
// 
//   public static final class Columns implements BaseColumns {
//     public static final String SPACE_NAME = "space_name";
//     public static final String SPACE = "space";
//     public static final String TOKEN = "token";
//     public static final String LAST_LOGIN = "last_login";
//   }
// 
//   public static final String CREATE = "CREATE TABLE " + NAME + " ("
//       + Columns._ID + " INTEGER PRIMARY KEY AUTOINCREMENT, "
//       + Columns.SPACE_NAME + " STRING NOT NULL, "
//       + Columns.SPACE + " STRING NOT NULL, "
//       + Columns.TOKEN + " STRING NOT NULL, "
//       + Columns.LAST_LOGIN + " STRING, "
//       + "UNIQUE (" + Columns.SPACE + ", " + Columns.TOKEN + ")"
//       + ");";
// }


import android.content.ContentValues;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.support.annotation.StringRes;
import discovery.contentful.CFApp;
import discovery.contentful.R;
import discovery.contentful.db.schema.CredentialsTable;
import org.apache.commons.lang3.StringUtils;
package discovery.contentful.db;


public class DBHelper extends SQLiteOpenHelper {
  private static DBHelper sInstance;

  private static final String DB_NAME =
// Path: app/src/main/java/discovery/contentful/CFApp.java
// public class CFApp extends Application {
//   public static CFApp sInstance;
// 
//   @Override
//   public void onCreate() {
//     super.onCreate();
// 
//     sInstance = this;
//   }
// 
//   public static CFApp getInstance() {
//     return sInstance;
//   }
// }
// 
// Path: app/src/main/java/discovery/contentful/db/schema/CredentialsTable.java
// public final class CredentialsTable {
//   private CredentialsTable() {
//   }
// 
//   public static final String NAME = "credentials";
// 
//   public static final class Columns implements BaseColumns {
//     public static final String SPACE_NAME = "space_name";
//     public static final String SPACE = "space";
//     public static final String TOKEN = "token";
//     public static final String LAST_LOGIN = "last_login";
//   }
// 
//   public static final String CREATE = "CREATE TABLE " + NAME + " ("
//       + Columns._ID + " INTEGER PRIMARY KEY AUTOINCREMENT, "
//       + Columns.SPACE_NAME + " STRING NOT NULL, "
//       + Columns.SPACE + " STRING NOT NULL, "
//       + Columns.TOKEN + " STRING NOT NULL, "
//       + Columns.LAST_LOGIN + " STRING, "
//       + "UNIQUE (" + Columns.SPACE + ", " + Columns.TOKEN + ")"
//       + ");";
// }


// Path: app/src/main/java/discovery/contentful/db/DBHelper.java
import android.content.ContentValues;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.support.annotation.StringRes;
import discovery.contentful.CFApp;
import discovery.contentful.R;
import discovery.contentful.db.schema.CredentialsTable;
import org.apache.commons.lang3.StringUtils;

package discovery.contentful.db;


public class DBHelper extends SQLiteOpenHelper {
  private static DBHelper sInstance;

  private static final String DB_NAME =
      CFApp.getInstance().getResources().getString(R.string.db_name);