Commit 3caf8615 authored by Evan Blake's avatar Evan Blake

Screen sharing is a failure. Progress so far included

parent 1f9e40be
/*
* Copyright (C) 2012 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.YourCompany.VRClassroom;
import com.google.android.vending.expansion.downloader.DownloaderClientMarshaller;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager.NameNotFoundException;
/**
* You should start your derived downloader class when this receiver gets the message
* from the alarm service using the provided service helper function within the
* DownloaderClientMarshaller. This class must be then registered in your AndroidManifest.xml
* file with a section like this:
* <receiver android:name=".AlarmReceiver"/>
*/
public class AlarmReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
try {
DownloaderClientMarshaller.startDownloadServiceIfRequired(context, intent, OBBDownloaderService.class);
} catch (NameNotFoundException e) {
e.printStackTrace();
}
}
}
/*
* Copyright (C) 2012 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.YourCompany.VRClassroom;
import com.google.android.vending.expansion.downloader.impl.DownloaderService;
/**
* Minimal client implementation of the
* DownloaderService from the Downloader library.
*/
public class OBBDownloaderService extends DownloaderService {
// stuff for LVL -- MODIFY FOR YOUR APPLICATION!
private static final String BASE64_PUBLIC_KEY = "";
// used by the preference obfuscater
private static final byte[] SALT = new byte[] {
1, 43, -12, -1, 54, 98,
-100, -12, 43, 2, -8, -4, 9, 5, -106, -108, -33, 45, -1, 84
};
public static int getPublicKeyLength() {
return BASE64_PUBLIC_KEY.length();
}
/**
* This public key comes from your Android Market publisher account, and it
* used by the LVL to validate responses from Market on your behalf.
*/
@Override
public String getPublicKey() {
return BASE64_PUBLIC_KEY;
}
/**
* This is used by the preference obfuscater to make sure that your
* obfuscated preferences are different than the ones used by other
* applications.
*/
@Override
public byte[] getSALT() {
return SALT;
}
/**
* Fill this in with the class name for your alarm receiver. We do this
* because receivers must be unique across all of Android (it's a good idea
* to make sure that your receiver is in your unique package)
*/
@Override
public String getAlarmReceiverClassName() {
return com.YourCompany.VRClassroom.AlarmReceiver.class.getName();
}
}
package com.epicgames.ue4;
import com.YourCompany.VRClassroom.OBBDownloaderService;
import com.YourCompany.VRClassroom.DownloaderActivity;
import android.app.Activity;
import com.google.android.vending.expansion.downloader.Helpers;
import com.YourCompany.VRClassroom.OBBData;
public class DownloadShim
{
public static OBBDownloaderService DownloaderService;
public static DownloaderActivity DownloadActivity;
public static Class<DownloaderActivity> GetDownloaderType() { return DownloaderActivity.class; }
public static boolean expansionFilesDelivered(Activity activity, int version) {
for (OBBData.XAPKFile xf : OBBData.xAPKS) {
String fileName = Helpers.getExpansionAPKFileName(activity, xf.mIsMain, Integer.toString(version), OBBData.AppType);
GameActivity.Log.debug("Checking for file : " + fileName);
String fileForNewFile = Helpers.generateSaveFileName(activity, fileName);
String fileForDevFile = Helpers.generateSaveFileNameDevelopment(activity, fileName);
GameActivity.Log.debug("which is really being resolved to : " + fileForNewFile + "\n Or : " + fileForDevFile);
if (Helpers.doesFileExist(activity, fileName, xf.mFileSize, false)) {
GameActivity.Log.debug("Found OBB here: " + fileForNewFile);
}
else if (Helpers.doesFileExistDev(activity, fileName, xf.mFileSize, false)) {
GameActivity.Log.debug("Found OBB here: " + fileForDevFile);
}
else return false;
}
return true;
}
}
This diff is collapsed.
...@@ -25,7 +25,7 @@ DefaultGraphicsPerformance=Scalable ...@@ -25,7 +25,7 @@ DefaultGraphicsPerformance=Scalable
AppliedDefaultGraphicsPerformance=Scalable AppliedDefaultGraphicsPerformance=Scalable
[/Script/EngineSettings.GameMapsSettings] [/Script/EngineSettings.GameMapsSettings]
EditorStartupMap=/Game/Campus/Maps/Login.Login EditorStartupMap=/Game/Campus/Maps/MainMenu.MainMenu
LocalMapOptions= LocalMapOptions=
TransitionMap=None TransitionMap=None
bUseSplitscreen=False bUseSplitscreen=False
...@@ -34,7 +34,7 @@ ThreePlayerSplitscreenLayout=FavorTop ...@@ -34,7 +34,7 @@ ThreePlayerSplitscreenLayout=FavorTop
FourPlayerSplitscreenLayout=Grid FourPlayerSplitscreenLayout=Grid
bOffsetPlayerGamepadIds=False bOffsetPlayerGamepadIds=False
GameInstanceClass=/Script/VRClassroom.VRCGameInstance GameInstanceClass=/Script/VRClassroom.VRCGameInstance
GameDefaultMap=/Game/Campus/Maps/Login.Login GameDefaultMap=/Game/Campus/Maps/MainMenu.MainMenu
ServerDefaultMap=/Game/Campus/Maps/TestServer.TestServer ServerDefaultMap=/Game/Campus/Maps/TestServer.TestServer
GlobalDefaultGameMode=/Game/Campus/Blueprints/BP_GameMode.BP_GameMode_C GlobalDefaultGameMode=/Game/Campus/Blueprints/BP_GameMode.BP_GameMode_C
GlobalDefaultServerGameMode=None GlobalDefaultServerGameMode=None
...@@ -77,6 +77,7 @@ ExtraApplicationSettings= ...@@ -77,6 +77,7 @@ ExtraApplicationSettings=
ExtraActivitySettings= ExtraActivitySettings=
bAndroidVoiceEnabled=False bAndroidVoiceEnabled=False
+PackageForOculusMobile=Quest +PackageForOculusMobile=Quest
+PackageForOculusMobile=GearGo
bRemoveOSIG=True bRemoveOSIG=True
+GoogleVRCaps=Daydream33 +GoogleVRCaps=Daydream33
bGoogleVRSustainedPerformance=False bGoogleVRSustainedPerformance=False
...@@ -142,7 +143,7 @@ NDKAPILevelOverride= ...@@ -142,7 +143,7 @@ NDKAPILevelOverride=
[/Script/Engine.RendererSettings] [/Script/Engine.RendererSettings]
r.Mobile.DisableVertexFog=True r.Mobile.DisableVertexFog=True
r.Shadow.CSM.MaxMobileCascades=2 r.Shadow.CSM.MaxMobileCascades=2
r.MobileMSAA=1 r.MobileMSAA=4
r.Mobile.UseLegacyShadingModel=False r.Mobile.UseLegacyShadingModel=False
r.Mobile.AllowDitheredLODTransition=False r.Mobile.AllowDitheredLODTransition=False
r.Mobile.AllowSoftwareOcclusion=False r.Mobile.AllowSoftwareOcclusion=False
......
...@@ -145,11 +145,11 @@ FString UOWSGameInstance::EncryptWithAES(FString StringToEncrypt, FString Key) ...@@ -145,11 +145,11 @@ FString UOWSGameInstance::EncryptWithAES(FString StringToEncrypt, FString Key)
FAES::EncryptData(ByteString, Size, KeyAnsi); FAES::EncryptData(ByteString, Size, KeyAnsi);
StringToEncrypt = FString::FromHexBlob(ByteString, Size); StringToEncrypt = FString::FromHexBlob(ByteString, Size);
delete ByteString; //delete ByteString;
return StringToEncrypt; return StringToEncrypt;
} }
delete ByteString; //delete ByteString;
return ""; return "";
} }
...@@ -179,11 +179,11 @@ FString UOWSGameInstance::DecryptWithAES(FString StringToDecrypt, FString Key) ...@@ -179,11 +179,11 @@ FString UOWSGameInstance::DecryptWithAES(FString StringToDecrypt, FString Key)
StringToDecrypt.Split(SplitSymbol, &LeftPart, &RightPart, ESearchCase::CaseSensitive, ESearchDir::FromStart); StringToDecrypt.Split(SplitSymbol, &LeftPart, &RightPart, ESearchCase::CaseSensitive, ESearchDir::FromStart);
StringToDecrypt = LeftPart; StringToDecrypt = LeftPart;
delete ByteString; //delete ByteString;
return StringToDecrypt; return StringToDecrypt;
} }
delete ByteString; //delete ByteString;
return ""; return "";
} }
......
VlcMedia @ 5727e39b
Subproject commit 5727e39be8ea5cdf2b5894df3f7fcb99bbeafe38
{ {
"FileVersion": 3, "FileVersion": 3,
"EngineAssociation": "{0506F437-410D-A1AD-0DE5-36A1D1C0C5F7}", "EngineAssociation": "{7E4506D0-4E9A-9CE5-C703-1FAFBE0E6174}",
"Category": "", "Category": "",
"Description": "", "Description": "",
"Modules": [ "Modules": [
...@@ -42,10 +42,15 @@ ...@@ -42,10 +42,15 @@
{ {
"Name": "ReplicationGraph", "Name": "ReplicationGraph",
"Enabled": true "Enabled": true
},
{
"Name": "WebBrowserWidget",
"Enabled": true
} }
], ],
"TargetPlatforms": [ "TargetPlatforms": [
"Android", "Android",
"WindowsNoEditor" "WindowsNoEditor",
"WindowsNoEditorWin32"
] ]
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment