Skip to content

Commit

Permalink
Rename rocks.ninjachen.exoplayer to rocks.ninjachen.hbridgek
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjachen committed Jun 21, 2018
1 parent b0d97ed commit c928660
Show file tree
Hide file tree
Showing 86 changed files with 156 additions and 176 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rocks.ninjachen.exoplayer;
package rocks.ninjachen.hbridgek;

import android.app.Application;
import android.test.ApplicationTestCase;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rocks.ninjachen.exoplayer;
package rocks.ninjachen.hbridgek;


import android.support.test.rule.ActivityTestRule;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package rocks.ninjachen.exoplayer;
package rocks.ninjachen.hbridgek;


import rocks.ninjachen.hbridgek.BootstrapApplication;
import timber.log.Timber;

public class BootstrapApplicationImpl extends BootstrapApplication {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package rocks.ninjachen.exoplayer;
package rocks.ninjachen.hbridgek;


import rocks.ninjachen.hbridgek.AndroidModule;
import rocks.ninjachen.hbridgek.BootstrapModule;

final class Modules {
static Object[] list() {
return new Object[] {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="rocks.ninjachen.exoplayer">
package="rocks.ninjachen.hbridgek">

<uses-sdk
tools:overrideLibrary="android.support.test.uiautomator.v18"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rocks.ninjachen.exoplayer;
package rocks.ninjachen.hbridgek;

import android.accounts.AccountManager;
import android.app.NotificationManager;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@


package rocks.ninjachen.exoplayer;
package rocks.ninjachen.hbridgek;

import android.app.Application;

import com.crashlytics.android.Crashlytics;

import io.fabric.sdk.android.Fabric;
import rocks.ninjachen.exoplayer.DaggerBootstrapComponent;

/**
* tzpay application
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package rocks.ninjachen.exoplayer;
package rocks.ninjachen.hbridgek;

import javax.inject.Singleton;

import dagger.Component;
import rocks.ninjachen.exoplayer.authenticator.BootstrapAuthenticatorActivity;
import rocks.ninjachen.exoplayer.ui.BootstrapActivity;
import rocks.ninjachen.exoplayer.ui.BootstrapFragment;
import rocks.ninjachen.exoplayer.ui.BootstrapFragmentActivity;
import rocks.ninjachen.hbridgek.authenticator.BootstrapAuthenticatorActivity;
import rocks.ninjachen.hbridgek.ui.BootstrapActivity;
import rocks.ninjachen.hbridgek.ui.BootstrapFragment;
import rocks.ninjachen.hbridgek.ui.BootstrapFragmentActivity;

@Singleton
@Component(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rocks.ninjachen.exoplayer;
package rocks.ninjachen.hbridgek;

import android.accounts.AccountManager;
import android.content.Context;
Expand All @@ -9,16 +9,16 @@
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.squareup.okhttp.OkHttpClient;
import rocks.ninjachen.exoplayer.authenticator.ApiKeyProvider;
import rocks.ninjachen.exoplayer.authenticator.LogoutService;
import rocks.ninjachen.exoplayer.authenticator.LogoutServiceImpl;
import rocks.ninjachen.exoplayer.core.BootstrapService;
import rocks.ninjachen.exoplayer.core.Constants;
import rocks.ninjachen.exoplayer.core.NinjaCookieManager;
import rocks.ninjachen.exoplayer.core.PersistentCookieStore;
import rocks.ninjachen.exoplayer.core.RestAdapterRequestInterceptor;
import rocks.ninjachen.exoplayer.core.RestErrorHandler;
import rocks.ninjachen.exoplayer.core.UserAgentProvider;
import rocks.ninjachen.hbridgek.authenticator.ApiKeyProvider;
import rocks.ninjachen.hbridgek.authenticator.LogoutService;
import rocks.ninjachen.hbridgek.authenticator.LogoutServiceImpl;
import rocks.ninjachen.hbridgek.core.BootstrapService;
import rocks.ninjachen.hbridgek.core.Constants;
import rocks.ninjachen.hbridgek.core.NinjaCookieManager;
import rocks.ninjachen.hbridgek.core.PersistentCookieStore;
import rocks.ninjachen.hbridgek.core.RestAdapterRequestInterceptor;
import rocks.ninjachen.hbridgek.core.RestErrorHandler;
import rocks.ninjachen.hbridgek.core.UserAgentProvider;

import org.greenrobot.eventbus.EventBus;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package rocks.ninjachen.exoplayer;
package rocks.ninjachen.hbridgek;

import android.accounts.AccountsException;
import android.app.Activity;

import rocks.ninjachen.exoplayer.core.BootstrapService;
import rocks.ninjachen.hbridgek.core.BootstrapService;

import java.io.IOException;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

package rocks.ninjachen.exoplayer;
package rocks.ninjachen.hbridgek;

import android.accounts.AccountsException;
import android.app.Activity;

import rocks.ninjachen.exoplayer.authenticator.ApiKeyProvider;
import rocks.ninjachen.exoplayer.core.BootstrapService;
import rocks.ninjachen.hbridgek.authenticator.ApiKeyProvider;
import rocks.ninjachen.hbridgek.core.BootstrapService;

import java.io.IOException;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package rocks.ninjachen.exoplayer.apis;
package rocks.ninjachen.hbridgek.apis;

import rocks.ninjachen.exoplayer.core.Constants;
import rocks.ninjachen.hbridgek.core.Constants;

import retrofit.http.GET;
import retrofit.http.Path;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

package rocks.ninjachen.exoplayer.authenticator;
package rocks.ninjachen.hbridgek.authenticator;

import android.app.Service;
import android.content.Intent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rocks.ninjachen.exoplayer.authenticator;
package rocks.ninjachen.hbridgek.authenticator;

import android.accounts.AccountAuthenticatorResponse;
import android.accounts.AccountManager;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


package rocks.ninjachen.exoplayer.authenticator;
package rocks.ninjachen.hbridgek.authenticator;

import android.accounts.AccountManager;
import android.accounts.AccountManagerFuture;
Expand All @@ -10,11 +10,11 @@

import java.io.IOException;

import rocks.ninjachen.exoplayer.core.BootstrapService;
import rocks.ninjachen.hbridgek.core.BootstrapService;

import static android.accounts.AccountManager.KEY_AUTHTOKEN;
import static rocks.ninjachen.exoplayer.core.Constants.Auth.AUTHTOKEN_TYPE;
import static rocks.ninjachen.exoplayer.core.Constants.Auth.BOOTSTRAP_ACCOUNT_TYPE;
import static rocks.ninjachen.hbridgek.core.Constants.Auth.AUTHTOKEN_TYPE;
import static rocks.ninjachen.hbridgek.core.Constants.Auth.BOOTSTRAP_ACCOUNT_TYPE;

/**
* Bridge class that obtains a API key for the currently configured account
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

package rocks.ninjachen.exoplayer.authenticator;
package rocks.ninjachen.hbridgek.authenticator;

import android.accounts.AbstractAccountAuthenticator;
import android.accounts.Account;
Expand All @@ -10,7 +10,7 @@
import android.content.Intent;
import android.os.Bundle;

import rocks.ninjachen.exoplayer.core.Constants;
import rocks.ninjachen.hbridgek.core.Constants;

import timber.log.Timber;

Expand All @@ -20,7 +20,7 @@
import static android.accounts.AccountManager.KEY_AUTHTOKEN;
import static android.accounts.AccountManager.KEY_BOOLEAN_RESULT;
import static android.accounts.AccountManager.KEY_INTENT;
import static rocks.ninjachen.exoplayer.authenticator.BootstrapAuthenticatorActivity.PARAM_AUTHTOKEN_TYPE;
import static rocks.ninjachen.hbridgek.authenticator.BootstrapAuthenticatorActivity.PARAM_AUTHTOKEN_TYPE;

class BootstrapAccountAuthenticator extends AbstractAccountAuthenticator {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rocks.ninjachen.exoplayer.authenticator;
package rocks.ninjachen.hbridgek.authenticator;

import android.accounts.Account;
import android.accounts.AccountManager;
Expand Down Expand Up @@ -32,18 +32,18 @@
import butterknife.BindView;
import butterknife.ButterKnife;
import retrofit.RetrofitError;
import rocks.ninjachen.exoplayer.BootstrapApplication;
import rocks.ninjachen.hbridgek.BootstrapApplication;
import rocks.ninjachen.exoplayer.R;
import rocks.ninjachen.exoplayer.R.id;
import rocks.ninjachen.exoplayer.R.layout;
import rocks.ninjachen.exoplayer.R.string;
import rocks.ninjachen.exoplayer.core.BootstrapService;
import rocks.ninjachen.exoplayer.core.Constants;
import rocks.ninjachen.exoplayer.events.FakeEvent;
import rocks.ninjachen.exoplayer.events.UnAuthorizedErrorEvent;
import rocks.ninjachen.exoplayer.ui.TextWatcherAdapter;
import rocks.ninjachen.exoplayer.util.SafeAsyncTask;
import rocks.ninjachen.exoplayer.util.Toaster;
import rocks.ninjachen.hbridgek.core.BootstrapService;
import rocks.ninjachen.hbridgek.core.Constants;
import rocks.ninjachen.hbridgek.events.FakeEvent;
import rocks.ninjachen.hbridgek.events.UnAuthorizedErrorEvent;
import rocks.ninjachen.hbridgek.ui.TextWatcherAdapter;
import rocks.ninjachen.hbridgek.util.SafeAsyncTask;
import rocks.ninjachen.hbridgek.util.Toaster;
import timber.log.Timber;

import static android.R.layout.simple_dropdown_item_1line;
Expand Down Expand Up @@ -85,7 +85,8 @@ public class BootstrapAuthenticatorActivity extends ActionBarAccountAuthenticato

@Inject
EventBus eventBus;
@Inject BootstrapService bootstrapService;
@Inject
BootstrapService bootstrapService;

@BindView(id.et_email) protected AutoCompleteTextView emailText;
@BindView(id.et_password) protected EditText passwordText;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rocks.ninjachen.exoplayer.authenticator;
package rocks.ninjachen.hbridgek.authenticator;

public interface LogoutService {
void logout(Runnable onSuccess);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package rocks.ninjachen.exoplayer.authenticator;
package rocks.ninjachen.hbridgek.authenticator;

import android.accounts.Account;
import android.accounts.AccountManager;
import android.accounts.AccountManagerFuture;
import android.content.Context;

import rocks.ninjachen.exoplayer.core.Constants;
import rocks.ninjachen.exoplayer.util.SafeAsyncTask;
import rocks.ninjachen.hbridgek.core.Constants;
import rocks.ninjachen.hbridgek.util.SafeAsyncTask;

import javax.inject.Inject;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rocks.ninjachen.exoplayer.authenticator;
package rocks.ninjachen.hbridgek.authenticator;

import android.app.Activity;
import android.app.AlertDialog;
Expand All @@ -8,12 +8,12 @@

import com.google.gson.Gson;
import com.google.gson.JsonSyntaxException;
import rocks.ninjachen.exoplayer.BootstrapApplication;
import rocks.ninjachen.hbridgek.BootstrapApplication;
import rocks.ninjachen.exoplayer.R;
import rocks.ninjachen.exoplayer.core.ZeonicSettings;
import rocks.ninjachen.exoplayer.entity.ZeonicUser;
import rocks.ninjachen.exoplayer.ui.MainActivity;
import rocks.ninjachen.exoplayer.util.ZeonicUtils;
import rocks.ninjachen.hbridgek.core.ZeonicSettings;
import rocks.ninjachen.hbridgek.entity.ZeonicUser;
import rocks.ninjachen.hbridgek.ui.MainActivity;
import rocks.ninjachen.hbridgek.util.ZeonicUtils;

import timber.log.Timber;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rocks.ninjachen.exoplayer.core;
package rocks.ninjachen.hbridgek.core;


public class ApiError {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

package rocks.ninjachen.exoplayer.core;
package rocks.ninjachen.hbridgek.core;

import rocks.ninjachen.exoplayer.apis.ZeonicService;
import rocks.ninjachen.hbridgek.apis.ZeonicService;

import retrofit.RestAdapter;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


package rocks.ninjachen.exoplayer.core;
package rocks.ninjachen.hbridgek.core;

/**
* Bootstrap constants
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package rocks.ninjachen.exoplayer.core;
package rocks.ninjachen.hbridgek.core;

import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteQueryBuilder;

import com.readystatesoftware.sqliteasset.SQLiteAssetHelper;
import rocks.ninjachen.exoplayer.BootstrapApplication;
import rocks.ninjachen.exoplayer.entity.ZeonicCity;
import rocks.ninjachen.hbridgek.BootstrapApplication;
import rocks.ninjachen.hbridgek.entity.ZeonicCity;

/**
* Created by ninja on 8/30/16.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rocks.ninjachen.exoplayer.core;
package rocks.ninjachen.hbridgek.core;


import android.text.TextUtils;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rocks.ninjachen.exoplayer.core;
package rocks.ninjachen.hbridgek.core;


import android.graphics.Bitmap;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rocks.ninjachen.exoplayer.core;
package rocks.ninjachen.hbridgek.core;

public class IntentFactory {
//TODO implement an Activity and Fragment delegate pattern
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rocks.ninjachen.exoplayer.core;
package rocks.ninjachen.hbridgek.core;

import android.os.Parcel;
import android.os.Parcelable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rocks.ninjachen.exoplayer.core;
package rocks.ninjachen.hbridgek.core;

import java.io.IOException;
import java.net.CookieManager;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rocks.ninjachen.exoplayer.core;
package rocks.ninjachen.hbridgek.core;

/*
* https://gist.github.com/franmontiel/ed12a2295566b7076161#file-persistentcookiestore-java
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rocks.ninjachen.exoplayer.core;
package rocks.ninjachen.hbridgek.core;


import retrofit.RequestInterceptor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package rocks.ninjachen.exoplayer.core;
package rocks.ninjachen.hbridgek.core;

import rocks.ninjachen.exoplayer.events.NetworkErrorEvent;
import rocks.ninjachen.exoplayer.events.RestAdapterErrorEvent;
import rocks.ninjachen.exoplayer.events.UnAuthorizedErrorEvent;
import rocks.ninjachen.hbridgek.events.NetworkErrorEvent;
import rocks.ninjachen.hbridgek.events.RestAdapterErrorEvent;
import rocks.ninjachen.hbridgek.events.UnAuthorizedErrorEvent;

import org.greenrobot.eventbus.EventBus;

Expand Down
Loading

0 comments on commit c928660

Please sign in to comment.