- Install LiveView globally:
npm i -g liveview- Change the
~/.titanium/config.jsonto include the CLI hook (underpaths->hook):
{
"user": { ... },
"app": { ... },
"cli": { ... },npm i -g liveview~/.titanium/config.json to include the CLI hook (under paths -> hook):{
"user": { ... },
"app": { ... },
"cli": { ... },| 'use strict'; | |
| const execSync = require('child_process').execSync; | |
| const json = JSON.parse(execSync('xcrun simctl list --json')); | |
| for (const runtime of Object.keys(json.devices)) { | |
| for (const device of json.devices[runtime]) { | |
| console.log(`Removing ${device.name} (${device.udid})`); | |
| execSync(`xcrun simctl delete ${device.udid}`); | |
| } |
| package my.packagename; | |
| import android.app.TimePickerDialog; | |
| import android.content.Context; | |
| import android.content.res.TypedArray; | |
| import android.os.Build; | |
| import android.util.AttributeSet; | |
| import android.widget.TimePicker; | |
| import java.lang.reflect.Constructor; |