This file contains hidden or 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
-- Merging decision tree log --- | |
application | |
INJECTED from /Users/febritecno/PROJECT/KANTOR/dteksi/dteksi/android/app/src/main/AndroidManifest.xml:16:4-48:19 | |
MERGED from [:url_launcher_android] /Users/febritecno/PROJECT/KANTOR/dteksi/dteksi/build/url_launcher_android/intermediates/merged_manifest/release/AndroidManifest.xml:9:5-14:19 | |
MERGED from [:url_launcher_android] /Users/febritecno/PROJECT/KANTOR/dteksi/dteksi/build/url_launcher_android/intermediates/merged_manifest/release/AndroidManifest.xml:9:5-14:19 | |
MERGED from [:open_filex] /Users/febritecno/PROJECT/KANTOR/dteksi/dteksi/build/open_filex/intermediates/merged_manifest/release/AndroidManifest.xml:12:5-23:19 | |
MERGED from [:open_filex] /Users/febritecno/PROJECT/KANTOR/dteksi/dteksi/build/open_filex/intermediates/merged_manifest/release/AndroidManifest.xml:12:5-23:19 | |
MERGED from [androidx.window:window:1.0.0-beta04] /Users/febritecno/.gradle/caches/transforms-3/43a316513d040e99de62269fc41a9c7e/transformed/jetified-window-1.0.0-beta04/AndroidManifest.xml:24 |
This file contains hidden or 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
name: Build Flutter APKs & Appbundle | |
on: push | |
jobs: | |
# Build APKs | |
build_apks: | |
name: Build APKs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code |
This file contains hidden or 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
// handle null and handle deepest data json | |
T? resolve<T>({ | |
required Map<String, dynamic>? json, | |
required String path, | |
T? defaultValue, | |
}) { | |
try { | |
if (json == null) { | |
return defaultValue; |
This file contains hidden or 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
// prefs_secure, rx_prefs, prefs | |
import 'package:flutter/foundation.dart'; | |
class Prefs { | |
static SharedPreferences? _prefs; | |
// call this method from iniState() function of mainApp(). | |
static Future<SharedPreferences?> init() async { | |
_prefs = await SharedPreferences.getInstance(); |
This file contains hidden or 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'; | |
import 'package:get/get.dart'; | |
import 'package:dio/dio.dart'; | |
void main() { | |
runApp(GetMaterialApp( | |
initialRoute: '/home', | |
getPages: [ | |
GetPage( | |
name: '/home', |
This file contains hidden or 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
// onRequest(config) | |
// onResponse(response) | |
// onError(err) | |
// onRequestError(err) | |
// onResponseError(err) | |
// $axios.interceptors.response.use(res) | |
import swal from "sweetalert2"; | |
export default function ({ | |
$axios, | |
$storage, |
This file contains hidden or 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
// gitlab variable -> $TOKEN_V2_JSON | |
image: mahdigharooni/flutter:latest #It is my flutter docker image, ok | |
stages: | |
- deploy | |
flutter_deploy: | |
stage: deploy | |
before_script: |
This file contains hidden or 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
# Useful to prevent Macbooks to go to sleep when closing the lid instead of running tools that requires a Kernel Extension (e.g. InsomniaX) and more | |
# Before doing anything, save your current configuration using | |
pmset -g | |
# To disable sleep | |
sudo pmset -a sleep 0; sudo pmset -a hibernatemode 0; sudo pmset -a disablesleep 1; | |
# And to go back to normal | |
sudo pmset -a sleep 1; sudo pmset -a hibernatemode [original hibernatemode value]; sudo pmset -a disablesleep 0; |