Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit dbe3018

Browse files
committed
[[ Bug 23193 ]] Conditionally include AppTrackingTransparency framework
This patch ensures the AppTrackingTransparency framework is included only if the version of the target_sdk is 14+
1 parent 54745e3 commit dbe3018

File tree

5 files changed

+57
-9
lines changed

5 files changed

+57
-9
lines changed

engine/bind-ios-standalone.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
11
#!/bin/bash
22

3+
read SDK_MAJORVERSION SDK_MINORVERSION <<<${SDK_NAME//[^0-9]/ }
4+
35
set -e
46

57
case "$1" in
68
*-community.lcext)
7-
DEPS_FILE="${SRCROOT}/standalone.ios"
9+
if [[ $SDK_MAJORVERSION -lt 14 ]] ; then
10+
DEPS_FILE="${SRCROOT}/standalone.ios"
11+
else
12+
DEPS_FILE="${SRCROOT}/standalone14.ios"
13+
fi
814
;;
915
*-commercial.lcext)
10-
DEPS_FILE="${SRCROOT}/../livecode/engine/standalone.ios"
16+
if [[ $SDK_MAJORVERSION -lt 14 ]] ; then
17+
DEPS_FILE="${SRCROOT}/../livecode/engine/standalone.ios"
18+
else
19+
DEPS_FILE="${SRCROOT}/../livecode/engine/standalone14.ios"
20+
fi
1121
;;
1222
esac
1323

engine/engine.gyp

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -289,12 +289,26 @@
289289

290290
# Forces all dependencies to be linked properly
291291
'type': 'shared_library',
292+
293+
'conditions':
294+
[
295+
[
296+
'("11" not in target_sdk) and ("12" not in target_sdk) and ("13" not in target_sdk)',
297+
{
298+
'variables':
299+
{
300+
'deps_file': '${SRCROOT}/standalone14.ios',
301+
},
302+
},
303+
{
304+
'variables':
305+
{
306+
'deps_file': '${SRCROOT}/standalone.ios',
307+
},
308+
}
309+
],
310+
],
292311

293-
'variables':
294-
{
295-
'deps_file': '${SRCROOT}/standalone.ios',
296-
},
297-
298312
'xcode_settings':
299313
{
300314
'DEAD_CODE_STRIPPING': 'NO',

engine/kernel.gyp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
},
188188
],
189189
[
190-
'OS == "ios" and target_sdk >= "14.0"',
190+
'OS == "ios" and ("11" not in target_sdk) and ("12" not in target_sdk) and ("13" not in target_sdk)',
191191
{
192192
'libraries':
193193
[

engine/standalone.ios

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,3 @@ framework EventKit
2222
framework EventKitUI
2323
framework Security
2424
framework WebKit
25-
framework AppTrackingTransparency

engine/standalone14.ios

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
library z
2+
framework CoreMedia
3+
framework CoreGraphics
4+
framework QuartzCore
5+
framework AVFoundation
6+
framework AVKit
7+
framework CoreLocation
8+
framework MediaPlayer
9+
framework MessageUI
10+
framework AudioToolbox
11+
framework CFNetwork
12+
framework SystemConfiguration
13+
framework OpenGLES
14+
framework Foundation
15+
framework UIKit
16+
framework CoreText
17+
framework StoreKit
18+
framework CoreMotion
19+
framework AddressBook
20+
framework AddressBookUI
21+
framework EventKit
22+
framework EventKitUI
23+
framework Security
24+
framework WebKit
25+
framework AppTrackingTransparency

0 commit comments

Comments
 (0)