Skip to content

Instantly share code, notes, and snippets.

View orospakr's full-sized avatar

Andrew Clunis orospakr

View GitHub Profile
import Foundation
import RoverCampaigns
@objcMembers @objc
public class RoverWrapper : NSObject {
public static func startRover() {
// The following is the same as you have seen in the Rover documentation:
// Initialize Rover Campagins with its modules
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN graphql-gateway No repository field.
npm WARN graphql-gateway No license field.
npm ERR! path /rover/graphql-gateway/node_modules
npm ERR! code EBUSY
npm ERR! errno -16
npm ERR! syscall mkdir
npm ERR! EBUSY: resource busy or locked, mkdir '/rover/graphql-gateway/node_modules'
@orospakr
orospakr / open-notification-example.swift
Last active June 13, 2019 18:12
Example of how to open a Rover Notification manually.
// NOTE: a future update is going to render this code unnecessary.
let notification = // get a reference to the Rover Notification using your own table data source.
// Resolve various Rover subsystems from the SDK that you will need to do the below logic.
// (Change `RoverCampaigns` to `Rover` if you are still targetting 2.x)
let notificationStore = RoverCampaigns.shared!.resolve(NotificationStore.self)!
let router = RoverCampaigns.shared!.resolve(Router.self)!
let dispatcher = RoverCampaigns.shared!.resolve(Dispatcher.self)!

Rover 2.0 Debug App

rv-inbox://presentSettings

rv-inbox://presentExperience?id=5b89513b045f150012698fb1

rv-inbox://presentNotificationCenter

# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
adb I 90270 17586402 adb_io.cpp:99] writex: fd=7 len=4 4641494c FAIL
adb I 90270 17586402 adb_io.cpp:99] writex: fd=7 len=33 3030316464657669636520275a583147 001ddevice 'ZX1G
adb I 90270 17586402 sockets.cpp:739] SS(0): okay transport
adb I 90270 17586402 sockets.cpp:345] LS(1146): fd=7 post peer->enqueue(). r=0
adb I 90270 17586402 fdevent.cpp:373] --- --- waiting for events
adb I 90270 17586402 fdevent.cpp:241] poll(), pollfds = 7(R) 6(R) 9(R) 4(R)
adb I 90270 17586402 fdevent.cpp:249] for fd 7, revents = 11
adb I 90270 17586402 fdevent.cpp:274] (fdevent 7 AR) got events 5
adb I 90270 17586402 fdevent.cpp:287] fdevent_call_fdfunc (fdevent 7 AR)
adb I 90270 17586402 sockets.cpp:252] LS(1146): event_func(fd=7(==7), ev=0005)
@orospakr
orospakr / gist:181af5ebe83a1a0b07dd
Created September 11, 2014 13:47
Rdio segfault on start (3.0.0.4)
D/AbstractMetricsFactoryImpl( 3341): record : No data points in metrics event
I/Timeline( 1379): Timeline: Activity_launch_request id:com.rdio.android.ui time:255699771
I/ActivityManager( 784): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.rdio.android.ui/rdio.android.activities.MainActivity bnds=[48,285][282,547] (has extras)} from pid 1379
D/AbstractMetricsFactoryImpl(31079): record : No data points in metrics event
V/Zygote (13354): Switching descriptor 33 to /dev/null
V/Zygote (13354): Switching descriptor 10 to /dev/null
I/ActivityManager( 784): Start proc com.rdio.android.ui for activity com.rdio.android.ui/rdio.android.activities.MainActivity: pid=13354 uid=10142 gids={50142, 3003, 1028, 1015}
I/MicrophoneInputStream(11273): mic_close fib@429cba80
V/audio_hw_primary( 217): in_standby: enter
V/audio_hw_primary( 217): stop_input_stream: enter: usecase(4: audio-record)
@orospakr
orospakr / gist:d11f38deeea340f8cb53
Created September 6, 2014 00:05
Rdio Android app broken.
E/mono-rt (18639): Stacktrace:
E/mono-rt (18639):
E/mono-rt (18639): at <unknown> <0xffffffff>
E/mono-rt (18639): at (wrapper managed-to-native) Rdio.Android.Player.RdioNativePlayer.createPcmAudioPlayer (uint,uint) <0xffffffff>
E/mono-rt (18639): at Rdio.Android.Player.RdioNativePlayer.Initialize (bool,uint,uint) <0x000c7>
E/mono-rt (18639): at Rdio.Android.Player.MediaPlayerManager..ctor (int,Pulser.Rdio.Player.IAudioPlayerListener,bool) <0x00117>
E/mono-rt (18639): at Rdio.Android.Player.AndroidPlayerBackend..ctor (Android.Content.Context,Android.Content.ComponentName) <0x0020f>
E/mono-rt (18639): at Rdio.Android.Application.OnCreate () <0x00a1f>
E/mono-rt (18639): at Android.App.Application.n_OnCreate (intptr,intptr) <0x00037>
E/mono-rt (18639): at (wrapper dynamic-method) object.828fc99a-b44b-4f10-b6ce-e0a7868fd8b6 (intptr,intptr) <0x0003b>