This file contains 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
@file:DependsOn("com.squareup.okhttp3:okhttp:4.9.0") | |
import okhttp3.* | |
import okhttp3.internal.closeQuietly | |
import okio.IOException | |
import java.io.File | |
import java.util.concurrent.CountDownLatch | |
import java.util.concurrent.atomic.AtomicInteger | |
// Please specify the post directory, static-host blog usually puts all posts in one dir like "./_post" |
This file contains 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 GenExcaliburMapTask extends DefaultTask { | |
@OutputDirectory | |
File outputDir | |
@Input | |
String outputPackageName | |
@TaskAction | |
def generateMap() { |
This file contains 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
#!/bin/bash | |
new_apk_path= | |
old_apk_link= | |
keystore_link= | |
keystore_password= | |
key_alias= | |
key_password= | |
This file contains 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
#!/bin/sh | |
echo "Input Your ProjectName like my-gradle-plugin" | |
read projectName | |
echo "Input Your PackageName like com.example.gradle" | |
read packageName | |
echo "Input Your First Plugin Name like say-hello" | |
read pluginName |
This file contains 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 abstract class DebouncedOnClickListener implements View.OnClickListener { | |
private final long minimumInterval; | |
private Map<View, Long> lastClickMap; | |
/** | |
* setTime | |
* | |
* @param minimumIntervalMsec The minimum allowed time between clicks | |
* - any click sooner than this after a previous click will be rejected |
This file contains 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
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="me.x2bab.deviceadmintrick" > | |
<application | |
android:allowBackup="true" | |
android:icon="@drawable/ic_launcher" | |
android:label="@string/app_name" | |
android:theme="@style/AppTheme" > | |
<activity |