35 Commits
1.0.0 ... dev

Author SHA1 Message Date
oxmc
bf44cf9432 Update AssetsDownloader.cs 2023-01-14 14:46:58 -08:00
oxmc
d7e4e679f7 Update AssetsDownloader.cs 2023-01-14 14:35:12 -08:00
oxmc
f4debfca32 Update AssetsDownloader.cs 2023-01-13 17:11:13 -08:00
oxmc
b270433188 Update AssetsDownloader.cs 2023-01-13 16:53:01 -08:00
oxmc
ef98228aab Delete installapk.cs 2023-01-13 12:14:20 -08:00
oxmc
7135691a01 Update installapk.cs 2023-01-13 12:13:46 -08:00
oxmc
7c50d183f3 Update AndroidManifest.xml 2023-01-13 11:40:42 -08:00
oxmc
72b3f4212c Create installapk.cs 2023-01-13 11:35:49 -08:00
oxmc
6c3d5543b3 Update ProjectSettings.asset 2022-12-31 18:59:30 -08:00
oxmc
07b3b9ec40 Update build.yml 2022-12-31 05:00:54 -08:00
oxmc
59caa0e6dc Update build.yml 2022-12-31 04:42:48 -08:00
oxmc
0429d18c1d Update AssetsDownloader.cs 2022-12-31 04:28:32 -08:00
oxmc
0027452b92 Update AssetsDownloader.cs 2022-12-31 04:18:30 -08:00
oxmc
62c3569aef Update ProjectSettings.asset 2022-12-31 04:07:38 -08:00
oxmc
82421eb690 Update AssetsDownloader.cs 2022-12-31 04:04:21 -08:00
oxmc
64c243fb2a Update AssetsDownloader.cs 2022-12-31 03:56:01 -08:00
oxmc
14e44e456a Update AssetsDownloader.cs 2022-12-31 03:48:37 -08:00
oxmc
bd39092926 Update AssetsDownloader.cs 2022-12-31 03:38:33 -08:00
oxmc
83b9844fa7 Update AssetsDownloader.cs 2022-12-31 03:32:55 -08:00
oxmc
95c1f824ca Update AssetsDownloader.cs 2022-12-31 03:23:50 -08:00
oxmc
24632b9342 Update AssetsDownloader.cs 2022-12-31 02:30:29 -08:00
oxmc
d172c2446b Update AssetsDownloader.cs 2022-12-31 02:19:55 -08:00
oxmc
4563d42668 Update AssetsDownloader.cs 2022-12-31 02:04:24 -08:00
oxmc
9076e52a30 Update build.yml 2022-12-31 01:51:41 -08:00
oxmc
667d69ff79 Update build.yml 2022-12-31 01:42:22 -08:00
oxmc
833701faeb Update build.yml 2022-12-31 01:38:14 -08:00
oxmc
97aa3b9fdb Update build.yml 2022-12-31 01:37:56 -08:00
oxmc
4a1d666855 Update build.yml 2022-12-31 01:31:55 -08:00
oxmc
a2c0ec0747 Update build.yml 2022-12-31 01:27:03 -08:00
oxmc
72b499d08d Update build.yml 2022-12-31 01:26:40 -08:00
oxmc
6cb04f2574 Update README.md 2022-12-31 01:24:35 -08:00
oxmc
2d5d73c90a Update QuestAppLauncher.unity 2022-12-29 09:25:39 -08:00
oxmc
d4bc25c8cd Update Config.cs 2022-12-29 09:19:22 -08:00
oxmc
a8b4bcd17c Add files via upload 2022-12-29 09:17:11 -08:00
a9247df300 Test 1 2022-12-29 07:51:19 -08:00
9 changed files with 85 additions and 23 deletions

View File

@@ -2,9 +2,9 @@ name: Build
on:
push:
branches: [ "master" ]
branches: [ "dev" ]
pull_request:
branches: [ "master" ]
branches: [ "dev" ]
workflow_dispatch: {}
jobs:
@@ -45,19 +45,20 @@ jobs:
with:
targetPlatform: Android
allowDirtyBuild: true
buildName: "HooverHighQuestAppLauncher-DEV"
# Output
- name: Upload build
uses: softprops/action-gh-release@v1
with:
files: build/
files: build/Android/*.apk
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: "1.0.0"
tag_name: "1.0.0-dev"
# Upload dir
- uses: actions/upload-artifact@v2
with:
name: Build
name: Build-dev
path: build
# Return License

View File

@@ -10,6 +10,7 @@
</intent-filter>
</activity>
</application>
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
<uses-feature android:name="android.hardware.vr.headtracking" android:required="false" android:version="1" />
<uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" />
</manifest>
</manifest>

View File

@@ -20857,7 +20857,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &2124784240
RectTransform:
m_ObjectHideFlags: 0
@@ -20934,7 +20934,7 @@ MonoBehaviour:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 883330328}
m_MethodName: OpenSettings
m_MethodName: ""
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
@@ -14,6 +14,55 @@ using Newtonsoft.Json.Linq;
namespace QuestAppLauncher
{
public class InstallAPK
{
private bool installApp(string apkPath)
{
bool success = true;
//GameObject.Find("TextDebug").GetComponent<Text>().text = "Installing App";
try
{
//Get Activity then Context
AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
AndroidJavaObject currentActivity = unityPlayer.GetStatic<AndroidJavaObject>("currentActivity");
AndroidJavaObject unityContext = currentActivity.Call<AndroidJavaObject>("getApplicationContext");
//Get the package Name
string packageName = unityContext.Call<string>("getPackageName");
string authority = packageName + ".fileprovider";
AndroidJavaClass intentObj = new AndroidJavaClass("android.content.Intent");
string ACTION_VIEW = intentObj.GetStatic<string>("ACTION_VIEW");
AndroidJavaObject intent = new AndroidJavaObject("android.content.Intent", ACTION_VIEW);
int FLAG_ACTIVITY_NEW_TASK = intentObj.GetStatic<int>("FLAG_ACTIVITY_NEW_TASK");
int FLAG_GRANT_READ_URI_PERMISSION = intentObj.GetStatic<int>("FLAG_GRANT_READ_URI_PERMISSION");
//File fileObj = new File(String pathname);
AndroidJavaObject fileObj = new AndroidJavaObject("java.io.File", apkPath);
//FileProvider object that will be used to call it static function
AndroidJavaClass fileProvider = new AndroidJavaClass("android.support.v4.content.FileProvider");
//getUriForFile(Context context, String authority, File file)
AndroidJavaObject uri = fileProvider.CallStatic<AndroidJavaObject>("getUriForFile", unityContext, authority, fileObj);
intent.Call<AndroidJavaObject>("setDataAndType", uri, "application/vnd.android.package-archive");
intent.Call<AndroidJavaObject>("addFlags", FLAG_ACTIVITY_NEW_TASK);
intent.Call<AndroidJavaObject>("addFlags", FLAG_GRANT_READ_URI_PERMISSION);
currentActivity.Call("startActivity", intent);
//GameObject.Find("TextDebug").GetComponent<Text>().text = "Success";
}
catch (System.Exception e)
{
//GameObject.Find("TextDebug").GetComponent<Text>().text = "Error: " + e.Message;
success = false;
}
return success;
}
}
/// <summary>
/// Downloads assets (app icons packs and names files) from configured repos.
/// </summary>
@@ -29,7 +78,12 @@ namespace QuestAppLauncher
const string TempDownloadFileExtention = ".tmp_download";
// GitHub API url
const string GithubApiUrl = @"http://api.github.com/repos/";
const string GithubApiUrl = @"http://api.github.com/";
// If Github account is a org set this to true
public bool isorg = true;
public string GithubUrl = "";
// Rate limit in minutes
const int RateLimitInMins = 5;
@@ -187,9 +241,9 @@ namespace QuestAppLauncher
var configRepos = new HashSet<string>();
foreach (var item in config.downloadRepos)
{
if (null == item.type || !string.Equals(item.type, Config.DownloadRepo_Type_GitHub, StringComparison.OrdinalIgnoreCase))
if (null == item.type || !string.Equals(item.type, Config.DownloadRepo_Type_GitHub, StringComparison.OrdinalIgnoreCase) || !string.Equals(item.type, Config.DownloadRepo_Type_PrivUrl, StringComparison.OrdinalIgnoreCase))
{
// For now, we only support GitHub repos
// For now, we only support GitHub repos, or our private update url
continue;
}
@@ -294,7 +348,12 @@ namespace QuestAppLauncher
private async Task<bool> GetAssetsInfoFromGithubRepoAsync(string repoUri,
Dictionary<string, AssetInfo> assetsInfo, IDownloadProgress downloadProgress = null)
{
var requestUrl = GithubApiUrl + repoUri;
if (isorg == true) {
GithubUrl = GithubApiUrl + "orgs/";
} else {
GithubUrl = GithubApiUrl;
}
var requestUrl = GithubUrl + repoUri;
Debug.LogFormat("Reading assets from {0}", requestUrl);
try

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
@@ -26,10 +26,11 @@ namespace QuestAppLauncher
// Download repos
public const string DownloadRepo_Type_GitHub = "github";
public const string DownloadRepo_Type_PrivUrl = "hhsupserver";
public const string DownloadRepo_Default = @"hooverhigh/QuestAppLauncher_Assets/releases/latest";
// Background
public const string Background_Default = "default";
public const string Background_Default = "background.jpg";
/// <summary>
/// Grid size
@@ -37,8 +38,8 @@ namespace QuestAppLauncher
[Serializable]
public class GridSize
{
public int rows = 3;
public int cols = 3;
public int rows = 4;
public int cols = 4;
}
/// <summary>
@@ -61,7 +62,7 @@ namespace QuestAppLauncher
public bool show2D = true;
// Auto Category: Apps are automatically categorized into 3 tabs - Quest, Go/GearVr, 2D
public string autoCategory = Category_Top;
public string autoCategory = Category_Off;
// Custom Category: Apps are categorized according to appnames.txt file
public string customCategory = Category_Right;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

View File

@@ -12,8 +12,8 @@ PlayerSettings:
targetDevice: 2
useOnDemandResources: 0
accelerometerFrequency: 60
companyName: AAA
productName: .Quest App Launcher
companyName: hooverhigh
productName: Quest App Launcher
defaultCursor: {fileID: 0}
cursorHotspot: {x: 0, y: 0}
m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1}
@@ -165,8 +165,8 @@ PlayerSettings:
androidSupportedAspectRatio: 1
androidMaxAspectRatio: 2.1
applicationIdentifier:
Android: aaa.QuestAppLauncher.App
Standalone: com.DefaultCompany.QuestAppLauncher
Android: HooverHigh.QuestAppLauncher
Standalone: com.HooverHigh.QuestAppLauncher
buildNumber: {}
AndroidBundleVersionCode: 1
AndroidMinSdkVersion: 25

View File

@@ -1,6 +1,6 @@
# Quest App Launcher
[![Build](https://github.com/HooverHigh/QuestAppLauncher/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/HooverHigh/QuestAppLauncher/actions/workflows/build.yml)
[![Build](https://github.com/HooverHigh/QuestAppLauncher/actions/workflows/build.yml/badge.svg?branch=dev)](https://github.com/HooverHigh/QuestAppLauncher/actions/workflows/build.yml)
An app launcher for hoover high Oculus Quests, implemented in Unity.