/*
 * Copyright 2018 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;

/**
 * ================================================
 * Created by JessYan on 2018/7/27 15:32
 * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
 * <a href="https://github.com/JessYanCoding">Follow me</a>
 * ================================================
 */
public class Platform {
    public static final boolean DEPENDENCY_AUTO_LAYOUT;

    static {
        DEPENDENCY_AUTO_LAYOUT = findAutoLayout();
    }

    private static boolean findAutoLayout() {
        boolean hasDependency;
        try {
            Class.forName("com.zhy.autolayout.AutoLayoutInfo");
            hasDependency = true;
        } catch (ClassNotFoundException e) {
            hasDependency = false;
        }
        return hasDependency;
    }
}

@@ -973,70 +973,270 @@
 UT;%0A
-%0A    static %7B%0A        DEPENDENCY_AUTO_LAYOUT = findAutoLayout(
+    public static final boolean DEPENDENCY_SUPPORT_DESIGN;%0A%0A    static %7B%0A        DEPENDENCY_AUTO_LAYOUT = findClassByClassName(%22com.zhy.autolayout.AutoLayoutInfo%22);%0A        DEPENDENCY_SUPPORT_DESIGN = findClassByClassName(%22android.support.design.widget.Snackbar%22
 );%0A 
@@ -1276,19 +1276,41 @@
 find
-AutoLayout(
+ClassByClassName(String className
 ) %7B%0A
@@ -1384,43 +1384,17 @@
 ame(
-%22com.zhy.autolayout.AutoLayoutInfo%22
+className
 );%0A 

Add DEPENDENCY_SUPPORT_DESIGN on Platform