Skip to content

Commit

Permalink
Oops, this namespace is only available in Unity builds
Browse files Browse the repository at this point in the history
  • Loading branch information
borrrden committed Jul 2, 2015
1 parent 55f7197 commit 6bcd809
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
using System.Threading;
using System.Runtime.InteropServices;
using Couchbase.Lite.Util;
using Couchbase.Lite.Unity;

#if __IOS__
using AOT = ObjCRuntime;
Expand Down Expand Up @@ -84,7 +83,7 @@ static RegisterService() {
}
#elif __UNITY_ANDROID__
static RegisterService() {
UnityMainThreadScheduler.TaskFactory.StartNew(() =>
Couchbase.Lite.Unity.UnityMainThreadScheduler.TaskFactory.StartNew(() =>
{
UnityEngine.AndroidJavaClass c = new UnityEngine.AndroidJavaClass("com.unity3d.player.UnityPlayer");
var context = c.GetStatic<UnityEngine.AndroidJavaObject>("currentActivity");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
using System.Collections.Generic;
using System.Threading;
using System.Runtime.InteropServices;
using Couchbase.Lite.Unity;

#if __IOS__
using AOT = ObjCRuntime;
Expand Down Expand Up @@ -114,7 +113,7 @@ static ServiceBrowser() {
}
#elif __UNITY_ANDROID__
static ServiceBrowser() {
UnityMainThreadScheduler.TaskFactory.StartNew(() =>
Couchbase.Lite.Unity.UnityMainThreadScheduler.TaskFactory.StartNew(() =>
{
UnityEngine.AndroidJavaClass c = new UnityEngine.AndroidJavaClass("com.unity3d.player.UnityPlayer");
var context = c.GetStatic<UnityEngine.AndroidJavaObject>("currentActivity");
Expand Down

0 comments on commit 6bcd809

Please sign in to comment.