chore: remove intelligent button from release (#12970)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **New Features**
* The "Intelligents" button is now only shown in debug builds; it will
not appear in production versions.
* **Bug Fixes**
* Removed all references to the "Intelligents" plugin and related UI,
ensuring a cleaner production app experience.
* **Chores**
* Cleaned up project settings and removed redundant or empty
configuration entries.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Lakr
2025-06-30 19:48:58 +09:00
committed by GitHub
parent 03aeb44dc9
commit 9529adf33e
3 changed files with 12 additions and 44 deletions

View File

@@ -63,7 +63,13 @@ class AFFiNEViewController: CAPBridgeViewController {
defer { self.isCheckingIntelligentEligibility = false }
switch result {
case .failure: break
case .success: self.presentIntelligentsButton()
case .success:
#if DEBUG
// only show the button in debug mode before we get done
self.presentIntelligentsButton()
#else
break
#endif
}
}
}

View File

@@ -1,36 +0,0 @@
import Capacitor
import Foundation
// @objc(IntelligentsPlugin)
// public class IntelligentsPlugin: CAPPlugin, CAPBridgedPlugin {
// public let identifier = "IntelligentsPlugin"
// public let jsName = "Intelligents"
// public let pluginMethods: [CAPPluginMethod] = [
// CAPPluginMethod(name: "presentIntelligentsButton", returnType: CAPPluginReturnPromise),
// CAPPluginMethod(name: "dismissIntelligentsButton", returnType: CAPPluginReturnPromise),
// ]
// public private(set) weak var representController: UIViewController?
//
// init(representController: UIViewController) {
// self.representController = representController
// super.init()
// }
//
// deinit {
// representController = nil
// }
//
// @objc public func presentIntelligentsButton(_ call: CAPPluginCall) {
// DispatchQueue.main.async {
// self.representController?.presentIntelligentsButton()
// call.resolve()
// }
// }
//
// @objc public func dismissIntelligentsButton(_ call: CAPPluginCall) {
// DispatchQueue.main.async {
// self.representController?.dismissIntelligentsButton()
// call.resolve()
// }
// }
// }