// Path: app/src/main/java/me/yifeiyuan/climb/app/App.java
// public class App extends Application {
// 
//     private AppComponent mAppComponent;
// 
//     private static final String TAG = "Climb";
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
// //        PackageManagerHook.hook(this);
//         Log.d(TAG, "onCreate: " + getPackageName());
// 
//         mAppComponent = DaggerAppComponent
//                 .builder()
//                 .appModule(new AppModule(this))
//                 .apiModule(new ApiModule())
//                 .build();
// 
//         if (BuildConfig.DEBUG) {
//             AndroidDevMetrics.initWith(this);
//         }
// 
//         AppStatusManager.getInstance().init(this);
// 
//     }
// 
//     public AppComponent getAppComponent() {
//         return mAppComponent;
//     }
// 
//     @Override
//     protected void attachBaseContext(Context base) {
//         PackageManagerHook.hook(base);
//         super.attachBaseContext(base);
//     }
// }


import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
import me.yifeiyuan.climb.app.App;
/*
 * Copyright (C) 2016, 程序亦非猿
 *
 * 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 me.yifeiyuan.climb.di.modules;



/**
 * Created by 程序亦非猿 on 16/10/18.
 */

@Module
public class AppModule {

// Path: app/src/main/java/me/yifeiyuan/climb/app/App.java
// public class App extends Application {
// 
//     private AppComponent mAppComponent;
// 
//     private static final String TAG = "Climb";
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
// //        PackageManagerHook.hook(this);
//         Log.d(TAG, "onCreate: " + getPackageName());
// 
//         mAppComponent = DaggerAppComponent
//                 .builder()
//                 .appModule(new AppModule(this))
//                 .apiModule(new ApiModule())
//                 .build();
// 
//         if (BuildConfig.DEBUG) {
//             AndroidDevMetrics.initWith(this);
//         }
// 
//         AppStatusManager.getInstance().init(this);
// 
//     }
// 
//     public AppComponent getAppComponent() {
//         return mAppComponent;
//     }
// 
//     @Override
//     protected void attachBaseContext(Context base) {
//         PackageManagerHook.hook(base);
//         super.attachBaseContext(base);
//     }
// }


// Path: app/src/main/java/me/yifeiyuan/climb/di/modules/AppModule.java
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
import me.yifeiyuan.climb.app.App;

/*
 * Copyright (C) 2016, 程序亦非猿
 *
 * 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 me.yifeiyuan.climb.di.modules;



/**
 * Created by 程序亦非猿 on 16/10/18.
 */

@Module
public class AppModule {

    private final App mApp;