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 _declarativeKotlinPluginPatterns = <RegExp>[ | |
RegExp('^\\s*id\\s*\\(?\\s*[\'"]kotlin-android[\'"]\\s*\\)?\\s*\$'), | |
RegExp( | |
'^\\s*id\\s*\\(?\\s*[\'"]org.jetbrains.kotlin.android[\'"]\\s*\\)?\\s*\$'), | |
]; | |
final lines = <String>[ | |
'id "kotlin-android"', | |
'id("kotlin-android")', | |
'id ( "kotlin-android" ) ', |
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
pipe: | |
name: Build and validate | |
steps: | |
- image: ghcr.io/cirruslabs/android-sdk:34 | |
#image: gradle:7.6.4-jdk11-alpine | |
build_script: | | |
sudo apt-get update | |
sudo apt-get install -y nodejs npm | |
./gradlew :maestro-cli:installDist | |
- image: eclipse-temurin:8-jre-alpine |
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
#!/usr/bin/env bash | |
set -euo pipefail | |
for file in *.zip; do | |
version="$(echo "$file" | cut -d '-' -f 4 | cut -d '.' -f 1)" | |
new_dir="android-clt-$version" | |
echo "extracting file $file into $new_dir" | |
unzip -o -d "android-clt-$version" "$file" >/dev/null 2>&1 |
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 kotlinx.coroutines.* | |
suspend fun say(s: String) { | |
for (i in 1..5) { | |
delay(100L) | |
println(s) | |
} | |
} | |
fun main() = runBlocking { |
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
package main | |
import ( | |
"crypto/hmac" | |
"crypto/sha256" | |
"encoding/base64" | |
"encoding/hex" | |
"fmt" | |
"strings" | |
) |
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
class Foo { | |
public int constInstr() { | |
return 0; | |
} | |
public int add(int a, int b) { | |
int c; | |
c = a + this.constInstr(); | |
return 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
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( |
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 'package:meta/meta.dart'; | |
import 'package:test/test.dart'; | |
// ignore: depend_on_referenced_packages | |
import 'package:test_api/src/backend/invoker.dart'; | |
// Input: | |
const String requestedTest = 'testA'; | |
// Global state: |
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 'package:flutter_test/flutter_test.dart'; | |
import 'package:patrol/src/extensions.dart'; | |
// ignore: depend_on_referenced_packages | |
import 'package:test_api/src/backend/invoker.dart'; | |
const String requestedTest = 'groupA testA'; | |
String get currentTest => Invoker.current!.fullCurrentTestName(); | |
void main() { |
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
PatrolTester $; | |
$.native.grantPermissionWhenInUse() | |
$.native.grantPermissionOnlyThisTime(); | |
$.native.denyPermission(); |
NewerOlder