Migrate Adapty iOS SDK to v3.4
Cài đặt công cụ agent
Thực hiện toàn bộ quá trình tích hợp Adapty SDK từ công cụ lập trình AI của bạn. Tìm hiểu thêm
claude plugin marketplace add adaptyteam/adapty-sdk-integration-skill
claude plugin install adapty-sdk-integration@adapty
gh skill install adaptyteam/adapty-sdk-integration-skill
gemini skills install https://github.com/adaptyteam/adapty-sdk-integration-skill
git clone https://github.com/adaptyteam/adapty-sdk-integration-skill.git
cp -r adapty-sdk-integration-skill/skills/adapty-sdk-integration ~/.agents/skills/
Cài đặt vào bất kỳ agent nào hỗ trợ skill. Để cập nhật, chạy npx skills update.
npx skills add adaptyteam/adapty-sdk-integration-skill
Sau khi cài đặt, chạy skill trong dự án của bạn:
/adapty-sdk-integration
Adapty SDK 3.4.0 là một bản phát hành lớn, giới thiệu các cải tiến yêu cầu bạn thực hiện các bước migration.
Cập nhật khởi tạo Adapty SDK
// In your AppDelegate class:
let configurationBuilder =
AdaptyConfiguration
.builder(withAPIKey: "PUBLIC_SDK_KEY")
- Adapty.activate(with: configurationBuilder) { error in
+ Adapty.activate(with: configurationBuilder.build()) { error in
// handle the error
}Cập nhật file paywall dự phòng
Cập nhật các file paywall dự phòng để đảm bảo tương thích với phiên bản SDK mới:
- Tải xuống các file paywall dự phòng đã được cập nhật từ Adapty Dashboard.
- Thay thế các paywall dự phòng hiện có trong ứng dụng mobile của bạn bằng các file mới.
@main
struct SampleApp: App {
init() {
let configurationBuilder =
AdaptyConfiguration
.builder(withAPIKey: "PUBLIC_SDK_KEY")
Task {
- try await Adapty.activate(with: configurationBuilder)
+ try await Adapty.activate(with: configurationBuilder.build())
}
}
var body: some Scene {
WindowGroup {
ContentView()
}
}
}Cập nhật file paywall dự phòng
Cập nhật các file paywall dự phòng để đảm bảo tương thích với phiên bản SDK mới:
- Tải xuống các file paywall dự phòng đã được cập nhật từ Adapty Dashboard.
- Thay thế các paywall dự phòng hiện có trong ứng dụng mobile của bạn bằng các file mới.