package com.adins.mss.svy;

import android.content.Context;

import com.adins.mss.constant.Global;
import com.mikepenz.aboutlibraries.entity.Library;
import com.mikepenz.aboutlibraries.entity.License;

import java.util.ArrayList;

public class ChangeLog {
    public static ArrayList<Library> library = new ArrayList<Library>();

    public ChangeLog(Context context) {
        String authorLogv2_0_0 = "AdIns";
        String appNameLogv2_0_0 = "MSSSVY";
        int buildVersion = Global.BUILD_VERSION;
        License licenseLogv2_0_0 = new License();
        licenseLogv2_0_0.setLicenseName("Apache Version 2.0");

        library.add(0, new Library("06/06/2015", appNameLogv2_0_0, context.getString(R.string.changelog_v200),
                "2.0.0.0", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("06/01/2016", appNameLogv2_0_0, context.getString(R.string.changelog_v210),
                "2.1.0.0", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("01/06/2016", appNameLogv2_0_0, context.getString(R.string.changelog_v220),
                "2.2.0.0", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("06/12/2016", appNameLogv2_0_0, context.getString(R.string.changelog_v230),
                "2.3.0.0", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("15/12/2016", appNameLogv2_0_0, context.getString(R.string.changelog_v2310),
                "2.3.1.0", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("19/01/2017", appNameLogv2_0_0, context.getString(R.string.changelog_v2320),
                "2.3.2.0", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("07/03/2017", appNameLogv2_0_0, context.getString(R.string.changelog_v2330),
                "2.3.3.0", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("04/05/2017", appNameLogv2_0_0, context.getString(R.string.changelog_v2340),
                "2.3.4.0", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("08/05/2017", appNameLogv2_0_0, context.getString(R.string.changelog_v2350),
                "2.3.5.0", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("09/05/2017", appNameLogv2_0_0, context.getString(R.string.changelog_v2360),
                "2.3.6.0", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("12/05/2017", appNameLogv2_0_0, context.getString(R.string.changelog_v2370),
                "2.3.7.0", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("15/05/2017", appNameLogv2_0_0, context.getString(R.string.changelog_v2380),
                "2.3.8.0", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("16/05/2017", appNameLogv2_0_0, context.getString(R.string.changelog_v2390),
                "2.3.9.0", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("17/05/2017", appNameLogv2_0_0, context.getString(R.string.changelog_v23100),
                "2.3.10.0", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("22/05/2017", appNameLogv2_0_0, context.getString(R.string.changelog_v23110),
                "2.3.11.0", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("23/05/2017", appNameLogv2_0_0, context.getString(R.string.changelog_v23120),
                "2.3.12.0", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("24/05/2017", appNameLogv2_0_0, context.getString(R.string.changelog_v23130),
                "2.3.13.0", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("26/05/2017", appNameLogv2_0_0, context.getString(R.string.changelog_v23140),
                "2.3.14.0", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("29/05/2017", appNameLogv2_0_0, context.getString(R.string.changelog_v23150),
                "2.3.15.0", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("30/05/2017", appNameLogv2_0_0, context.getString(R.string.changelog_v23160),
                "2.3.16.0", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("02/06/2017", appNameLogv2_0_0, context.getString(R.string.changelog_v23170),
                "2.3.17.0", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("06/06/2017", appNameLogv2_0_0, context.getString(R.string.changelog_v23180),
                "2.3.18.0", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("07/06/2017", appNameLogv2_0_0, context.getString(R.string.changelog_v23190),
                "2.3.19.0", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("07/07/2017", appNameLogv2_0_0, context.getString(R.string.changelog_v2400),
                "2.4.0.0", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("26/02/2018", appNameLogv2_0_0, context.getString(R.string.changelog_v2500),
                "2.5.0.0", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("22/10/2018", appNameLogv2_0_0, context.getString(R.string.changelog_v3000),
                "3.0.0.0", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("19/11/2018", appNameLogv2_0_0, context.getString(R.string.changelog_v3001),
                "3.0.0.1", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("27/11/2018", appNameLogv2_0_0, context.getString(R.string.changelog_v3002),
                "3.0.0.2", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("04/12/2018", appNameLogv2_0_0, context.getString(R.string.changelog_v3003),
                "3.0.0.3", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("07/12/2018", appNameLogv2_0_0, context.getString(R.string.changelog_v3004),
                "3.0.0.4", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("11/12/2018", appNameLogv2_0_0, context.getString(R.string.changelog_v3005),
                "3.0.0.5", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("11/12/2018", appNameLogv2_0_0, context.getString(R.string.changelog_v3006),
                "3.0.0.6", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("12/12/2018", appNameLogv2_0_0, context.getString(R.string.changelog_v3007),
                "3.0.0.7", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("12/12/2018", appNameLogv2_0_0, context.getString(R.string.changelog_v3008),
                "3.0.0.8", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("18/01/2019", appNameLogv2_0_0, context.getString(R.string.changelog_v3009),
                "3.0.0.9", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("21/06/2019", appNameLogv2_0_0, context.getString(R.string.changelog_v30013),
                "3.0.0.13", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("01/08/2019", appNameLogv2_0_0, context.getString(R.string.changelog_v30017),
                "3.0.0.17", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("22/11/2019", appNameLogv2_0_0, context.getString(R.string.changelog_v30032),
                "3.0.0.32", licenseLogv2_0_0, buildVersion));
        library.add(0, new Library("04/03/2020", appNameLogv2_0_0, context.getString(R.string.changelog_v3110),
                "3.1.1.0", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("04/27/2020", appNameLogv2_0_0, context.getString(R.string.changelog_v3120),
                "3.1.2.0", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("05/27/2020", appNameLogv2_0_0, context.getString(R.string.changelog_v3130),
                "3.1.3.0", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("01/10/2020", appNameLogv2_0_0, context.getString(R.string.changelog_v3140),
                "3.1.4.0", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("18/03/2021", appNameLogv2_0_0, context.getString(R.string.changelog_v3201),
                "3.2.0.1", licenseLogv2_0_0, buildVersion));

        library.add(0, new Library("12/04/2021", appNameLogv2_0_0, context.getString(R.string.changelog_v3202),
                "3.2.0.2", licenseLogv2_0_0, buildVersion));
    }

    public static ArrayList<Library> getChangeLog(Context context) {
        library = new ArrayList<Library>();
        new ChangeLog(context);

        return library;
    }
}
