// Path: android/src/main/java/com/raulh82vlc/TransactionsViewer/TransactionsViewerApp.java
// public class TransactionsViewerApp extends Application {
// 
//     private ApplicationComponent applicationComponent;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         applicationComponent = DaggerApplicationComponent.builder()
//                 .applicationModule(new ApplicationModule(this))
//                 .build();
//     }
// 
//     public ApplicationComponent component() {
//         return applicationComponent;
//     }
// }
// 
// Path: android/src/main/java/com/raulh82vlc/TransactionsViewer/di/components/ProductsListComponent.java
// @ActivityScope
// @Component(dependencies = ApplicationComponent.class,
//         modules = {
//                 ActivityModule.class,
//                 ProductsListModule.class
//         })
// public interface ProductsListComponent extends AbstractActivityComponent {
//     void inject(ProductsListActivity productsListActivity);
// 
//     void inject(ProductsListFragment productsListFragment);
// }
// 
// Path: android/src/main/java/com/raulh82vlc/TransactionsViewer/di/modules/ActivityModule.java
// @Module
// public class ActivityModule {
//     private final Activity activityContext;
// 
//     public ActivityModule(Activity activityContext) {
//         this.activityContext = activityContext;
//     }
// 
//     @Provides
//     @ActivityScope
//     Activity getActivityContext() {
//         return activityContext;
//     }
// }


import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.ActionBar;
import com.raulh82vlc.TransactionsViewer.R;
import com.raulh82vlc.TransactionsViewer.TransactionsViewerApp;
import com.raulh82vlc.TransactionsViewer.di.components.DaggerProductsListComponent;
import com.raulh82vlc.TransactionsViewer.di.components.ProductsListComponent;
import com.raulh82vlc.TransactionsViewer.di.modules.ActivityModule;
/*
 * Copyright (C) 2017 Raul Hernandez Lopez @raulh82vlc
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.raulh82vlc.TransactionsViewer.ui.activities;



/**
 * <p>Products List Activity</p>
 *
 * @author Raul Hernandez Lopez
 */
public class ProductsListActivity extends BaseActivity {

    private ProductsListComponent mProductsListComponent;

    public ProductsListComponent component() {
        if (mProductsListComponent == null) {
            mProductsListComponent = DaggerProductsListComponent.builder()
// Path: android/src/main/java/com/raulh82vlc/TransactionsViewer/TransactionsViewerApp.java
// public class TransactionsViewerApp extends Application {
// 
//     private ApplicationComponent applicationComponent;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         applicationComponent = DaggerApplicationComponent.builder()
//                 .applicationModule(new ApplicationModule(this))
//                 .build();
//     }
// 
//     public ApplicationComponent component() {
//         return applicationComponent;
//     }
// }
// 
// Path: android/src/main/java/com/raulh82vlc/TransactionsViewer/di/components/ProductsListComponent.java
// @ActivityScope
// @Component(dependencies = ApplicationComponent.class,
//         modules = {
//                 ActivityModule.class,
//                 ProductsListModule.class
//         })
// public interface ProductsListComponent extends AbstractActivityComponent {
//     void inject(ProductsListActivity productsListActivity);
// 
//     void inject(ProductsListFragment productsListFragment);
// }
// 
// Path: android/src/main/java/com/raulh82vlc/TransactionsViewer/di/modules/ActivityModule.java
// @Module
// public class ActivityModule {
//     private final Activity activityContext;
// 
//     public ActivityModule(Activity activityContext) {
//         this.activityContext = activityContext;
//     }
// 
//     @Provides
//     @ActivityScope
//     Activity getActivityContext() {
//         return activityContext;
//     }
// }


// Path: android/src/main/java/com/raulh82vlc/TransactionsViewer/ui/activities/ProductsListActivity.java
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.ActionBar;
import com.raulh82vlc.TransactionsViewer.R;
import com.raulh82vlc.TransactionsViewer.TransactionsViewerApp;
import com.raulh82vlc.TransactionsViewer.di.components.DaggerProductsListComponent;
import com.raulh82vlc.TransactionsViewer.di.components.ProductsListComponent;
import com.raulh82vlc.TransactionsViewer.di.modules.ActivityModule;

/*
 * Copyright (C) 2017 Raul Hernandez Lopez @raulh82vlc
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.raulh82vlc.TransactionsViewer.ui.activities;



/**
 * <p>Products List Activity</p>
 *
 * @author Raul Hernandez Lopez
 */
public class ProductsListActivity extends BaseActivity {

    private ProductsListComponent mProductsListComponent;

    public ProductsListComponent component() {
        if (mProductsListComponent == null) {
            mProductsListComponent = DaggerProductsListComponent.builder()
                    .applicationComponent(((TransactionsViewerApp) getApplication()).component())