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 pl.krasiniak.krachapp_beta; | |
| import android.content.Intent; | |
| import android.support.v7.app.ActionBarActivity; | |
| import android.support.v4.app.Fragment; | |
| import android.os.Bundle; | |
| import android.view.LayoutInflater; | |
| import android.view.Menu; | |
| import android.view.MenuItem; | |
| import android.view.View; |
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 fi.matalamaki.util; | |
| import androidx.databinding.InverseMethod; | |
| /** | |
| * Data-binded values that are boxed(such as ones that come from Kotlin, | |
| * as there's no primitive types in Kotlin..) requires safe unboxing, | |
| * so there's no NPE(null pointer exception) when binding data. | |
| * | |
| * Theres a method for this safeUnbox inside Android SDK, |
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
| name: 'Firebase Distribution' | |
| description: 'GitHub Action that uploads artifacts to Firebase Distribution' | |
| author: 'Wojciech Zięba <@wzieba>' | |
| inputs: | |
| appId: | |
| description: 'App id can be found on the General Settings page' | |
| required: true | |
| token: | |
| description: 'Upload token - see Firebase CLI Reference' | |
| required: true |
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
| FROM node:12.10.0-alpine | |
| WORKDIR /app | |
| COPY . /app | |
| RUN npm install -g firebase-tools \ | |
| && apk update \ | |
| && apk add git | |
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
| #!/bin/sh | |
| MESSAGE=""; | |
| if [[ -z ${INPUT_RELEASENOTES} ]]; then | |
| MESSAGE="$(git log -1 --pretty=short)" | |
| else | |
| MESSAGE=${INPUT_RELEASENOTES} | |
| fi | |
| firebase appdistribution:distribute "$INPUT_FILE" --app "$INPUT_APPID" --token "$INPUT_TOKEN" --groups "$INPUT_GROUPS" --release-notes "$MESSAGE" |
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
| name: Example workflow for Firebase Distribution action | |
| on: [push] | |
| jobs: | |
| run: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@master | |
| - name: Get sample .apk for test purposes | |
| run: wget https://github.com/appium/appium/raw/master/sample-code/apps/ApiDemos-debug.apk |
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
| foo\nbar |
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
| fun main() { | |
| val stringAssignedInCode = "foo\nbar" | |
| val stringStoredInFile: String = this::class.java.classLoader.getResource("saved_line")!!.readText() | |
| assertThat(stringAssignedInCode).isEqualTo(stringStoredInFile) | |
| } |
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
| fun main() { | |
| val stringAssignedInCode = "foo\nbar" | |
| val stringStoredInFile: String = this::class.java.classLoader.getResource("saved_line")!!.readText() | |
| .replace("\\n", "\n") | |
| assertThat(stringAssignedInCode).isEqualTo(stringStoredInFile) | |
| } |
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
| fun main() { | |
| val stringAssignedInCode = "foo\nbar" | |
| val plainStringFromFile: String = this::class.java.classLoader.getResource("saved_line")!!.readText() | |
| val stringSimplyReplaced = plainStringFromFile.replace("\\n", "\n") | |
| val stringUnescapedWithApacheCommons = StringEscapeUtils.unescapeJava(plainStringFromFile) | |
OlderNewer