Skip to content

Library has redesigned of and bugs fixed

Compare
Choose a tag to compare
@hummatli hummatli released this 23 Dec 12:17

Version: v2.0.2

  • Changed caching system
  • MAHAdsDlgExit dialog's UI has changed.
  • Added support work with https urls too
  • Image caching has changed from Picasso to Glide.
  • Added support to French language. Thanks to @farizaghayev
  • Add new versions of "MAHUpdaterController.init()" method.
  • Added functionality to customize and change visibility Info button on the right upper corner of dialogs. You can do it with the help of "MAHUpdaterController.init()"
  • Added new string to "strings.xml". Try to translate it if your language is not listed in language files.
<!--new--> <string name="mah_ads_play_service_not_found">Install Google Play Services to install application</string>  
  • Added new colors to "colors.xml". Add this to your app's colors.xml file
<!--new--> <color name="mah_ads_title_bar_text_color">#ffffff</color>
<!--new--> <color name="mah_ads_program_item_desc_text_color">#4a76e6</color>
<!--new--> <color name="mah_ads_no_image_color">#3F51B5</color>

*Bugs fixed

Migration to version v2.0.2

  • MAHAdsDlgExitListener has moved to new package com.mobapphome.mahads.MAHAdsDlgExit.MAHAdsDlgExitListener
  • public void onEventHappened(String eventStr); This new method added to MAHAdsDlgExitListener class. You will need implement it to when using it.
  • Added variation of MAHAdsController.init() methods. Now you can name your urls as you want. Previos was predefined. Therefore MAHAdsController.init(Activity, Rooturl) has deprecated. Use newer ones.
  • add these colors to your colors.xml
<!--new--> <color name="mah_ads_title_bar_text_color">#ffffff</color>
<!--new--> <color name="mah_ads_program_item_desc_text_color">#4a76e6</color>
<!--new--> <color name="mah_ads_no_image_color">#3F51B5</color>
  • Add new string to "strings.xml". Try to translate it if your language is not listed in language files.
<!--new--> <string name="mah_ads_play_service_not_found">Install Google Play Services to install application</string>  
  • Add new exception to proguard file. Because new Glide library using for image caching.
-keep public class * implements com.bumptech.glide.module.GlideModule
-keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {
  **[] $VALUES;
  public *;
}
#Following is needed for Glide on DexGuard only. Uncomment it when DexGuard
#-keepresourcexmlelements manifest/application/meta-data@value=GlideModule

Import library

To import library to you project add following lines to project's build.gradle file.

    dependencies {
            compile 'com.mobapphome.library:mah-android-updater:2.0.2'
    }