40 lines
785 B
Markdown
40 lines
785 B
Markdown
# Ratebubble iOS (v1)
|
||
|
||
Bu klasör, Ratebubble için iOS ana uygulama + Share Extension iskeletini içerir.
|
||
|
||
## Hedef
|
||
- Netflix uygulamasından paylaşılan URL'yi almak
|
||
- Ana app'e handoff etmek
|
||
- Backend `/api/getinfo` endpointine gönderip sonucu göstermek
|
||
|
||
## Gereksinimler
|
||
- Xcode 15+
|
||
- iOS 16+
|
||
- (Opsiyonel) XcodeGen
|
||
|
||
## Proje Oluşturma (XcodeGen)
|
||
|
||
```bash
|
||
cd ios
|
||
xcodegen generate
|
||
open Ratebubble.xcodeproj
|
||
```
|
||
|
||
Eğer `xcodegen` kurulu değilse:
|
||
|
||
```bash
|
||
brew install xcodegen
|
||
```
|
||
|
||
## Yapılandırma
|
||
`Ratebubble/Resources/Config.xcconfig` dosyasında:
|
||
- `API_BASE_URL`
|
||
- `MOBILE_API_KEY`
|
||
- `APP_GROUP_ID`
|
||
- `APP_URL_SCHEME`
|
||
|
||
değerlerini ortamına göre güncelle.
|
||
|
||
## Not
|
||
Share Extension, URL'yi App Group `UserDefaults` içine yazar ve custom URL scheme ile ana app'i açar.
|