// Path: app/src/main/java/org/apache/taverna/mobile/TavernaApplication.java
// public class TavernaApplication extends Application {
// 
//     ApplicationComponent mApplicationComponent;
// 
//     public static TavernaApplication get(Context context) {
//         return (TavernaApplication) context.getApplicationContext();
//     }
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
// 
//         FlowManager.init(new FlowConfig.Builder(this).build());
//         if (BuildConfig.DEBUG) {
//             Stetho.initializeWithDefaults(this);
//         }
// 
//         if (LeakCanary.isInAnalyzerProcess(this)) {
//             return;
//         }
//         LeakCanary.install(this);
// 
//     }
// 
//     public ApplicationComponent getComponent() {
//         if (mApplicationComponent == null) {
//             mApplicationComponent = DaggerApplicationComponent.builder()
//                     .applicationModule(new ApplicationModule(this))
//                     .build();
//         }
//         return mApplicationComponent;
//     }
// 
// 
//     public void setComponent(ApplicationComponent applicationComponent) {
//         mApplicationComponent = applicationComponent;
//     }
// 
// }
// 
// Path: app/src/main/java/org/apache/taverna/mobile/injection/component/ActivityComponent.java
// @PerActivity
// @Component(dependencies = ApplicationComponent.class, modules = ActivityModule.class)
// public interface ActivityComponent {
// 
//     void inject(DashboardActivity dashboardActivity);
// 
//     void inject(FavouriteWorkflowsActivity favouriteWorkflowsActivity);
// 
//     void inject(FavouriteWorkflowDetailActivity favouriteWorkflowDetailActivity);
// 
//     void inject(ImageZoomActivity imageZoomActivity);
// 
//     void inject(LoginActivity loginActivity);
// 
//     void inject(MyWorkflowActivity myWorkflowActivity);
// 
//     void inject(TutorialActivity tutorialActivity);
// 
//     void inject(UsageActivity usageActivity);
// 
//     void inject(UserProfileActivity userProfileActivity);
// 
//     void inject(WorkflowDetailActivity workflowDetailActivity);
// 
//     void inject(AnnouncementFragment announcementFragment);
// 
//     void inject(FavouriteWorkflowsFragment favouriteWorkflowsFragment);
// 
//     void inject(FavouriteWorkflowDetailFragment favouriteWorkflowDetailFragment);
// 
//     void inject(ImageZoomFragment imageZoomFragment);
// 
//     void inject(LoginFragment loginFragment);
// 
//     void inject(MyWorkflowFragment myWorkflowFragment);
// 
//     void inject(PlayerLoginFragment playerLoginFragment);
// 
//     void inject(UserProfileFragment userProfileFragment);
// 
//     void inject(WorkflowFragment workflowFragment);
// 
//     void inject(WorkflowDetailFragment workflowDetailFragment);
// 
//     void inject(WorkflowRunActivity workflowRunActivity);
// 
//     void inject(FlashScreenActivity flashScreenActivity);
// }
// 
// Path: app/src/main/java/org/apache/taverna/mobile/injection/module/ActivityModule.java
// @Module
// public class ActivityModule {
// 
//     private Activity mActivity;
// 
//     public ActivityModule(Activity activity) {
//         mActivity = activity;
//     }
// 
//     @Provides
//     Activity provideActivity() {
//         return mActivity;
//     }
// 
//     @Provides
//     @ActivityContext
//     Context providesContext() {
//         return mActivity;
//     }
// }


import org.apache.taverna.mobile.TavernaApplication;
import org.apache.taverna.mobile.injection.component.ActivityComponent;
import org.apache.taverna.mobile.injection.component.DaggerActivityComponent;
import org.apache.taverna.mobile.injection.module.ActivityModule;
import android.support.v7.app.AppCompatActivity;
/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you 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 org.apache.taverna.mobile.ui.base;



/**
 * @author lusifer
 */
public class BaseActivity extends AppCompatActivity {

    private ActivityComponent activityComponent;


    public ActivityComponent getActivityComponent() {
        if (activityComponent == null) {
            activityComponent = DaggerActivityComponent.builder()
// Path: app/src/main/java/org/apache/taverna/mobile/TavernaApplication.java
// public class TavernaApplication extends Application {
// 
//     ApplicationComponent mApplicationComponent;
// 
//     public static TavernaApplication get(Context context) {
//         return (TavernaApplication) context.getApplicationContext();
//     }
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
// 
//         FlowManager.init(new FlowConfig.Builder(this).build());
//         if (BuildConfig.DEBUG) {
//             Stetho.initializeWithDefaults(this);
//         }
// 
//         if (LeakCanary.isInAnalyzerProcess(this)) {
//             return;
//         }
//         LeakCanary.install(this);
// 
//     }
// 
//     public ApplicationComponent getComponent() {
//         if (mApplicationComponent == null) {
//             mApplicationComponent = DaggerApplicationComponent.builder()
//                     .applicationModule(new ApplicationModule(this))
//                     .build();
//         }
//         return mApplicationComponent;
//     }
// 
// 
//     public void setComponent(ApplicationComponent applicationComponent) {
//         mApplicationComponent = applicationComponent;
//     }
// 
// }
// 
// Path: app/src/main/java/org/apache/taverna/mobile/injection/component/ActivityComponent.java
// @PerActivity
// @Component(dependencies = ApplicationComponent.class, modules = ActivityModule.class)
// public interface ActivityComponent {
// 
//     void inject(DashboardActivity dashboardActivity);
// 
//     void inject(FavouriteWorkflowsActivity favouriteWorkflowsActivity);
// 
//     void inject(FavouriteWorkflowDetailActivity favouriteWorkflowDetailActivity);
// 
//     void inject(ImageZoomActivity imageZoomActivity);
// 
//     void inject(LoginActivity loginActivity);
// 
//     void inject(MyWorkflowActivity myWorkflowActivity);
// 
//     void inject(TutorialActivity tutorialActivity);
// 
//     void inject(UsageActivity usageActivity);
// 
//     void inject(UserProfileActivity userProfileActivity);
// 
//     void inject(WorkflowDetailActivity workflowDetailActivity);
// 
//     void inject(AnnouncementFragment announcementFragment);
// 
//     void inject(FavouriteWorkflowsFragment favouriteWorkflowsFragment);
// 
//     void inject(FavouriteWorkflowDetailFragment favouriteWorkflowDetailFragment);
// 
//     void inject(ImageZoomFragment imageZoomFragment);
// 
//     void inject(LoginFragment loginFragment);
// 
//     void inject(MyWorkflowFragment myWorkflowFragment);
// 
//     void inject(PlayerLoginFragment playerLoginFragment);
// 
//     void inject(UserProfileFragment userProfileFragment);
// 
//     void inject(WorkflowFragment workflowFragment);
// 
//     void inject(WorkflowDetailFragment workflowDetailFragment);
// 
//     void inject(WorkflowRunActivity workflowRunActivity);
// 
//     void inject(FlashScreenActivity flashScreenActivity);
// }
// 
// Path: app/src/main/java/org/apache/taverna/mobile/injection/module/ActivityModule.java
// @Module
// public class ActivityModule {
// 
//     private Activity mActivity;
// 
//     public ActivityModule(Activity activity) {
//         mActivity = activity;
//     }
// 
//     @Provides
//     Activity provideActivity() {
//         return mActivity;
//     }
// 
//     @Provides
//     @ActivityContext
//     Context providesContext() {
//         return mActivity;
//     }
// }


// Path: app/src/main/java/org/apache/taverna/mobile/ui/base/BaseActivity.java
import org.apache.taverna.mobile.TavernaApplication;
import org.apache.taverna.mobile.injection.component.ActivityComponent;
import org.apache.taverna.mobile.injection.component.DaggerActivityComponent;
import org.apache.taverna.mobile.injection.module.ActivityModule;
import android.support.v7.app.AppCompatActivity;

/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you 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 org.apache.taverna.mobile.ui.base;



/**
 * @author lusifer
 */
public class BaseActivity extends AppCompatActivity {

    private ActivityComponent activityComponent;


    public ActivityComponent getActivityComponent() {
        if (activityComponent == null) {
            activityComponent = DaggerActivityComponent.builder()
                    .activityModule(new ActivityModule(this))