Skip to content

Instantly share code, notes, and snippets.

View marcos-bah's full-sized avatar
🇧🇷
Working from home

Marcos Barbosa marcos-bah

🇧🇷
Working from home
View GitHub Profile
@marcos-bah
marcos-bah / dev.yml
Created July 12, 2021 19:37
Action para modo dev, build para android apk - flutter
# 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 []
@marcos-bah
marcos-bah / main.yml
Created July 12, 2021 19:34
Action para gerar página web - flutter
# 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 ]
# 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
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 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';
storePassword=sua-senha
keyPassword=sua-senha
keyAlias=seuappkey
storeFile=/home/marcos-bah/Documents/keys/SeuAppKey.jks
versionCode=2
versionName=1.0.1
@marcos-bah
marcos-bah / build.gradle
Created May 25, 2021 19:47
Tutorial de Assinatura de APP
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) {
#include <stdio.h>
#include <stdlib.h>
//representacao dos nós
typedef struct node *link;
struct node {
int w;
link next;
};
   
$ cd cli         
$ dart run