Updated on 2026-08-14

This commit is contained in:
Tangem 2018-05-28 14:37:16 +03:00
parent 2a8498e464
commit 1d2b869b46
11 changed files with 77 additions and 8 deletions

View file

@ -45,4 +45,5 @@ dependencies {
implementation 'com.scottyab:rootbeer-lib:0.0.6'
implementation 'com.skyfishjy.ripplebackground:library:1.0.1'
implementation 'info.hoang8f:android-segmented:1.0.6'
implementation 'com.google.dagger:dagger:2.13'
}

View file

@ -0,0 +1,41 @@
package com.tangem;
import android.app.Application;
import android.support.v7.app.AppCompatDelegate;
public class AppController extends Application {
private static final String TAG = "." + AppController.class.getSimpleName();
/**
* A singleton instance of the application class for easy access in other places
*/
private static AppController sInstance;
public AppController() {
super();
}
static {
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
}
@Override
public void onCreate() {
super.onCreate();
// init the singleton
sInstance = this;
}
/**
* @return singleton instance
*/
public static synchronized AppController getInstance() {
return sInstance;
}
@Override
public void onTerminate() {
super.onTerminate();
}
}

View file

@ -0,0 +1,15 @@
package com.tangem.DI;
import com.tangem.AppController;
import javax.inject.Singleton;
import dagger.Component;
@Singleton
@Component(modules = {AppModule.class})
public interface AppComponent {
void inject(AppController appController);
}

View file

@ -0,0 +1,8 @@
package com.tangem.DI;
import dagger.Module;
@Module
public class AppModule {
}

View file

@ -1,4 +0,0 @@
package com.tangem;
public class User {
}

View file

@ -8,11 +8,8 @@ import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
public class CommandApdu {

View file

@ -0,0 +1,4 @@
package com.tangem.data.DB;
public class Repository {
}

View file

@ -0,0 +1,4 @@
package com.tangem.data.network;
public class Server {
}

View file

@ -0,0 +1,4 @@
package com.tangem.data.network.model;
public class UserModel {
}

View file

@ -6,7 +6,6 @@ import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.os.Bundle;
import android.support.design.widget.Snackbar;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;