Skip to content

Instantly share code, notes, and snippets.

config_before {
title = "Configuration time (Before)"
tasks = ["help"]
git-checkout = {
build = "main"
cleanup = "prem/remove_build_styles"
}
cleanup-tasks = [":ZippingReferance:clean", "clean"]
}
@prempalsingh
prempalsingh / build.gradle.kts
Created July 15, 2021 11:16
Img.ly Kotlin DSL
import ly.img.android.sdk.IMGLYConfig
plugins {
id("com.android.application")
kotlin("android")
id("ly.img.android.sdk")
}
configure<IMGLYConfig> {
pesdk {
@prempalsingh
prempalsingh / themes-debug.xml
Created November 28, 2016 17:33 — forked from dlew/themes-debug.xml
With the new theming in AppCompat, a lot of assets are tinted automatically for you via theme attributes. That has often led me to wonder "where the hell did this color come from?" You can replace your normal theme with this debug theme to help figure out the source of that color.
<!-- You can change the parent around to whatever you normally use -->
<style name="DebugColors" parent="Theme.AppCompat">
<!-- System colors -->
<item name="android:windowBackground">@color/__debugWindowBackground</item>
<item name="android:colorPressedHighlight">#FF4400</item>
<item name="android:colorLongPressedHighlight">#FF0044</item>
<item name="android:colorFocusedHighlight">#44FF00</item>
<item name="android:colorActivatedHighlight">#00FF44</item>
@prempalsingh
prempalsingh / gsoc16.md
Last active September 14, 2016 17:45
GSoC 2016 Work Product - Prempal Singh - DHIS 2

##GSoC 2016 Work Product - Prempal Singh - DHIS2

My work involved contributing to the existing DHIS2 Android SDK to implement a shared database functionality using content provider and making the DHIS2 Core app which exposes the content provider to other client apps. The content provider was generated using DbFlow and all the CRUD operation calls were proxied to the content provider which ensured no changes in the existing codebase making DB calls.

My contributions can be seen here -

DHIS2 Android SDK (IPC code not included since that is still WIP)

DHIS2 Android Core