Commit Graph

175 Commits

Author SHA1 Message Date
dmytro ivanov
8dea99a66a On Android only enable vulkan validation layers in debug in UE, in debug & development in Fortnite.
Copy validation layers .so in any non shipping build.
#jira UE-185390
#rb Dmitriy.Dyomin

[CL 28268168 by dmytro ivanov in ue5-main branch]
2023-09-27 06:16:11 -04:00
thomas ross
c549d7a65d Android Studio build improvements:
- Allow pass through of BypassGradlePackaging argument in UBT
- Allow setting skippackage to actually skip packaging on Android in UBT
- Fix to Android Studio detection to skip build.gradle stomping when building in RunUAT or VisualStudio. Requires setting File > Settings > Build, Execution, Deployment > Build Tools > Gradle > "Generate *.iml files for modules imported from Gradle"
- Save RunConfiguration for app config in AndroidStudio so that we can load already having the debugger set to dual and the correct LLDB StartupCommand set.
#tests Android, Dev, Client, compile, mobile
#rb swarm

[CL 28206857 by thomas ross in ue5-main branch]
2023-09-25 17:28:13 -04:00
dmytro ivanov
1b8c85f1c4 Enabling Vulkan Validation Layers on Android
#jira UE-185390
#rb Jack.Porter

[CL 28129801 by dmytro ivanov in ue5-main branch]
2023-09-22 07:18:17 -04:00
chris babcock
2ce9413c92 Kill java before clean step on Windows to fix locked files issue that sometimes occurs with minifyReleaseWithR8
#android
[REVIEW] [at]Ben.Temple
#rb Ben.Temple

[CL 27192837 by chris babcock in ue5-main branch]
2023-08-17 23:29:54 -04:00
chris babcock
292439c456 Ignore architecture offset for bundles when copying symbols
#jira UE-192615
#android
[REVIEW] [at]Billy.Quick
#rb Billy.Quick

[CL 27083298 by chris babcock in ue5-main branch]
2023-08-14 15:48:20 -04:00
joe kirchoff
22cdb0b04a UnrealBuildTool: Clean up IsBuildMachine checks
#rnx

[CL 27019595 by joe kirchoff in ue5-main branch]
2023-08-10 20:59:28 -04:00
chris babcock
d43d1225fe Support resizeability for foldable devices / multiscreen
#jira UE-168578
#android
[REVIEW] [at]Jack.Porter
#rb Jack.Porter

[CL 26910173 by chris babcock in ue5-main branch]
2023-08-07 23:01:55 -04:00
chris babcock
2554a6bbb7 Change GameActivity exported to true
#android
[REVIEW] [at]Peter.Sauerbrei
#rb Peter.Sauerbrei

[CL 26795021 by chris babcock in ue5-main branch]
2023-08-02 20:27:26 -04:00
chris babcock
6b2d27b94e Add exported=false to GameActivity for splashscreen case
Include symbol formatter for Android lldb in release

#android
[REVIEW] [at]Ben.Temple
#rb Ben.Temple

[CL 26760025 by chris babcock in ue5-main branch]
2023-08-01 18:58:16 -04:00
KXOC
1565be65b4 Replace list of quest devices in packaging settings with checkbox to package for all quest devices.
Also updating VRTemplate to create projects with the new settings and removing daydream deploy logic.

#jira UE-183636
#rb jeff.fisher robert.srinivasiah

[CL 25895938 by KXOC in ue5-main branch]
2023-06-09 11:58:31 -04:00
Chris Babcock
cd98a42dbc Fix up Lyra warnings
#jira UE-187229
#android
#review @Ryan.Hummer
#rb Ryan.Hummer

#preflight https://horde.devtools.epicgames.com/job/6478f6e77a6aeda41b5a5ed2

[CL 25743610 by Chris Babcock in ue5-main branch]
2023-06-01 17:30:34 -04:00
joe kirchoff
acacd6a8de UnrealBuildTool: More automated code cleanup
* Use object type rather than var
* Remove double newlines
* Use pattern matching

#rnx
#preflight 647780095d23eca37d28a387

[CL 25706751 by joe kirchoff in ue5-main branch]
2023-05-31 13:37:21 -04:00
joe kirchoff
acf80ab609 [Backout] - CL25694851
[FYI] Joe.Kirchoff
Original CL Desc
-----------------------------------------------------------------
UnrealBuildTool: More automated code cleanup

#rnx

[CL 25695155 by joe kirchoff in ue5-main branch]
2023-05-30 19:55:37 -04:00
joe kirchoff
7ed1a39679 UnrealBuildTool: More automated code cleanup
#rnx

[CL 25694864 by joe kirchoff in ue5-main branch]
2023-05-30 19:36:05 -04:00
joe kirchoff
c04da27b3b UnrealBuildTool: More automated code cleanup
#rnx
#preflight 64767efb4b1ead7c7f428c7a

[CL 25693857 by joe kirchoff in ue5-main branch]
2023-05-30 18:59:32 -04:00
joe kirchoff
36d266e932 UnrealBuildTool: Automated code cleanup
#rnx
#preflight 6476799e947ff6973c225619

[CL 25693241 by joe kirchoff in ue5-main branch]
2023-05-30 18:38:07 -04:00
Chris Babcock
a7b817d8ca Upgrade Android Studio and Gradle (OpenJDK 17 from 2202.2.1 and Gradle 7.5)
#jira UE-182869
#android
#review @Jack.Porter
#rb Ben.Temple

#preflight https://horde.devtools.epicgames.com/job/6470fd1fd729def34b72a8ff

[CL 25651882 by Chris Babcock in ue5-main branch]
2023-05-26 16:03:01 -04:00
joakim trossvik
fd0e37f99b Handle cellular network in background download
- When the App is alive and cellular is needed we show a "Waiting for cellular approval" notification
- When the app is killed you can accept cellular download from the notification tray.
- Still needs to rework cellular to connect it to the Java layer
- Accepting cellular when the app is open will replicated the value to the Java layer
#preflight 646f1b01f85111e06cf22e7f

[CL 25635253 by joakim trossvik in ue5-main branch]
2023-05-25 19:33:49 -04:00
chris babcock
b3320c28db Set buildToolsVersion in subprojects to match project for Android packaging
#jira UE-181263
#android
[REVIEW] [at]Jack.Porter
#rb Jack.Porter

#preflight https://horde.devtools.epicgames.com/job/641e22b5c42c7fd1cbe4858e

[CL 24791682 by chris babcock in ue5-main branch]
2023-03-24 21:28:33 -04:00
Rafa Lecina
a4120e35ca Fix Find/Join session using OSSNull on Android.
In order to use multicast communication or broadcasts Android applications need the CHANGE_WIFI_MULTICAST_STATE permission and acquiring a WifiManager.MulticastLock

#jira UE-165411
#review @Bertrand.Carre, @Chris.Varnsverry, @Chris.Babcock, @Jack.Porter
#preflight 63e363beb923ed4bdd350643

[CL 24069824 by Rafa Lecina in ue5-main branch]
2023-02-08 04:18:21 -05:00
josh adams
1610c3bee3 UnrealArch/UnrealArchitectures changes
- Creates the UnrealArchitectures class, which wraps a list of UnrealArch objects
 - UnrealArch is a single architecture, expandable enum-like struct
 - There is no more concept of "no/default architecture", there is always a valid active architecture when building
 - Most uses of "string Architecture" are replaced with one of the two above, depending if multiple architectures are supported or not
 - UnrealArch has some platform-extensions for platform-specific naming (like Linux adds in LinuxName that turns, for instance, Arm64 -> aarch64-unknown-linux-gnueabi, which is used in folder names, etc)
 - UnrealArch has bIsX64 which can be used determine intel instruction set (as opposed to arm)
 - TargetRules class has an "Architecture" accessor that will return a single architecture if the active architectures is a single architecture, or throw an exception if multiple. This is useful in a majority of the cases where a paltform can only have a single architecture active in TargetRules (microsoft platforms, for instance, will create separate targets when compiling multiple architectures at once)
 - Added UnrealArchitectureConfig class, which contains all the architecture information for a platform (what architectures are supported, what ones are currently active for given project, etc)

#preflight 63c81fb5b065224750a1759e
#rb mike.fricker,roman.dzieciol,joe.kirchoff,dmytro.vovk,brandon.schaefer [various parts]
#p4v-preflight-copy 23562471

[CL 23829977 by josh adams in ue5-main branch]
2023-01-24 09:30:28 -05:00
Josh Adams
6f8a642479 Android architecture overhaul (version 1, more can be done!)
- Changed -arm64 and -x64 to arm64 and x64
- Removed the Arches array and other multi-architecture stuff from Adnroid compiling and linking, and using the higher level UEToolchain functionality to handle multi-architecture
- AndroidToolchain is now a proper ClangToolchain subclass instead of overriding everything it did (being a proper ISPCToolchain subclass coming later)
- Updated some of the UEToolchain side stuff (Android is the first platform to need separate Link output, but still need a single Target)
- All the architecture stuff is driven by UEBuildAndroid, not AndroidToolchain, so the make-a-temp-toolchain object just to get architectures was removed
- Removed unused stuff like bAllowMissingNDK, bExecuteCompilerThroughShell, Arches/GPUArches arrays
- Added a high-levle ConvertToPlatformArchitecture() function that UBT can use to turn "x86_64" into the achitecture that Android wants of "x64"
#rb chris.babcock
#preflight 63bdb04271079a8d1c2ef110

[CL 23634002 by Josh Adams in ue5-main branch]
2023-01-10 16:44:45 -05:00
Chris Babcock
9038a4c061 Allow UPL to use tools schema
Allow "build" as part of project names

#jira UE-173037
#android
#review-23584632 none
#rb none

#preflight https://horde.devtools.epicgames.com/log/639e0337012902cb8df765e4

[CL 23584631 by Chris Babcock in ue5-main branch]
2023-01-04 20:52:16 -05:00
dmytro vovk
83fef012da Fixed HWASan build on Android
#rb trivial

[CL 23376312 by dmytro vovk in ue5-main branch]
2022-12-02 13:39:00 -05:00
chris babcock
ec7b516972 Set the minimum compile sdk for Android to 30
#jira UE-164796
#android
[REVIEW] [at]Jack.Porter
#rb Jack.Porter

#preflight https://horde.devtools.epicgames.com/job/632c7e98d51603c54843ee92

[CL 22146012 by chris babcock in ue5-main branch]
2022-09-22 17:42:15 -04:00