📖
98's Docs
HomeContact us
  • 🧩98's Tab documentation
  • 🚀Let's Start
Powered by GitBook
On this page
  • Installing the package
  • Using our package in your app
  • Notes:
  • Compatibility:
  • Dependency Resolution:

Let's Start

Previous98's Tab documentation

Last updated 1 year ago

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+)

  1. In Xcode, select File > Swift Packages > Add Package Dependency.

  2. Paste the URL

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-package

Present 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.

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.

Dependency
Version

4.4.1

2.0.2

Dependency
Version

2. 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.

Notes:

If issues persist, for personalized assistance.

🚀
ℹ️
androidx.media3:media3-exoplayer
1.2.0
androidx.media3:media3-ui
1.3.1
androidx.compose:compose-bom
2024.04.01
com.airbnb.android:lottie-compose
6.4.0
https://github.com/SadO-On/98s-Tab-iOS-game-demo/tree/main
reach out to our us
lottie-spm
UIPilot