This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import androidx.compose.animation.animatedFloat | |
import androidx.compose.animation.asDisposableClock | |
import androidx.compose.animation.core.* | |
import androidx.compose.foundation.animation.AndroidFlingDecaySpec | |
import androidx.compose.foundation.animation.FlingConfig | |
import androidx.compose.foundation.background | |
import androidx.compose.foundation.gestures.ScrollableController | |
import androidx.compose.foundation.gestures.scrollable | |
import androidx.compose.foundation.layout.Box | |
import androidx.compose.foundation.layout.Column |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Ref : https://gist.github.com/rponte/fdc0724dd984088606b0 | |
# The command finds the most recent tag that is reachable from a commit. | |
# If the tag points to the commit, then only the tag is shown. | |
# Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object | |
# and the abbreviated object name of the most recent commit. | |
git describe | |
# With --abbrev set to 0, the command can be used to find the closest tagname without any suffix: | |
git describe --abbrev=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package in.rmkrishna.util.network; | |
import android.content.Context; | |
import android.net.ConnectivityManager; | |
import android.net.NetworkInfo; | |
import android.telephony.TelephonyManager; | |
import android.text.TextUtils; | |
import android.util.Base64; | |
import java.io.BufferedReader; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class WebUtil { | |
public static void clearCookies(Context context) { | |
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1) { | |
CookieManager.getInstance().removeAllCookies(null); | |
CookieManager.getInstance().flush(); | |
} else { | |
CookieSyncManager cookieSyncMngr = CookieSyncManager.createInstance(context); | |
cookieSyncMngr.startSync(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// We should have this 2 permissions to get the recent app | |
<uses-permission android:name="android.permission.GET_TASKS" /> | |
<uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" /> | |
// we should register our service in manifest file |