Skip to content

FunkyMuse/KAHelpers

Folders and files

NameName
Last commit message
Last commit date
Aug 11, 2021
Jun 19, 2021
Jun 18, 2021
May 26, 2021
May 26, 2021
Oct 5, 2021
May 26, 2021
May 26, 2021
May 26, 2021
Oct 5, 2021
Jun 19, 2021
May 26, 2021
May 26, 2021
May 26, 2021
May 26, 2021
May 26, 2021
May 26, 2021
Jan 12, 2021
May 26, 2021
Jun 19, 2021
May 26, 2021
Jun 18, 2021
Jun 19, 2021
Nov 22, 2020
Aug 3, 2021
Aug 23, 2021
May 26, 2021
Jun 19, 2021
May 26, 2021
May 26, 2021
Aug 5, 2021
Aug 8, 2021
Jun 19, 2021
Jun 19, 2021
Aug 3, 2021
Aug 11, 2021
Apr 1, 2021
May 26, 2021
Jun 19, 2021
Jun 19, 2021
Jun 19, 2021
Jun 19, 2021
Jul 14, 2021
May 26, 2021
Jun 19, 2021
May 26, 2021
Oct 5, 2021
May 26, 2021
Jan 7, 2021
Aug 4, 2021
May 26, 2021
Jun 19, 2021
Jun 19, 2021
Jun 19, 2021
May 26, 2021
Jun 16, 2021
Sep 30, 2021
Feb 1, 2019
Mar 25, 2020
Aug 11, 2021
Oct 5, 2021
Jan 7, 2021
Feb 1, 2019
Feb 1, 2019
Aug 4, 2021
Jun 18, 2021

Repository files navigation

KAHelpers

Android extensions and helper classes for easier Kotlin development

Kotlin Platform sad API API

If my noble work has helped you, consider becoming a Sponsor me.

Usage

  1. Add JitPack to your project build.gradle
allprojects {
  repositories {
    ...
    maven { url 'https://jitpack.io' }
   }
}
  1. Add the dependency in the application build.gradle
dependencies {

    def utilsVersion = "2.2.10" // or check the latest from jitpack
    
    //biometrics
    implementation "com.github.FunkyMuse.KAHelpers:biometrics:$utilsVersion"
    
    //coroutines
    implementation "com.github.FunkyMuse.KAHelpers:coroutines:$utilsVersion"
    
    //customviews
    implementation "com.github.FunkyMuse.KAHelpers:customviews:$utilsVersion"
    
    //data structures and algorithms
    implementation "com.github.FunkyMuse.KAHelpers:dataStructuresAndAlgorithms:$utilsVersion"
    
    //database handlers
    implementation "com.github.FunkyMuse.KAHelpers:database:$utilsVersion"
    
    //glide
    implementation "com.github.FunkyMuse.KAHelpers:glide:$utilsVersion"
    
    //gson
    implementation "com.github.FunkyMuse.KAHelpers:gson:$utilsVersion"
    
    //Joda Date Time
    implementation "com.github.FunkyMuse.KAHelpers:jodaDateTime:$utilsVersion"
    
    //the most basic extensions that rely on the basic Android APIs such as context, content providers etc...
    implementation "com.github.FunkyMuse.KAHelpers:kotlinextensions:$utilsVersion"
    
    //moshi
    implementation "com.github.FunkyMuse.KAHelpers:moshi:$utilsVersion"
    
    //navigation component
    implementation "com.github.FunkyMuse.KAHelpers:navigation:$utilsVersion"
    
    //recyclerview
    implementation "com.github.FunkyMuse.KAHelpers:recyclerview:$utilsVersion"
    
    //reflection
    implementation "com.github.FunkyMuse.KAHelpers:reflection:$utilsVersion"
    
    //retrofit
    implementation "com.github.FunkyMuse.KAHelpers:retrofit:$utilsVersion"
    
    //RxJava3
    implementation "com.github.FunkyMuse.KAHelpers:rx:$utilsVersion"
    
    //security
    implementation "com.github.FunkyMuse.KAHelpers:security:$utilsVersion"
    
    //viewbinding
    implementation "com.github.FunkyMuse.KAHelpers:viewbinding:$utilsVersion"
    
  }
  1. To not run into any issues in your application build.gradle add
   compileOptions {
        sourceCompatibility = 1.8
        targetCompatibility = 1.8
	
	//if you're using the desugaring library
	coreLibraryDesugaringEnabled true

    }

    kotlinOptions {
        jvmTarget = "1.8"
    }
    
  1. Additionally you can include
    kapt {	
	correctErrorTypes = true
        useBuildCache = true
    }
    
    buildTypes {
        debug {
        // useful if you're using crashlytics
	/**In your manifest file
	 <meta-data
            android:name="firebase_crashlytics_collection_enabled"
            android:value="${crashlytics}" />
	*/
          firebaseCrashlytics {
                mappingFileUploadEnabled false
          }
	  
	  FirebasePerformance {
          instrumentationEnabled false
	  }
	  
          manifestPlaceholders = [crashlytics: "false"]
        // end of crashlytics region
            
          crunchPngs false
        }
      }
    
     defaultConfig {
     	 vectorDrawables.useSupportLibrary = true
    }
  1. Inside gradle.properties
org.gradle.parallel=true
org.gradle.caching=true
room.incremental = true // if you're using room
kapt.use.worker.api = true
org.gradle.unsafe.watch-fs=true
org.gradle.configureondemand=true

Informational/optinal

  1. Proguard configs
-keepattributes SourceFile,LineNumberTable  
-keep public class * extends java.lang.Exception  
-keep class com.google.firebase.crashlytics.** { *; }  
-dontwarn com.google.firebase.crashlytics.**
-dontwarn org.jetbrains.annotations.**
#these are if you're using crashlytics and don't want to receive obfuscated crashes

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT