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
Isso tem a ver com o recurso Multi-User habilitado com JellyBean 4.2. A fim de lidar com contas separadas, partes da estrutura do diretório teve que ser mudado. '/sdcard/legacy' por exemplo sempre aponta para o diretório do cartão SD do usuário conectado no momento. | |
Com o Android 4.2, o Google introduziu um novo recurso Multi-User. A fim de acomodar vários usuários, o Google está disponibilizando a cada usuário sua própria pasta para armazenamento. | |
/storage/emulated/0/ | |
Isso se refere à "MMC" ("parte proprietário"). Normalmente, este é o interno. O "0" representa o usuário aqui, "0" é o primeiro dispositivo de proprietário do usuários. Se você criar usuários adicionais, este número aumentará para cada. | |
/storage/emulated/legacy/ | |
Como antes, mas apontando para a parte do usuário atualmente trabalhando (para o proprietário, este seria um link simbólico para(/storage/emulated/0/). |
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
language: node_js | |
sudo: required | |
node_js: | |
- "8.11.3" | |
env: | |
- CXX=g++-4.8 |
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:flutter/material.dart'; | |
import 'package:flutter_offline/flutter_offline.dart'; | |
class FlutterOffline extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return new Scaffold( | |
appBar: new AppBar( | |
title: new Text("Flutter Offline Demo"), | |
), |
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
@OptIn(ExperimentalComposeUiApi::class) | |
@Composable | |
private fun Content() { | |
val isTopMessageVisible = remember { mutableStateOf(true) } | |
Column( | |
modifier = Modifier | |
.fillMaxSize() | |
.padding(20.dp) |
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 fetch from 'node-fetch'; | |
import readline from 'readline'; | |
async function unwatchAllRepos() { | |
const rl = readline.createInterface({ | |
input: process.stdin, | |
output: process.stdout | |
}); | |
const accessToken = await new Promise<string>((resolve) => { |
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
#!/bin/bash | |
set -e # Exit immediately if a command exits with a non-zero status. | |
# Configuration Variables | |
ANDROID_VERSION="31" | |
SYSTEM_IMAGE="google_apis;x86_64" | |
AVD_NAME="Pixel_2_API_31" | |
RAM_SIZE="2048" | |
ANDROID_HOME="$HOME/Library/Android/sdk" |