397 Commits

Author SHA1 Message Date
Terence Burns
bccbbc9e5a In App Purchases Google Play.
- IAP added using the google play billing helper functionality
- App Licensing Key and checking added, but not yet used.

- Changes to Store purchases to allow consumable flags.
- New maps added for android testing, this uses static responses for IAP purchase testing.

A few improvements left
- need licensing working for the query process.
- need testing without static responses. Work with google test responses.

[CL 2345308 by Terence Burns in Main branch]
2014-10-30 17:06:50 -04:00
Josh Adams
b3d5cf5e5c - Big cleanup of Android packaging optimization, made it more safe (adds a few seconds)
- Made java library handling programmatic, no more hardcoding googleplayservices (just put your lib in <Project>\\Build\\Android\\JavaLibs like we have google now in Engine\\Build\\Android\\Java\\JavaLibs)
#codereview chris.babcock,ryan.gerleve

[CL 2345079 by Josh Adams in Main branch]
2014-10-30 12:30:32 -04:00
Josh Adams
b87a67f286 Rollback //depot/UE4/Engine/Build/Android/Java/proguard-project.txt to revision 6
[CL 2341581 by Josh Adams in Main branch]
2014-10-27 17:08:16 -04:00
Josh Adams
6ca46f77c0 - Upgraded to support API 21 (Android 5.0, Lollipop)
- Lots of Android iteration speedups:
   - When compiling from UBT (Visual Studio) perform incremental APK generation - it doesn't wipe the Intermadiate/APK directory between runs
   - Don't update project settings every run:
      - Looks at the project.properties for both game and google play services to make sure they are built with current SDK API version, if not, fixup project.properties, etc
   - Even with a non-incremental build (from Editor/UAT), keep the pre-dexed libraries (currently GooglePlayServices [GPS] only) for HUGE speedup
   - We can't just pre-dex GPS and check-in, that's not going to be safe with different java/SDK versions.
   - Removed the project.properties and proguard-project.txt from p4, as they will be generated if needed. A game can pre-supply those if needed, but we will still check API version and update if required
#codereview chris.babcock,ryan.gerleve,michael.noland

[CL 2341079 by Josh Adams in Main branch]
2014-10-27 13:07:43 -04:00
JJ Hoesing
22f3cbb2fe - Initialize Android VR HMDs from the Java UI thread.
- The Native->Java->JavaUI->Native callback could probably be made more generic than this.

[CL 2335076 by JJ Hoesing in Main branch]
2014-10-20 19:15:50 -04:00
Ryan Gerleve
65ea708ade Add more ProGuard exceptions, for the Google Play Games C++ SDK
Fixes TTP 347366 and "for distribution" Android builds

[CL 2318076 by Ryan Gerleve in Main branch]
2014-10-02 19:09:23 -04:00
Ryan Gerleve
4bbfa19d27 Add Android support library, used by Google Play services SDK
Fixes building "For distribution" packages for Android

[CL 2314378 by Ryan Gerleve in Main branch]
2014-09-30 11:39:03 -04:00
Chris Babcock
fe7da34aec Removed Vibrator.hasVibrator() check since it was added in API11
#ue4
#Android

[CL 2307395 by Chris Babcock in Main branch]
2014-09-23 16:40:36 -04:00
Chris Babcock
6efa254792 Implemented FPlatformMisc::Controlscreensaver for Android and added ControlScreensaver Blueprint node
integrate from UE4-Fortnite
#ue4
#android

[CL 2303138 by Chris Babcock in Main branch]
2014-09-18 17:09:29 -04:00
Ryan Gerleve
be1e151d19 Convert to Google Play Games C++ SDK
Fix TTP 344211 - Leaderboard read now works for Google Play

#codereview josh.adams

[CL 2302926 by Ryan Gerleve in Main branch]
2014-09-18 16:41:28 -04:00
Chris Babcock
62788d6c1e Added force feedback support to Android to drive phone vibration
Merge //depot/UE4-Fortnite/... to to //depot/UE4/...
#ue4
#android

[CL 2300157 by Chris Babcock in Main branch]
2014-09-16 17:32:10 -04:00
Robert Jones
747014db6b Added support to Audio device for Android to check if background music/audio is playing.
[CL 2295167 by Robert Jones in Main branch]
2014-09-12 11:37:24 -04:00
Robert Jones
46586c6151 #ttp 344974 WEX: Support Android System font
Changed so that on start up we find the font dir and assign it to a global.
Double checked that 'droidsans' is a safe ttf to default to - it is.

#codereview chris.babcock, nick.atamas

[CL 2290870 by Robert Jones in Main branch]
2014-09-09 12:20:07 -04:00
Josh Adams
d67a3a64a5 - Initial "Fat" binary support for Android - multiple architectures at once, by compiling multiple .so's in one go of UBT (will be controlled by Project Settings, intentionally hidden for now)
- Added option to allow for splitting up into multiple .apks, or a single "fat" .apk (also not exposed yet in the project settings)
- A fat binary is just named <Project>.apk, no longer <Project>-armv7.apk
- x86 almost works, except missing libCurl and ICU
- x64 and arm64 will come next now that this framework is in place
#codereview chris.babcock

[CL 2272105 by Josh Adams in Main branch]
2014-08-26 09:56:29 -04:00
Josh Adams
ea7b46777c - Added Android HardwareSurvey
- Unified some of the hardware survey code to use Set/GetStoredValue() for last survey time
- Added Get/SetStoredValue for IOS (to use NSUserDefaults)
- NOTE: Mobile devices will report very often - settings are per app, and when they are deleted and re-installed, they will report again.
#codereview chris.babcock,ian.thomas

[CL 2267419 by Josh Adams in Main branch]
2014-08-22 10:24:13 -04:00
Saul Abreu
723301557d Fix for gnustl_shared not being loaded on Android devices before UE4 is loaded.
[CL 2261281 by Saul Abreu in Main branch]
2014-08-18 15:45:13 -04:00
Daniel Lamb
60ef19ca8f Added code to move android application to background (minimize). Also implemented quit for android.
Added JNI error codes to make errors in that easier to debug.

[CL 2243721 by Daniel Lamb in Main branch]
2014-08-04 20:46:25 -04:00
Robert Jones
365c65b557 TPP #341357 MobileMVP: Add support for OSS connect action in blueprint and response handling
Second pass
Removed new interface and change implementation to use the Indentify interface
Created Android implementation of the same.

[CL 2239877 by Robert Jones in Main branch]
2014-08-01 10:52:44 -04:00
Robert Jones
2aa36b96ac TPP #341357 MobileMVP: Add support for OSS connect action in blueprint and response handling
Initial pass
Adds component for blueprint and interface
Contains Android implementation only.
Everything else is null stubbed out.

Todo: figure out how to deal with failure error codes properly

[CL 2238494 by Robert Jones in Main branch]
2014-07-31 12:34:53 -04:00
Ryan Gerleve
7869cd2a32 Add Android GET_ACCOUNTS permission, needed to reset Google Play achievements
[CL 2234893 by Ryan Gerleve in Main branch]
2014-07-28 15:51:08 -04:00
Ryan Gerleve
c594bb8738 Update the Google Play achievement cache in native code after a reset command
[CL 2234807 by Ryan Gerleve in Main branch]
2014-07-28 14:55:35 -04:00
Ryan Gerleve
7820e78f83 Add new console command "online.ResetAchievements" and implement ResetAchievements for Google Play
On Google Play, this command will reset the achievements of the currently signed in user, and this user must be flagged as tester account in the developer console.
Google only seems to be resetting standard (non-incremental) achievements for some reason.

[CL 2234599 by Ryan Gerleve in Main branch]
2014-07-28 12:50:02 -04:00
Rolando Caloca
62373550e1 UE4 - Fix typo
[CL 2228592 by Rolando Caloca in Main branch]
2014-07-23 11:46:00 -04:00
Chris Babcock
5fc6ab1c3a Added console swipe history for Android
#Android
#ttp 341718
#codereview Daniel.Lamb,Josh.Adams

[CL 2227668 by Chris Babcock in Main branch]
2014-07-22 18:03:47 -04:00
Chris Babcock
53eb0d6358 integrating Android virtual keyboard from UE4-Fortnite to UE4
[CL 2225897 by Chris Babcock in Main branch]
2014-07-21 16:20:58 -04:00