diff --git a/Config/BuM-BWI-MDM/AppIdentifiers-bum-bwi-mdm.xcconfig b/Config/BuM-BWI-MDM/AppIdentifiers-bum-bwi-mdm.xcconfig new file mode 100644 index 000000000..48e59813f --- /dev/null +++ b/Config/BuM-BWI-MDM/AppIdentifiers-bum-bwi-mdm.xcconfig @@ -0,0 +1,39 @@ +// +// Copyright 2021 Vector Creations Ltd +// +// 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. +// + + +// App identity +BUNDLE_DISPLAY_NAME = BuM-BWI-MDM +BASE_BUNDLE_IDENTIFIER = de.bwi.bwmessenger.mdm +APPLICATION_GROUP_IDENTIFIER = group.de.bwmessenger.mdm +APPLICATION_SCHEME = element + +// Team +DEVELOPMENT_TEAM = Q111Q11QQ1 + + +// Provisioning profiles +RIOT_PROVISIONING_PROFILE_SPECIFIER = Vector App Store +RIOT_PROVISIONING_PROFILE = 7579fa6f-9887-415e-90fc-2c7acd8812e6 + +NSE_PROVISIONING_PROFILE_SPECIFIER = "Vector NSE: App Store" +NSE_PROVISIONING_PROFILE = e73107b2-1bfe-4615-be3e-39fd4dcb2af0 + +SHARE_EXTENSION_PROVISIONING_PROFILE_SPECIFIER = "Vector Share Extension: App Store" +SHARE_EXTENSION_PROVISIONING_PROFILE = 8c797ca0-0440-49bd-be8d-11d761152995 + +SIRI_INTENTS_PROVISIONING_PROFILE_SPECIFIER = "Vector Siri Intents: App Store" +SIRI_INTENTS_PROVISIONING_PROFILE = 1690e81a-5ad3-4d99-b578-02693579be71 diff --git a/Config/BuM-BWI-MDM/BWIBuildSettings+BuM-BWI-MDM.swift b/Config/BuM-BWI-MDM/BWIBuildSettings+BuM-BWI-MDM.swift new file mode 100644 index 000000000..5683c8dd0 --- /dev/null +++ b/Config/BuM-BWI-MDM/BWIBuildSettings+BuM-BWI-MDM.swift @@ -0,0 +1,35 @@ +// +/* + * Copyright (c) 2022 BWI GmbH + * + * 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. + */ + +import Foundation + +extension BWIBuildSettings { + + func overrideTargetSpecificSettings() { + secondaryAppName = "BuM-BWI-MDM" + locationSharingEnabled = true + bwiLocationShareButtonVisible = false + bwiLoginFlowLayout = false + authScreenShowTestServerOptions = false + bwiNotificationTimes = true + enableNewSessionManagerByDefault = true + bwiUseWellKnownPrivacyPolicyLink = true + itunesAppLink = "itms://itunes.apple.com/app/bundesmessenger/id1616866351?mt=8" + avoidServerSelectionOnAppConfig = true + } + +} diff --git a/Config/copyMDMConfig.sh b/Config/copyMDMConfig.sh new file mode 100755 index 000000000..36b3c043f --- /dev/null +++ b/Config/copyMDMConfig.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +# setConfig.sh +# +# Copyright (c) 2023 BWI GmbH +# +# 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. +# + +cp -vf ../Config/BuM-BWI-MDM/AppIdentifiers-bum-bwi-mdm.xcconfig ../Config/AppIdentifiers.xcconfig diff --git a/Podfile b/Podfile index 73a15832f..05efcb192 100644 --- a/Podfile +++ b/Podfile @@ -175,6 +175,26 @@ abstract_target 'RiotPods' do pod 'FLEX', '~> 4.5.0', :configurations => ['Debug'] end + + target "BuM-BWI-MDM" do + import_MatrixSDK + import_MatrixKit_pods + + import_SwiftUI_pods + + pod 'UICollectionViewLeftAlignedLayout', '~> 1.0.2' + pod 'UICollectionViewRightAlignedLayout', '~> 0.0.3' + pod 'KTCenterFlowLayout', '~> 1.3.1' + pod 'FlowCommoniOS', '~> 1.12.0' + pod 'DTTJailbreakDetection', '~> 0.4.0' + pod 'ReadMoreTextView', '~> 3.0.1' + pod 'SwiftBase32', '~> 0.9.0' + pod 'SwiftJWT', '~> 3.6.200' + pod 'SideMenu', '~> 6.5' + pod 'DSWaveformImage', '~> 6.1.1' + + pod 'FLEX', '~> 4.5.0', :configurations => ['Debug'] + end target "RiotSwiftUI" do import_SwiftUI_pods diff --git a/Riot/target-bum-beta.yml b/Riot/target-bum-beta.yml index 5b81b5d6b..14f8f536c 100644 --- a/Riot/target-bum-beta.yml +++ b/Riot/target-bum-beta.yml @@ -82,6 +82,7 @@ targets: - "AppIdentifiers.xcconfig" - "BuM" - "BuM-Open" + - "BuM-BWI-MDM" - "*.sh" - path: . excludes: diff --git a/Riot/target-bum-open.yml b/Riot/target-bum-open.yml index 25f58e963..e171c1556 100644 --- a/Riot/target-bum-open.yml +++ b/Riot/target-bum-open.yml @@ -67,6 +67,7 @@ targets: excludes: - "BuM-Beta" - "BuM" + - "BuM-BWI-MDM" - "AppIdentifiers.xcconfig" - "*.sh" - path: . diff --git a/Riot/target-bwi-mdm.yml b/Riot/target-bwi-mdm.yml new file mode 100644 index 000000000..dcaf4517e --- /dev/null +++ b/Riot/target-bwi-mdm.yml @@ -0,0 +1,94 @@ +name: BuM-BWI-MDM + +schemes: + BuM-BWI-MDM: + analyze: + config: Debug + archive: + config: Release + build: + targets: + BuM-BWI-MDM: + - running + - profiling + - analyzing + - archiving + profile: + config: Release + run: + config: Debug + disableMainThreadChecker: true + +targets: + BuM-BWI-MDM: + type: application + platform: iOS + + dependencies: + - target: RiotNSE + - target: DesignKit + - target: CommonKit + - package: AnalyticsEvents + - package: Mapbox + - package: OrderedCollections + - package: SwiftOGG + - package: Lottie + - package: WysiwygComposer + - package: DeviceKit + - package: DTCoreText + + configFiles: + Debug: Debug.xcconfig + Release: Release.xcconfig + + preBuildScripts: + - name: ⚠️ SwiftLint + runOnlyWhenInstalling: false + shell: /bin/sh + script: "${PODS_ROOT}/SwiftLint/swiftlint\n" + - name: 🛠 SwiftGen + runOnlyWhenInstalling: false + shell: /bin/sh + script: "${PODS_ROOT}/SwiftGen/bin/swiftgen config run --config Tools/SwiftGen/swiftgen-config.yml\n" + + sources: + - path: ../RiotSwiftUI/Modules + # Riot will provide it's own LocaleProviderType so exclude. + # Riot will provide it's own LocaleProviderType so exclude. + excludes: + - "Common/Locale/LocaleProvider.swift" + - "**/Test/**" + - path: ../Tools + excludes: + - "Logs" + - "Release" + - "Templates/*.sh" + - path: ../Config + excludes: + - "BuM" + - "BuM-Beta" + - "BuM-Open" + - "AppIdentifiers.xcconfig" + - path: . + excludes: + - "Modules/Room/EmojiPicker/Data/EmojiMart/EmojiJSONStore.swift" + - "Modules/Analytics/Test/Unit/BWIAnalyticsTests.swift" + - "**/*.strings" # Exclude all strings files + - path: ../bwi + excludes: + - "Tests" + - "ServerURLs/serverurls.json" + - path: ../RiotShareExtension/Shared + - path: Modules/MatrixKit + excludes: + - "**/*.md" # excludes all files with the .md extension + # Add separately localizable files + # Once a language has enough translations (>80%), it must be declared here + - path: Assets/en.lproj/InfoPlist.strings + - path: Assets/en.lproj/Localizable.strings + - path: Assets/en.lproj/Vector.strings + - path: Assets/en.lproj/Bwi.strings + - path: Assets/de.lproj/InfoPlist.strings + - path: Assets/de.lproj/Localizable.strings + - path: Assets/de.lproj/Vector.strings + - path: Assets/de.lproj/Bwi.strings diff --git a/Riot/target-messenger.yml b/Riot/target-messenger.yml index 723620028..51069a29d 100644 --- a/Riot/target-messenger.yml +++ b/Riot/target-messenger.yml @@ -67,6 +67,7 @@ targets: excludes: - "BuM-Beta" - "BuM-Open" + - "BuM-BWI-MDM" - "*.sh" - path: . excludes: diff --git a/Riot/target.yml b/Riot/target.yml index eaaef3240..57e3811a0 100644 --- a/Riot/target.yml +++ b/Riot/target.yml @@ -80,6 +80,7 @@ targets: - "bwi" - "BuM-Beta" - "BuM-Open" + - "BuM-BWI-MDM" - "*.sh" - path: . excludes: diff --git a/project.yml b/project.yml index 05309f4e2..189ee8640 100644 --- a/project.yml +++ b/project.yml @@ -31,6 +31,7 @@ include: - path: Riot/target-messenger.yml - path: Riot/target-bum-beta.yml - path: Riot/target-bum-open.yml + - path: Riot/target-bwi-mdm.yml - path: RiotTests/target.yml - path: RiotNSE/target.yml - path: BroadcastUploadExtension/target.yml