--------------------
When it comes to developing swift apps, getting started with the right technical requirements and installation is crucial for success. In this article, we'll walk you through the necessary steps to get your project up and running.
Xcode Requirements for iOS/iPadOS Development
To develop a swift app for iOS or iPadOS using Xcode, you'll need version 14 or later. Supported iOS versions include 15 and later. To ensure seamless video conferencing when your app goes into the background, enable the appropriate Background Modes in your app settings. Make sure to add the following keys to your info.plist file:
`xml
`
Additionally, you'll need to add the following lines for camera and microphone usage:
`xml
`
Swift App Development with TrueConfSDK.xcframework
To use the TrueConf Mobile SDK, simply add the TrueConfSDK.xcframework file to your project. Ensure that the framework is registered in your IDE at the following path:
Targets > Project-Name > General > Frameworks, Libraries and Embedded Content
Swift App Development Best Practices
When connecting the SDK to classes in an Objective-C project, include the following lines:
`swift
#import "TrueConfSDK/TrueConfSDK.h"
`
For Swift projects, simply add the line:
`swift
import TrueConfSDK
`
The framework supports arm64 architecture for iOS devices as well as x86_64 and arm64 for simulators.
--------------------
Android Studio Setup
Developing a swift app for Android requires using Android Studio. The supported Android version is API 24 (Android 7.0) or higher, with targetSdk and compileSdk set to API 34 (Android 14.0). The libraries are compiled using Java 17.
To integrate the SDK, modify several files in your project:
- In the .gradle settings file, add the Maven repository:
`groovy
maven {
credentials {
username 'username'
password 'password'
}
url 'https://sdk.trueconf.com/maven/repository/maven-public/'
}
`
- Add the SDK libraries of the required version:
`groovy
api 'com.trueconf:trueconfsdk:3.0.0.47@aar'
api 'com.trueconf:media:3.0.0.47@aar'
api 'com.trueconf:jnicore:3.0.0.47@aar'
`
- Specify the following dependencies in your .gradle file:
`groovy
implementation 'androidx.work:work-runtime:2.9.0'
implementation 'androidx.concurrent:concurrent-futures:1.1.0'
implementation 'androidx.core:core:1.12.0'
implementation 'androidx.appcompat:appcompat:1.6.1'
`
And so on.
.NET Setup
For the TrueConf Mobile SDK framework, the NuGet package is packaged in a NuGet package that can be integrated using the package manager in Visual Studio. The package includes implementations for both Android and iOS platforms as well as a common interface for cross-platform development. The libraries are built on .NET 8 (net8.0-android and net8.0-ios). Cross-platform MAUI applications are used as examples.
The minimum supported version is Android 7.0 (API 24) and iOS 15.0. To get started with TrueConf Mobile SDK, install the SDK NuGet package:
- Right-click on the project name.
- Select Add > NuGet packages.
- In the window that appears, search for "TrueConf Mobile SDK" and select the package.
By following these steps, you'll be well on your way to streamlining your swift app development process with the TrueConf Mobile SDK.