Skip to content

Commit 561b38c

Browse files
committed
Remove armv7 as well.
1 parent 6ce5b23 commit 561b38c

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

build_scripts/ios/build.sh

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright 2020 Google LLC
44
#
55
# Script to build iOS XCFrameworks
6-
# If built for all architectures (arm64 armv7 x86_64),
6+
# If built for all architectures (arm64 x86_64),
77
# it will build universal framework as well
88
#
99

@@ -24,8 +24,8 @@ usage(){
2424
set -e
2525

2626
readonly SUPPORTED_PLATFORMS=(device simulator)
27-
readonly SUPPORTED_ARCHITECTURES=(arm64 armv7 x86_64)
28-
readonly DEVICE_ARCHITECTURES=(arm64 armv7)
27+
readonly SUPPORTED_ARCHITECTURES=(arm64 x86_64)
28+
readonly DEVICE_ARCHITECTURES=(arm64)
2929
readonly SIMULATOR_ARCHITECTURES=(arm64 x86_64)
3030
readonly SUPPORTED_TARGETS=(firebase_analytics firebase_auth firebase_app_check firebase_database firebase_dynamic_links firebase_firestore firebase_functions firebase_gma firebase_installations firebase_messaging firebase_remote_config firebase_storage)
3131

@@ -198,7 +198,7 @@ if ${cmakeBuild}; then
198198
done
199199
done
200200

201-
# if we built for all architectures (arm64 armv7 x86_64)
201+
# if we built for all architectures (arm64 x86_64)
202202
# build universal framework as well
203203
if [[ ${#architectures[@]} < ${#SUPPORTED_ARCHITECTURES[@]} ]]; then
204204
exit 0
@@ -209,7 +209,6 @@ if ${cmakeBuild}; then
209209
mkdir -p universal/${target}.framework
210210
libsubpath="${target}.framework/${target}"
211211
lipo -create "device-arm64/${libsubpath}" \
212-
"device-armv7/${libsubpath}" \
213212
"simulator-x86_64/${libsubpath}" \
214213
-output "universal/${libsubpath}"
215214
done
@@ -227,10 +226,9 @@ if ${cmakeBuild}; then
227226
for target in ${targets[@]}; do
228227
libsubpath="${target}.framework/${target}"
229228
if [[ "${platform}" == "device" ]]; then
230-
outputdir="${xcframeworkspath}/${target}.xcframework/ios-arm64_armv7/${target}.framework"
229+
outputdir="${xcframeworkspath}/${target}.xcframework/ios-arm64/${target}.framework"
231230
mkdir -p ${outputdir}
232231
lipo -create "${frameworkspath}/device-arm64/${libsubpath}" \
233-
"${frameworkspath}/device-armv7/${libsubpath}" \
234232
-output "${outputdir}/${target}"
235233

236234
elif [[ "${platform}" == "simulator" ]]; then
@@ -250,9 +248,9 @@ if ${cmakeBuild}; then
250248
done
251249

252250
# create Headers for xcframework
253-
if [[ ! -d "${xcframeworkspath}/firebase.xcframework/ios-arm64_armv7/firebase.framework/Headers" ]]; then
251+
if [[ ! -d "${xcframeworkspath}/firebase.xcframework/ios-arm64/firebase.framework/Headers" ]]; then
254252
cp -R ${frameworkspath}/device-arm64/firebase.framework/Headers \
255-
${xcframeworkspath}/firebase.xcframework/ios-arm64_armv7/firebase.framework/Headers
253+
${xcframeworkspath}/firebase.xcframework/ios-arm64/firebase.framework/Headers
256254
cp -R ${frameworkspath}/device-arm64/firebase.framework/Headers \
257255
${xcframeworkspath}/firebase.xcframework/ios-arm64_x86_64-simulator/firebase.framework/Headers
258256
fi

ios_pod/swift_headers/FirebaseStorage-Swift.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#if 0
2+
#elif defined(__armv7__) && __armv7__
3+
#error OOPS WE ARE BUILDING FOR 32-BIT
24
#elif defined(__arm64__) && __arm64__
35
// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)
46
#ifndef FIREBASESTORAGE_SWIFT_H

release_build_files/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ code.
631631
- Changes
632632
- General (Android): Update to Firebase Android BoM version 32.2.2.
633633
- General (iOS): Update to Firebase Cocoapods version 10.13.0.
634-
- General (iOS): 32-bit (i386) iOS simulator builds are no longer supported.
634+
- General (iOS): 32-bit iOS builds (i386 and armv7) are no longer supported.
635635
- GMA (Android): Fixed a crash when initializing GMA without a Firebase App.
636636

637637
### 11.3.0

scripts/gha/build_ios_tvos.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
'firebase_installations', 'firebase_messaging',
5656
'firebase_remote_config', 'firebase_storage'),
5757
'device': {
58-
'architectures' : ('arm64', 'armv7'),
58+
'architectures' : ('arm64'),
5959
'toolchain' : 'cmake/toolchains/ios.cmake',
6060
},
6161
'simulator': {
@@ -127,7 +127,7 @@ def arrange_frameworks(archive_output_path):
127127
def build_universal_framework(frameworks_path, targets):
128128
"""Create universal frameworks if possible.
129129
130-
If all architectures (eg: arm64, armv7 etc) and platforms (device, simulator)
130+
If all architectures (eg: arm64, etc) and platforms (device, simulator)
131131
were built, combine all of the libraries into a single universal framework.
132132
Args:
133133
frameworks_path (str): Root path containing subdirectories for each
@@ -178,7 +178,7 @@ def build_universal_framework(frameworks_path, targets):
178178
framework_os_path = os.path.join(frameworks_path, apple_os)
179179
# Extract list of all built platform-architecture combinations into a map.
180180
# Map looks like this,
181-
# {'device': ['arm64', 'armv7'], 'simulator': ['x86_64']}
181+
# {'device': ['arm64''], 'simulator': ['x86_64']}
182182
platform_variant_architecture_dirs = os.listdir(framework_os_path)
183183
platform_variant_arch_map = defaultdict(list)
184184
for variant_architecture in platform_variant_architecture_dirs:
@@ -273,7 +273,7 @@ def build_xcframeworks(frameworks_path, xcframeworks_path, template_info_plist,
273273
"""Build xcframeworks combining libraries for different operating systems.
274274
275275
Combine frameworks for different operating systems (ios, tvos), architectures
276-
(arm64, armv7, x86_64 etc) per platform variant (device, simulator).
276+
(arm64, x86_64 etc) per platform variant (device, simulator).
277277
This makes it super convenient for developers to use a single deliverable in
278278
XCode and develop for multiple platforms/operating systems in one project.
279279
@@ -304,7 +304,7 @@ def build_xcframeworks(frameworks_path, xcframeworks_path, template_info_plist,
304304
Output: <build_dir>/xcframeworks <----------- <xcframeworks_path>
305305
- firebase.xcframework
306306
- Info.plist <----------- <Info.plist file>
307-
- ios-arm64_armv7 <-- <all_libraries_for_ios_device>
307+
- ios-arm64 <-- <all_libraries_for_ios_device>
308308
- firebase.framework
309309
- firebase <---- <library>
310310
- Headers <---- <all_include_headers>
@@ -320,7 +320,7 @@ def build_xcframeworks(frameworks_path, xcframeworks_path, template_info_plist,
320320
...
321321
- firebase_auth.xcframework <-- <firebase_auth target>
322322
- Info.plist
323-
- ios-arm64_armv7
323+
- ios-arm64
324324
- firebase_auth.framework
325325
- firebase_auth
326326
- ios-arm64_x86_64-simulator
@@ -340,7 +340,7 @@ def build_xcframeworks(frameworks_path, xcframeworks_path, template_info_plist,
340340
platform_variant_architecture_dirs = os.listdir(framework_os_path)
341341
# Extract list of all built platform-architecture combinations into a map.
342342
# Map looks like this,
343-
# {'device': ['arm64', 'armv7'], 'simulator': ['x86_64']}
343+
# {'device': ['arm64'], 'simulator': ['x86_64']}
344344
platform_variant_arch_map = defaultdict(list)
345345
for variant_architecture in platform_variant_architecture_dirs:
346346
# Skip directories not of the format platform-arch (eg: universal)
@@ -385,7 +385,7 @@ def build_xcframeworks(frameworks_path, xcframeworks_path, template_info_plist,
385385
# device is treated as default platform variant and we do not add any
386386
# suffix at the end. For all other variants, add them as suffix.
387387
xcframework_key_parts.append(platform_variant)
388-
# Eg: ios-arm64_armv7, tvos-x86_64-simulator
388+
# Eg: ios-arm64, tvos-x86_64-simulator
389389
xcframework_key = '-'.join(xcframework_key_parts)
390390

391391
# <build_dir>/xcframeworks/<target>.xcframework/<os>-<list_of_archs>/
@@ -584,7 +584,7 @@ def parse_cmdline_args():
584584
default=('device', 'simulator'),
585585
help='List of platforms to build for.')
586586
parser.add_argument('-a', '--architecture', nargs='+',
587-
default=('arm64', 'armv7', 'x86_64'),
587+
default=('arm64', 'x86_64'),
588588
help='List of architectures to build for.')
589589
parser.add_argument('-t', '--target', nargs='+',
590590
default=( 'firebase_analytics', 'firebase_app_check',

0 commit comments

Comments
 (0)