Skip to content

Instantly share code, notes, and snippets.

name: manual build & deploy for Android
on:
workflow_dispatch:
inputs:
branche:
description: 'Set the branch to build.'
required: true
default: 'develop'
jobs:
name: manual build & deploy for iOS
on:
workflow_dispatch:
inputs:
branche:
description: 'Set the branch to build.'
required: true
default: 'main'
name: auto build & deploy for iOS
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: auto build & deploy for Andorid
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
include: package:flutter_lints/flutter.yaml
analyzer:
exclude:
- "**/*.g.dart" # for freezed
- "**/*.freezed.dart" # for freezed
errors:
missing_required_param: warning
missing_return: warning
invalid_annotation_target: ignore # for freezed
name: Flutter_Analyzer
on:
pull_request:
types: [opened, synchronize]
jobs:
flutter_analyze:
runs-on: ubuntu-latest
timeout-minutes: 10
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.XR.ARFoundation;
using UnityEngine.XR.ARSubsystems;
public class ARRaycast : MonoBehaviour
{
private ARRaycastManager m_RaycastManager;
private List<ARRaycastHit> hitResults = new List<ARRaycastHit>();
// ViewControllerのクラスをStoryboardInitializableプロトコルに準拠させる
class IkujiLogInputViewController: UIViewController, StoryboardInitializable {
// hoge〜
}
// ViewControllerを取得して表示させる(別のViewControllerで記述する)
let vc = IkujiLogInputViewController.instantiateStoryboard()
present(vc, animated: true, completion: nil)
import Foundation
protocol StoryboardInitializable {
}
extension StoryboardInitializable where Self: UIViewController {
static func instantiateStoryboard() -> Self {
let type = Mirror(reflecting: self).subjectType
let name = String(describing: type).components(separatedBy: ".")[0]