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 android.app.Activity | |
import android.util.Log | |
import android.view.ViewTreeObserver | |
import androidx.annotation.MainThread | |
import androidx.lifecycle.Lifecycle | |
import androidx.lifecycle.LifecycleOwner | |
import com.******************.Barrier | |
import com.******************.Closure | |
import com.*******************.Once |
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
./gradlew clean buildRelease publish |
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
android { | |
applicationVariants.all { variant -> | |
variant.outputs.all { | |
def fileName = "app" | |
switch (variant.buildType.name) { | |
case "debug": | |
fileName = "${appNameDebug}-${variant.versionCode}" | |
break | |
case "release": | |
fileName = "${appNameRelease}-${variant.versionCode}" |
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
apply plugin: 'com.android.application' | |
// version information | |
def versionMajor = 1 | |
def versionMinor = 0 | |
def versionPatch = 0 | |
android { | |
compileSdkVersion 26 | |
buildToolsVersion "26.0.2" |
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 java.io.ByteArrayOutputStream; | |
import java.io.File; | |
import java.io.FileDescriptor; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.nio.ByteBuffer; | |
import android.graphics.Bitmap; | |
/** |
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
var a = 10, b = 20; | |
a = a + b; | |
b = a - b; | |
a = a - b; | |
console.log("a = " + a + ", b = " + b); // a = 20, b = 10 |
NewerOlder