Files
bookibra/ios/README.md

24 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Bookibra iOS (SwiftUI)
## API Base URL ayarı
1. `ios/Bookibra/Resources/Info.plist` içindeki `API_BASE_URL` anahtarını güncelle.
2. İstersen `ios/Bookibra/Resources/Debug.xcconfig` ve `ios/Bookibra/Resources/Release.xcconfig` içinde de aynı değeri tut.
3. Lokal backend için varsayılan: `http://localhost:8080`
Not: iOS Simulator'dan host makinedeki backend'e erişimde genelde `http://127.0.0.1:8080` çalışır. Gerekirse bunu kullan.
## Çalıştırma
1. Xcode ile `ios/Bookibra.xcodeproj` aç.
2. Scheme: `Bookibra` seç.
3. iOS 17+ simulator/device seçip Run (`Cmd+R`) yap.
## Barkod test etme
- Gerçek kamera gerektiği için en stabil test fiziksel cihazdadır.
- Simulator'da kamera akışı sınırlı olabilir.
- Add Books > Barkod Tara ekranında ISBN-10 / ISBN-13 okutulduğunda otomatik `/api/books/isbn/:isbn` çağrılır.
## Notlar
- JWT token Keychain'de tutulur.
- Kitaplık (`My Books`) SwiftData ile lokalde saklanır.
- Backend'de kitaplık CRUD olmasa da uygulama lokalde çalışır.