/*
 * Copyright 2017 JessYan
 *
 * 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.jessyan.art.base.delegate;

import android.app.Application;
import android.content.Context;

/**
 * ================================================
 * 用于代理 {@link Application} 的生命周期
 *
 * @see AppDelegate
 * Created by JessYan on 18/07/2017 17:43
 * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
 * <a href="https://github.com/JessYanCoding">Follow me</a>
 * ================================================
 */
public interface AppLifecycles {
    void attachBaseContext(Context base);

    void onCreate(Application application);

    void onTerminate(Application application);
}

@@ -687,16 +687,59 @@
 Context;
+%0Aimport android.support.annotation.NonNull;
 %0A%0A/**%0A *
@@ -1124,16 +1124,25 @@
 Context(
+@NonNull 
 Context 
@@ -1163,24 +1163,33 @@
 id onCreate(
+@NonNull 
 Application 
@@ -1224,16 +1224,25 @@
 rminate(
+@NonNull 
 Applicat

Improve AppLifecycles