Hello world: 42!
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
# https://github.com/marcos-bah/ | |
name: Flutter Development CI | |
# This workflow is triggered on pushes to the repository. | |
on: | |
push: | |
branches: | |
# pode usar main, para mais de uma, usar [] |
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
# This is a basic workflow to help you get started with Actions | |
# https://github.com/marcos-bah | |
name: CI GitHub Pages - Flutter | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the main branch | |
push: | |
branches: [ main, development ] |
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
# Esse é um workflow básico para trabalhar com flutter | |
name: Flutter Basic CI | |
# Aqui controla quando nossa action será chamada | |
# Abaixo definimos que será chamada sempre que ocorrer um push na branch main | |
on: | |
push: | |
branches: | |
- 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
import 'package:common/common.dart'; | |
import 'package:test/test.dart'; | |
void main() { | |
test('from json to json', () { | |
final json = { | |
'name': 'Joao', | |
'room': 'sala 1', | |
'text': '', | |
'type': 'SocketEventType.enter_room', |
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
// This is a basic Flutter widget test. | |
// | |
// To perform an interaction with a widget in your test, use the WidgetTester | |
// utility that Flutter provides. For example, you can send tap and scroll | |
// gestures. You can also use WidgetTester to find child widgets in the widget | |
// tree, read text, and verify that the values of widget properties are correct. | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_test/flutter_test.dart'; |
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
storePassword=sua-senha | |
keyPassword=sua-senha | |
keyAlias=seuappkey | |
storeFile=/home/marcos-bah/Documents/keys/SeuAppKey.jks | |
versionCode=2 | |
versionName=1.0.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
def localProperties = new Properties() | |
def localPropertiesFile = rootProject.file('local.properties') | |
if (localPropertiesFile.exists()) { | |
localPropertiesFile.withReader('UTF-8') { reader -> | |
localProperties.load(reader) | |
} | |
} | |
def flutterRoot = localProperties.getProperty('flutter.sdk') | |
if (flutterRoot == null) { |
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
#include <stdio.h> | |
#include <stdlib.h> | |
//representacao dos nós | |
typedef struct node *link; | |
struct node { | |
int w; | |
link next; | |
}; |
$ cd cli
$ dart run