🚀Let's Start
Installing the package
The best way to interact with our API is to use one of our official libraries:
Swift Package Manager (requires Xcode 12+)
In Xcode, select File > Swift Packages > Add Package Dependency.
Step 1. Add the JitPack repository to your build file
Add it in your settings.gradle at the end of repositories:
// For settings.gradle.kts
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url = uri("https://www.jitpack.io" ) }
}
}
// For settings.gradle
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}Step 2. Add the dependency
dependencies {
implementation 'com.github.SadO-On:Android-Tab-demo:1.1.0'
}The demo is coming soon, but we provide the service in Flutter.Using our package in your app
After successfully adding the package to your project, you can present the game screen within your app. Make sure to import the package module at the top level in your file where you intend to present the game.
Import the package
import Tab-demo-packagePresent it in your SwiftUI view. The entry point is GameStartView
import SwiftUI
import Tab-demo-package
struct ContentView: View {
@State private var isPresenting = false
var body: some View {
Button("Play Game") {
isPresenting.toggle()
}
.fullScreenCover(isPresented: $isPresenting, content: {
GameStartView(isPresenting: $isPresenting)
})
}
}
Launch our GameActivity.kt from any UI in your code
startActivity(Intent(this, GameActivity::class.java))The demo is coming soon, but we provide the service in Flutter.ℹ️ Notes:
In this section, we'll walk you through the steps to guarantee a seamless integration and address any potential version conflicts.
Compatibility:
Tab-demo-package is compatible with
The package is compatible with iOS 14 and above
The minimum SDK required is 24
The demo is coming soon, but we provide the service in Flutter.Dependency Resolution:
1. Versioning:
Our package relies on specific dependencies. if your using any of them in your project. Ensure that you are using the recommended versions mentioned in the table.
4.4.1
2.0.2
androidx.media3:media3-exoplayer1.2.0androidx.media3:media3-ui1.3.1androidx.compose:compose-bom2024.04.01com.airbnb.android:lottie-compose6.4.02. Conflict Resolution:
In case of version conflicts with existing dependencies in your project, follow these steps:
Identify conflicting dependencies .
Check our documentation for recommended versions and update conflicting dependencies accordingly.
If issues persist, reach out to our us for personalized assistance.
Last updated