Skip to content

Commit

Permalink
Merge pull request #17 from Kariaro/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Kariaro authored Nov 5, 2022
2 parents 9307271 + 23c8212 commit 969f722
Show file tree
Hide file tree
Showing 330 changed files with 26,342 additions and 1,518 deletions.
53 changes: 47 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
name: Build VRigUnity 🎮

on: workflow_dispatch
name: Build VRigUnity

on:
workflow_dispatch:
inputs:
tag:
type: string
default: v0.10.1-macos11
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}

jobs:
buildWindows:
name: Build for Windows 🖥️
name: Build for Windows
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Download libs
run: bash download_libs.sh "${{ inputs.tag }}"

- uses: actions/cache@v2
with:
Expand All @@ -25,6 +31,7 @@ jobs:
- uses: game-ci/unity-builder@v2
with:
buildName: VRigUnity
targetPlatform: StandaloneWindows64

- uses: actions/upload-artifact@v2
Expand All @@ -33,13 +40,16 @@ jobs:
path: build/StandaloneWindows64

buildLinux:
name: Build for Linux 📱
name: Build for Linux
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Download libs
run: bash download_libs.sh "${{ inputs.tag }}"

- uses: actions/cache@v2
with:
Expand All @@ -51,9 +61,40 @@ jobs:
- uses: game-ci/unity-builder@v2
with:
buildName: VRigUnity
targetPlatform: StandaloneLinux64

- uses: actions/upload-artifact@v2
with:
name: build-StandaloneLinux64
path: build/StandaloneLinux64

buildOSX:
name: Build for OSX
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Download libs
run: bash download_libs.sh "${{ inputs.tag }}"

- uses: actions/cache@v2
with:
path: Library
key: Library-VRigUnity-OSX
restore-keys: |
Library-VRigUnity-
Library-
- uses: game-ci/unity-builder@v2
with:
buildName: VRigUnity
targetPlatform: StandaloneOSX

- uses: actions/upload-artifact@v2
with:
name: build-StandaloneOSX
path: build/StandaloneOSX
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ crashlytics-build.properties

# Remove mediapipe resources
/Packages/com.github.homuler.mediapipe/Runtime/Resources/
/Packages/com.github.homuler.mediapipe/Samples~/
Build/
Temp/
TempFolder/
TempFolder/

# Temp
.curl/

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Assets/Plugins/SimpleFileBrowser.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Assets/Plugins/SimpleFileBrowser/Android.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions Assets/Plugins/SimpleFileBrowser/Android/FBCallbackHelper.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#if UNITY_EDITOR || UNITY_ANDROID
using UnityEngine;

namespace SimpleFileBrowser
{
public class FBCallbackHelper : MonoBehaviour
{
private System.Action mainThreadAction = null;

private void Awake()
{
DontDestroyOnLoad( gameObject );
}

private void Update()
{
if( mainThreadAction != null )
{
System.Action temp = mainThreadAction;
mainThreadAction = null;
temp();
}
}

public void CallOnMainThread( System.Action function )
{
mainThreadAction = function;
}
}
}
#endif
12 changes: 12 additions & 0 deletions Assets/Plugins/SimpleFileBrowser/Android/FBCallbackHelper.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#if UNITY_EDITOR || UNITY_ANDROID
using UnityEngine;

namespace SimpleFileBrowser
{
public class FBDirectoryReceiveCallbackAndroid : AndroidJavaProxy
{
private readonly FileBrowser.AndroidSAFDirectoryPickCallback callback;
private readonly FBCallbackHelper callbackHelper;

public FBDirectoryReceiveCallbackAndroid( FileBrowser.AndroidSAFDirectoryPickCallback callback ) : base( "com.yasirkula.unity.FileBrowserDirectoryReceiver" )
{
this.callback = callback;
callbackHelper = new GameObject( "FBCallbackHelper" ).AddComponent<FBCallbackHelper>();
}

public void OnDirectoryPicked( string rawUri, string name )
{
callbackHelper.CallOnMainThread( () => DirectoryPickedCallback( rawUri, name ) );
}

private void DirectoryPickedCallback( string rawUri, string name )
{
try
{
if( callback != null )
callback( rawUri, name );
}
finally
{
Object.Destroy( callbackHelper.gameObject );
}
}
}
}
#endif

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#if UNITY_EDITOR || UNITY_ANDROID
using System.Threading;
using UnityEngine;

namespace SimpleFileBrowser
{
public class FBPermissionCallbackAndroid : AndroidJavaProxy
{
private object threadLock;
public int Result { get; private set; }

public FBPermissionCallbackAndroid( object threadLock ) : base( "com.yasirkula.unity.FileBrowserPermissionReceiver" )
{
Result = -1;
this.threadLock = threadLock;
}

public void OnPermissionResult( int result )
{
Result = result;

lock( threadLock )
{
Monitor.Pulse( threadLock );
}
}
}
}
#endif

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Assets/Plugins/SimpleFileBrowser/Prefabs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 969f722

Please sign in to comment.