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
Pod::Spec.new do |s| | |
s.name = "Mantle" | |
s.version = "0.3" | |
s.summary = "Model framework for Cocoa and Cocoa Touch." | |
s.homepage = "https://github.com/github/Mantle" | |
s.license = 'MIT' | |
s.author = { "GitHub" => "[email protected]" } | |
s.source = { :git => "https://github.com/github/Mantle.git", :tag => "0.3" } |
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
09-06 08:56:06.278 I/System (18318): Failed to destroy process 18365 | |
09-06 08:56:06.283 I/System (18318): libcore.io.ErrnoException: kill failed: ESRCH (No such process) | |
09-06 08:56:06.283 I/System (18318): at libcore.io.Posix.kill(Native Method) | |
09-06 08:56:06.283 I/System (18318): at libcore.io.ForwardingOs.kill(ForwardingOs.java:77) | |
09-06 08:56:06.283 I/System (18318): at java.lang.ProcessManager$ProcessImpl.destroy(ProcessManager.java:257) | |
09-06 08:56:06.283 I/System (18318): at com.nolanlawson.logcat.b.f.b(Unknown Source) | |
09-06 08:56:06.283 I/System (18318): at com.nolanlawson.logcat.reader.LogcatReaderLoader.<init>(Unknown Source) | |
09-06 08:56:06.283 I/System (18318): at com.nolanlawson.logcat.reader.LogcatReaderLoader.a(Unknown Source) | |
09-06 08:56:06.283 I/System (18318): at com.nolanlawson.logcat.b.l.a(Unknown Source) | |
09-06 08:56:06.283 I/System (18318): at com.nolanlawson.logcat.b.c.doInBackground(Unknown Source) |
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
09-06 08:41:12.163 I/System (15258): Failed to destroy process 16141 | |
09-06 08:41:12.163 I/System (15258): libcore.io.ErrnoException: kill failed: ESRCH (No such process) | |
09-06 08:41:12.163 I/System (15258): at libcore.io.Posix.kill(Native Method) | |
09-06 08:41:12.163 I/System (15258): at libcore.io.ForwardingOs.kill(ForwardingOs.java:77) | |
09-06 08:41:12.163 I/System (15258): at java.lang.ProcessManager$ProcessImpl.destroy(ProcessManager.java:257) | |
09-06 08:41:12.163 I/System (15258): at com.nolanlawson.logcat.b.f.b(Unknown Source) | |
09-06 08:41:12.163 I/System (15258): at com.nolanlawson.logcat.reader.LogcatReaderLoader.<init>(Unknown Source) | |
09-06 08:41:12.163 I/System (15258): at com.nolanlawson.logcat.reader.LogcatReaderLoader.a(Unknown Source) | |
09-06 08:41:12.163 I/System (15258): at com.nolanlawson.logcat.b.l.a(Unknown Source) | |
09-06 08:41:12.163 I/System (15258): at com.nolanlawson.logcat.b.c.doInBackground(Unknown Source) |
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
$ cd $ANDROID_SRC | |
$ cd sdk/emulator | |
$ g++ qtools/post_trace.cpp qtools/trace_reader.cpp qtools/decoder.cpp -I../../external/qemu -o ../../post_trace | |
$ g++ qtools/q2dm.cpp qtools/dmtrace.cpp qtools/trace_reader.cpp qtools/decoder.cpp qtools/thumbdis.cpp qtools/read_elf.cpp qtools/armdis.cpp qtools/parse_options.cpp qtools/opcode.cpp -I../../external/qemu -o ../../q2dm | |
$ ./post_trace $TRACE | |
$ ./q2dm $TRACE prebuilt/android-arm/kernel/vmlinux-qemu dmtrace | |
# [-r $ANDROID_PRODUCT_OUT/symbols] |
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 static junit.framework.Assert.assertTrue; | |
import com.jayway.android.robotium.solo.Solo; | |
import android.app.Activity; | |
import android.app.Instrumentation; | |
import java.util.regex.Pattern; |
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
trait RobolectricSuite extends Suite with FlatSpec with BeforeAndAfter { | |
lazy val instrumentedClass = RobolectricSuite.classLoader.bootstrap(this.getClass) | |
lazy val instrumentedInstance = instrumentedClass.newInstance().asInstanceOf[RobolectricSuite] | |
lazy val robolectricConfig = new RobolectricConfig(new File(".")) | |
lazy val defaultDatabaseMap: DatabaseMap = new com.xtremelabs.robolectric.util.SQLiteMap() | |
lazy val resourceLoader = { | |
new ResourceLoader(robolectricConfig.getRealSdkVersion, | |
Class.forName(robolectricConfig.getRClassName), |
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
trait RobolectricSuite extends Suite { | |
lazy val instrumentedClass = RobolectricSuite.classLoader.bootstrap(this.getClass) | |
lazy val instrumentedInstance = instrumentedClass.newInstance().asInstanceOf[RobolectricSuite] | |
lazy val robolectricConfig = new RobolectricConfig(new File(".")) | |
lazy val defaultDatabaseMap: DatabaseMap = new com.xtremelabs.robolectric.util.SQLiteMap() | |
lazy val resourceLoader = { | |
new ResourceLoader(robolectricConfig.getRealSdkVersion, | |
Class.forName(robolectricConfig.getRClassName), | |
robolectricConfig.getResourceDirectory, |
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
> gen-idea no-classifiers | |
[info] Trying to create an Idea module Apklib Sample | |
[info] Trying to create an Idea module tests | |
[info] Updating {file:/Users/jan/tmp/1709186/}tests... | |
[info] Resolving apklib-sample#apklib-sample_2.9.1;0.1 ... | |
[info] Resolving org.scala-lang#scala-library;2.9.1 ... | |
[info] Resolving com.actionbarsherlock#library;4.0.0-SNAPSHOT ... | |
[warn] module not found: com.actionbarsherlock#library;4.0.0-SNAPSHOT | |
[warn] ==== local: tried | |
[warn] /Users/jan/.ivy2/local/com.actionbarsherlock/library/4.0.0-SNAPSHOT/ivys/ivy.xml |
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
//: generics/SelfBounding.java | |
class SelfBounded<T extends SelfBounded<T>> { | |
T element; | |
SelfBounded<T> set(T arg) { | |
element = arg; | |
return this; | |
} | |
T get() { return element; } | |
} |
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
Robolectric.getFakeHttpLayer().addHttpResponseRule( | |
new FakeHttpLayer.RequestMatcherResponseRule( | |
new FakeHttpLayer.RequestMatcherBuilder(), | |
new IOException("fail") | |
) | |
); | |