In the Vagrantfile, do :
# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
# your network.
config.vm.network :public_network
Homebrew build logs for rustup-init on Ubuntu 16.04.2 LTS | |
Build date: 2017-07-05 22:31:01 |
# How to use ART to compile arm oat files on the host: | |
# - Get source code according to https://source.android.com/source/downloading.html | |
# - source build/envsetup.sh | |
# - mm build-art | |
# - Use this script in the source root directory to compile APKs | |
CWD=`pwd` | |
export ANDROID_DATA="${CWD}/out/host/datadir/dalvik-cache/x86_64" | |
export ANDROID_ROOT="${CWD}/out/host/linux-x86" | |
BOOT_IMAGE="${CWD}/out/host/linux-x86/framework/core.art" |
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package ca.weblite.cocoa.ui; | |
import ca.weblite.objc.NSObject; | |
import ca.weblite.objc.Proxy; | |
import java.awt.FileDialog; | |
import static ca.weblite.objc.RuntimeUtils.msg; |
import scala.concurrent._ | |
def interruptableFuture[T](fun: Future[T] => T)(implicit ex: ExecutionContext): (Future[T], () => Boolean) = { | |
val p = Promise[T]() | |
val f = p.future | |
val lock = new Object | |
var currentThread: Thread = null | |
def updateCurrentThread(newThread: Thread): Thread = { | |
val old = currentThread | |
currentThread = newThread |
box: dant3/android | |
build: | |
steps: | |
- script: | |
name: install sbt-launcher | |
code: | | |
curl -o sbt-launcher.sh https://raw.githubusercontent.com/paulp/sbt-extras/master/sbt | |
chmod a+x ./sbt-launcher.sh | |
- script: | |
name: start emulator for tests |
language: android | |
os: | |
- linux | |
jdk: | |
- oraclejdk8 | |
cache: | |
directories: | |
- $HOME/.m2/repository | |
- $HOME/.sbt | |
- $HOME/.ivy2 |
class A | |
class A2 extends A | |
class B | |
trait M[X] | |
// | |
// Upper Type Bound | |
// | |
def upperTypeBound[AA <: A](x: AA): A = x |
import android.app.AlarmManager; | |
import android.app.IntentService; | |
import android.app.PendingIntent; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.text.TextUtils; | |
import android.util.Log; | |
import java.io.*; | |
import java.net.*; |
#!/bin/bash | |
PORT=5555 | |
echo "Getting device ip..." | |
PHONE_IP=`adb shell ip -f inet addr show wlan0 | grep inet | cut -d: -f2 | awk '{ print $2 }' | grep -E -o "([0-9]{1,3}[\.]){3}[0-9]{1,3}"` | |
echo "Device ip: $PHONE_IP" | |
echo "Enabling adb tcpip on port $PORT" | |
adb tcpip $PORT | |
echo "adb tcpip enabled. Connecting..." | |
adb connect $PHONE_IP:$PORT | |
echo "Adb over wifi connected. Now you can remove your usb cable." |