First we can list the current tags
git tag
Then we create a new tag
git tag <tag_name>
adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > screen.png |
python -m SimpleHTTPServer 8080
If you want to only serve on localhost you'll need to write a custom Python program such as:
import sys
import BaseHTTPServer
from SimpleHTTPServer import SimpleHTTPRequestHandler
/* | |
* Copyright 2019 Google LLC | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* https://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
#!/bin/bash | |
if [ -z "$ANDROID_NDK" ]; then | |
echo "Please set ANDROID_NDK to the Android NDK folder" | |
exit 1 | |
fi | |
#Change to your local machine's architecture | |
# HOST_OS_ARCH=darwin-x86_64 | |
HOST_OS_ARCH=linux-x86_64 |
This guide instructs you in how to unbrick an Amazon Kindle Paperwhite. The consequences of following it are your own responsibility. This method (opening the Kindle and using the serial interface) should be a last resort and should only be considered if other methods fail
/* Copyright 2020 Google LLC. | |
SPDX-License-Identifier: Apache-2.0 */ | |
class UpvoteStoryWorker( | |
appContext: Context, | |
workerParams: WorkerParameters, | |
private val service: UpvoteStoryHttpApi) | |
: CoroutineWorker(appContext, workerParams) { | |
override suspend fun doWork(): Result { |
<!-- Copyright 2020 Google LLC. | |
SPDX-License-Identifier: Apache-2.0 --> | |
<application | |
… | |
<provider | |
android:name="androidx.work.impl.WorkManagerInitializer" | |
android:authorities="${applicationId}.workmanager-init" | |
tools:node="remove" /> | |
</application> |
/* Copyright 2020 Google LLC. | |
SPDX-License-Identifier: Apache-2.0 */ | |
class MyWorkerFactory(private val service: UpvoteStoryHttpApi) : WorkerFactory() { | |
override fun createWorker( | |
appContext: Context, | |
workerClassName: String, | |
workerParameters: WorkerParameters | |
): ListenableWorker? { | |
// This only handles a single Worker, please don’t do this!! |
/* Copyright 2020 Google LLC. | |
SPDX-License-Identifier: Apache-2.0 */ | |
class MyApplication : Application(), Configuration.Provider { | |
override fun getWorkManagerConfiguration(): Configuration = | |
Configuration.Builder() | |
.setMinimumLoggingLevel(android.util.Log.DEBUG) | |
.setWorkerFactory(MyWorkerFactory(DesignerNewsService)) | |
.build() | |
... | |
} |