Skip to content

Instantly share code, notes, and snippets.

masashi-sutou masashi-sutou

Block or report user

Report or block masashi-sutou

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@masashi-sutou
masashi-sutou / rich_popup_screen.dart
Last active May 21, 2019
Flutter Tokyo Meetup #9 で発表したときのサンプルコード
View rich_popup_screen.dart
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
View bug_screen.dart
import 'package:flutter/material.dart';
import 'package:porto/firebase/base_firestore.dart';
import 'package:porto/model/feature_content.dart';
class StoreScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return const _StoreScreenState();
}
}
@masashi-sutou
masashi-sutou / Fastfile
Last active Mar 9, 2019
Flutter Android をDeployGateに配信する最小手順のFastfileです
View Fastfile
default_platform(:android)
platform :android do
before_all do |lane, options|
ENV["DEPLOYGATE_API_TOKEN"] = '自分のアカウントから発行できるAPIトークンを指定'
end
desc "Submit a new Beta Build to Crashlytics Beta"
lane :beta do
sh('cd ../../ && flutter build apk --release')
View Fastfile
# 環境変数のセットアップ
private_lane :setup_env_in_util do |options|
# fastlane
ENV["FASTLANE_USER"] = "XXXX@example.com"
ENV["FASTLANE_PASSWORD"] = "XXXXXXXXXXXXX"
# fastlane match
ENV["MATCH_PASSWORD"] = "XXXXXXXXXXXXX"
View Fastfile
# 共通処理を別リポジトリのFastfileから参照する
import_from_git(url: 'git@github.com:example/example-fastlane.git',
path: 'util/Fastfile')
default_platform(:ios)
platform :ios do
before_all do |lane, options|
View Fastfile
# 共通処理を別リポジトリのFastfileから参照する
import_from_git(url: 'git@github.com:example/example-fastlane.git',
path: 'util/Fastfile')
default_platform(:android)
platform :android do
before_all do |lane, options|
@masashi-sutou
masashi-sutou / config.yml
Last active May 7, 2019
~/.circleci/config.yml ref:Qiita記事「CircleCI 2.1 と fastlane で Flutter の iOS と Android をビルドして DeployGate で配布する」
View config.yml
version: 2.1
executors:
default_android:
shell: /bin/bash --login -eo pipefail
environment:
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
working_directory: ~/flutterApp
docker:
- image: cirrusci/flutter:latest
View SwifterWrapper.swift
import Foundation
import Swifter
@objc class SwifterWrapper: NSObject {
@objc static let share: SwifterWrapper = SwifterWrapper()
private var twitter: Swifter?
private var callbackUrl: URL?
private override init() {
You can’t perform that action at this time.