// Path: sample/src/main/java/com/tresorit/zerokitsdk/ZerokitApplication.java
// public class ZerokitApplication extends Application {
// 
//     private ApplicationComponent component;
// 
//     public static ZerokitApplication get(Context context) {
//         return (ZerokitApplication) context.getApplicationContext();
//     }
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         component = DaggerApplicationComponent.builder()
//                 .applicationModule(new ApplicationModule(this))
//                 .adminApiModule(new AdminApiModule(BuildConfig.APP_BACKEND, BuildConfig.CLIENT_ID))
//                 .build();
//     }
// 
//     public ApplicationComponent component() {
//         return component;
//     }
// }
// 
// Path: sample/src/main/java/com/tresorit/zerokitsdk/fragment/CreateTresorFragment.java
// public class CreateTresorFragment extends Fragment {
// 
//     @SuppressWarnings("WeakerAccess")
//     @Inject
//     CreateTresorViewModel viewModel;
// 
//     @Nullable
//     @Override
//     public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//         DaggerCreateTresorComponent.builder().applicationComponent(ZerokitApplication.get(getActivity()).component()).build().inject(this);
//         FragmentCreateTresorBinding binding = FragmentCreateTresorBinding.inflate(inflater, container, false);
//         binding.setViewmodel(viewModel);
//         return binding.getRoot();
//     }
// }
// 
// Path: sample/src/main/java/com/tresorit/zerokitsdk/fragment/EncryptTextFragment.java
// public class EncryptTextFragment extends Fragment {
// 
//     @SuppressWarnings({"WeakerAccess", "CanBeFinal"})
//     @Inject
//     EncryptTextViewModel viewModel;
// 
//     @SuppressWarnings({"WeakerAccess", "CanBeFinal"})
//     @Inject
//     EventBus eventBus;
// 
//     @Nullable
//     @Override
//     public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//         DaggerEncryptTextComponent.builder().applicationComponent(ZerokitApplication.get(getActivity()).component()).build().inject(this);
//         FragmentEncryptTextBinding binding = FragmentEncryptTextBinding.inflate(inflater, container, false);
//         binding.setViewmodel(viewModel);
//         return binding.getRoot();
//     }
// 
//     @Override
//     public void onStart() {
//         super.onStart();
//         eventBus.register(viewModel);
//     }
// 
//     @Override
//     public void onStop() {
//         super.onStop();
//         eventBus.unregister(viewModel);
//     }
// }
// 
// Path: sample/src/main/java/com/tresorit/zerokitsdk/fragment/ShareTresorFragment.java
// public class ShareTresorFragment extends Fragment {
// 
//     @SuppressWarnings({"WeakerAccess", "CanBeFinal"})
//     @Inject
//     ShareTresorViewModel viewModel;
// 
//     @SuppressWarnings({"WeakerAccess", "CanBeFinal"})
//     @Inject
//     EventBus eventBus;
// 
// 
//     @Nullable
//     @Override
//     public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//         DaggerShareTresorComponent.builder().applicationComponent(ZerokitApplication.get(getActivity()).component()).build().inject(this);
//         FragmentShareTresorBinding binding = FragmentShareTresorBinding.inflate(inflater, container, false);
//         binding.setViewmodel(viewModel);
//         return binding.getRoot();
//     }
// 
//     @Override
//     public void onStart() {
//         super.onStart();
//         eventBus.register(viewModel);
//     }
// 
//     @Override
//     public void onStop() {
//         super.onStop();
//         eventBus.unregister(viewModel);
//     }
// }


import android.content.Context;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import com.tresorit.zerokitsdk.ZerokitApplication;
import com.tresorit.zerokitsdk.component.DaggerPagerComponent;
import com.tresorit.zerokitsdk.fragment.CreateTresorFragment;
import com.tresorit.zerokitsdk.fragment.EncryptTextFragment;
import com.tresorit.zerokitsdk.fragment.ShareTresorFragment;
import javax.inject.Inject;
package com.tresorit.zerokitsdk.adapter;




public class EncryptPagerAdapter extends FragmentPagerAdapter {

    @SuppressWarnings("WeakerAccess")
    @Inject
// Path: sample/src/main/java/com/tresorit/zerokitsdk/ZerokitApplication.java
// public class ZerokitApplication extends Application {
// 
//     private ApplicationComponent component;
// 
//     public static ZerokitApplication get(Context context) {
//         return (ZerokitApplication) context.getApplicationContext();
//     }
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         component = DaggerApplicationComponent.builder()
//                 .applicationModule(new ApplicationModule(this))
//                 .adminApiModule(new AdminApiModule(BuildConfig.APP_BACKEND, BuildConfig.CLIENT_ID))
//                 .build();
//     }
// 
//     public ApplicationComponent component() {
//         return component;
//     }
// }
// 
// Path: sample/src/main/java/com/tresorit/zerokitsdk/fragment/CreateTresorFragment.java
// public class CreateTresorFragment extends Fragment {
// 
//     @SuppressWarnings("WeakerAccess")
//     @Inject
//     CreateTresorViewModel viewModel;
// 
//     @Nullable
//     @Override
//     public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//         DaggerCreateTresorComponent.builder().applicationComponent(ZerokitApplication.get(getActivity()).component()).build().inject(this);
//         FragmentCreateTresorBinding binding = FragmentCreateTresorBinding.inflate(inflater, container, false);
//         binding.setViewmodel(viewModel);
//         return binding.getRoot();
//     }
// }
// 
// Path: sample/src/main/java/com/tresorit/zerokitsdk/fragment/EncryptTextFragment.java
// public class EncryptTextFragment extends Fragment {
// 
//     @SuppressWarnings({"WeakerAccess", "CanBeFinal"})
//     @Inject
//     EncryptTextViewModel viewModel;
// 
//     @SuppressWarnings({"WeakerAccess", "CanBeFinal"})
//     @Inject
//     EventBus eventBus;
// 
//     @Nullable
//     @Override
//     public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//         DaggerEncryptTextComponent.builder().applicationComponent(ZerokitApplication.get(getActivity()).component()).build().inject(this);
//         FragmentEncryptTextBinding binding = FragmentEncryptTextBinding.inflate(inflater, container, false);
//         binding.setViewmodel(viewModel);
//         return binding.getRoot();
//     }
// 
//     @Override
//     public void onStart() {
//         super.onStart();
//         eventBus.register(viewModel);
//     }
// 
//     @Override
//     public void onStop() {
//         super.onStop();
//         eventBus.unregister(viewModel);
//     }
// }
// 
// Path: sample/src/main/java/com/tresorit/zerokitsdk/fragment/ShareTresorFragment.java
// public class ShareTresorFragment extends Fragment {
// 
//     @SuppressWarnings({"WeakerAccess", "CanBeFinal"})
//     @Inject
//     ShareTresorViewModel viewModel;
// 
//     @SuppressWarnings({"WeakerAccess", "CanBeFinal"})
//     @Inject
//     EventBus eventBus;
// 
// 
//     @Nullable
//     @Override
//     public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//         DaggerShareTresorComponent.builder().applicationComponent(ZerokitApplication.get(getActivity()).component()).build().inject(this);
//         FragmentShareTresorBinding binding = FragmentShareTresorBinding.inflate(inflater, container, false);
//         binding.setViewmodel(viewModel);
//         return binding.getRoot();
//     }
// 
//     @Override
//     public void onStart() {
//         super.onStart();
//         eventBus.register(viewModel);
//     }
// 
//     @Override
//     public void onStop() {
//         super.onStop();
//         eventBus.unregister(viewModel);
//     }
// }


// Path: sample/src/main/java/com/tresorit/zerokitsdk/adapter/EncryptPagerAdapter.java
import android.content.Context;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import com.tresorit.zerokitsdk.ZerokitApplication;
import com.tresorit.zerokitsdk.component.DaggerPagerComponent;
import com.tresorit.zerokitsdk.fragment.CreateTresorFragment;
import com.tresorit.zerokitsdk.fragment.EncryptTextFragment;
import com.tresorit.zerokitsdk.fragment.ShareTresorFragment;
import javax.inject.Inject;

package com.tresorit.zerokitsdk.adapter;




public class EncryptPagerAdapter extends FragmentPagerAdapter {

    @SuppressWarnings("WeakerAccess")
    @Inject
    CreateTresorFragment createTresorFragment;