Skip to content

Instantly share code, notes, and snippets.

View Asutosh11's full-sized avatar
🏠
Working from home

Asutosh Panda Asutosh11

🏠
Working from home
  • Lowe's India
  • Bengaluru, Karnataka, India
View GitHub Profile
@Asutosh11
Asutosh11 / gradle.groovy
Created July 5, 2021 08:34
some custom settings for generating APKs
buildTypes {
release {
// this is for standard android release APK, the one we can upload to Play Store and Airwatch
debuggable false
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
debug {
// This is for generating an Unsigned APK for Intune and also compile APK on device
fun main(args: Array<String>) {
val k = 3
// k smallest element
// by default a PriorityQueue makes a min heap
val priorityQueue: PriorityQueue<Int> = PriorityQueue<Int>()
priorityQueue.add(20)