Install, build and debug a react native app in WSL2 (Windows Subsystem for Linux) and Ubuntu.
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
/* | |
* Copyright 2020 The Android Open Source Project | |
* | |
* 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 | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
/** | |
* Create and return a new [Painter] that wraps [painter] with its [alpha], [colorFilter], or [onDraw] overwritten. | |
*/ | |
fun forwardingPainter( | |
painter: Painter, | |
alpha: Float = DefaultAlpha, | |
colorFilter: ColorFilter? = null, | |
onDraw: DrawScope.(ForwardingDrawInfo) -> Unit = DefaultOnDraw, | |
): Painter = ForwardingPainter(painter, alpha, colorFilter, onDraw) |
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | |
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar | |
import proguard.gradle.ProGuardTask | |
plugins { | |
id("application") | |
id("org.jetbrains.kotlin.jvm") version "1.6.0" | |
id("com.github.johnrengelman.shadow") version "7.1.0" | |
} |
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
{ | |
"final_space": true, | |
"console_title": false, | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"horizontal_offset": 0, | |
"vertical_offset": 0, | |
"segments": [ |
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
android { | |
onVariantProperties { | |
val mainOutput = outputs.single { it.outputType == VariantOutputConfiguration.OutputType.SINGLE } | |
tasks.register<CreateRenamedApk>("createRenamedApkFor${name}") { | |
this.originalApkFolder.set(artifacts.get(ArtifactType.APK)) | |
this.builtArtifactsLoader.set(artifacts.getBuiltArtifactsLoader()) | |
this.newApkFolder.set(layout.buildDirectory.dir("outputs/renamed_apk/${this@onVariantProperties.name}")) | |
this.versionCode.set(mainOutput.versionCode) | |
this.versionName.set(mainOutput.versionName) | |
} |
Quick guide on how to setup git signing. Information is aggregated from following sources:
In this how-to it is being explained how to create a maven repository on github and how to use an existing one.
-
Clone your original project to a new local repository (change GROUP-NAME and PROJECT-NAME)
git clone https://github.com/GROUP-NAME/PROJECT-NAME.git PROJECT-NAME-maven2
-
Go to the clonned repository (use your PROJECT-NAME-maven2)
cd PROJECT-NAME-maven2
- Do you have an Github account ? If not create one.
- Install required tools
- Latest Git Client
- gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
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
from Crypto.Hash import MD5 | |
from Crypto.Cipher import DES | |
import re | |
import base64 | |
_password = '111' #use your own pass key | |
_salt = '\xA9\x9B\xC8\x32\x56\x35\xE3\x03' #use your salt here | |
_iterations = 19 #change iterations here | |
NewerOlder