owolp / Set-Of-Useful-Kotlin-Extensions-and-Helpers

Kotlin Extensions (Android extensions) and Helpers for smoother Android development

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Set Of Useful Kotlin Extensions and Helpers

Android extensions and helper classes for easier Kotlin development

Kotlin Platform sad

Minimum Android API 21

Compiled Android API 29

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 {
    implementation 'com.github.CraZyLegenD:Set-Of-Useful-Kotlin-Extensions-and-Helpers:version'
  }
  1. To not run into any issues in your application build.gradle add
   compileOptions {
        sourceCompatibility = 1.8
        targetCompatibility = 1.8
    }

    kotlinOptions {
        jvmTarget = "1.8"
    }

    packagingOptions {
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/LICENSE'
    }
    
    viewBinding {
	enabled = true
    }

    androidExtensions {
        experimental = true
    }
  1. Additionally you can include
    kapt {	
	correctErrorTypes = true
        useBuildCache = true
    }
    
    buildTypes {
        debug {
        // useful if you're using crashlytics
          ext.enableCrashlytics = false
          ext.alwaysUpdateBuildId = false
          firebaseCrashlytics {
                mappingFileUploadEnabled false
          }
          manifestPlaceholders = [crashlytics: "false"]
        // end of crashlytics region
            
          crunchPngs false
        }
      }
    
     defaultConfig {
     	 vectorDrawables.useSupportLibrary = true
    }
  1. Inside gradle.properties
kapt.incremental.apt=true

Informational

  1. Proguard crashlytics
-keepattributes SourceFile,LineNumberTable  
-keep public class * extends java.lang.Exception  
-keep class com.google.firebase.crashlytics.** { *; }  
-dontwarn com.google.firebase.crashlytics.**

Contributing

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

License

MIT

About

Kotlin Extensions (Android extensions) and Helpers for smoother Android development


Languages

Language:Kotlin 100.0%