fix: update production app configuration
This commit is contained in:
+9
-6
@@ -2,9 +2,15 @@
|
||||
|
||||
Flutter client for `觅爻签问`.
|
||||
|
||||
## Debug startup with backend injection
|
||||
## Backend URL
|
||||
|
||||
This app supports injecting backend URL at startup (same pattern as social-app):
|
||||
Default backend URL:
|
||||
|
||||
```text
|
||||
https://api.meeyao.com
|
||||
```
|
||||
|
||||
This app also supports injecting backend URL at startup (same pattern as social-app):
|
||||
|
||||
- Dart read path: `lib/core/config/env.dart`
|
||||
- Injection key: `BACKEND_URL`
|
||||
@@ -21,7 +27,4 @@ flutter run --dart-define=BACKEND_URL=http://192.168.1.100:5775
|
||||
./tool/run-dev.sh --backend-url http://192.168.1.100:5775
|
||||
```
|
||||
|
||||
If `BACKEND_URL` is not provided, fallback is:
|
||||
|
||||
- Android emulator: `http://10.0.2.2:5775`
|
||||
- Others: `http://localhost:5775`
|
||||
If `BACKEND_URL` is not provided, the app uses the production backend URL above.
|
||||
|
||||
@@ -12,7 +12,7 @@ MeeYao Divination is designed based on traditional oriental culture. Our core go
|
||||
|
||||
**Developer:** Ann Lee
|
||||
|
||||
**Contact Email:** ann@xumee.com
|
||||
**Contact Email:** ann@xunmee.com
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -116,7 +116,7 @@ In accordance with CCPA/CPRA and U.S. local privacy laws, you enjoy the followin
|
||||
|
||||
You can submit data requests through the only dedicated contact method:
|
||||
|
||||
- **Contact Email**: ann@xumee.com
|
||||
- **Contact Email**: ann@xunmee.com
|
||||
|
||||
I will respond to your legitimate request within 45 days, and properly verify your identity to ensure data security before processing.
|
||||
|
||||
@@ -152,7 +152,7 @@ This Privacy Policy may be updated irregularly to adapt to platform rules and le
|
||||
|
||||
If you have any questions, suggestions or privacy-related complaints about this Privacy Policy, please contact me:
|
||||
|
||||
**Developer Email**: ann@xumee.com
|
||||
**Developer Email**: ann@xunmee.com
|
||||
|
||||
If you are a California resident and dissatisfied with the processing result, you can consult the local privacy regulatory authority.
|
||||
|
||||
|
||||
@@ -118,4 +118,4 @@ I reserve the right to revise and update these Terms of Service at any time. Mat
|
||||
If you have questions, feedback or legal inquiries about these Terms, please contact:
|
||||
|
||||
- **Developer**: Individual Independent Developer
|
||||
- **Contact Email**: ann@xumee.com
|
||||
- **Contact Email**: ann@xunmee.com
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
**开发者**:Ann Lee
|
||||
|
||||
**联系邮箱**:ann@xumee.com
|
||||
**联系邮箱**:ann@xunmee.com
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -116,7 +116,7 @@
|
||||
|
||||
您可以通过唯一指定联系方式提交数据请求:
|
||||
|
||||
- **联系邮箱**:ann@xumee.com
|
||||
- **联系邮箱**:ann@xunmee.com
|
||||
|
||||
我将在 45 天内回复您的合法请求,并在处理前妥善验证您的身份以确保数据安全。
|
||||
|
||||
@@ -152,7 +152,7 @@
|
||||
|
||||
如果您对本隐私政策有任何疑问、建议或隐私相关投诉,请联系我:
|
||||
|
||||
**开发者邮箱**:ann@xumee.com
|
||||
**开发者邮箱**:ann@xunmee.com
|
||||
|
||||
如果您是加州居民且对处理结果不满意,可咨询当地隐私监管机构。
|
||||
|
||||
|
||||
@@ -118,4 +118,4 @@
|
||||
如果您对本条款有疑问、反馈或法律咨询,请联系:
|
||||
|
||||
- **开发者**:独立个人开发者
|
||||
- **联系邮箱**:ann@xumee.com
|
||||
- **联系邮箱**:ann@xunmee.com
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
**開發者**:Ann Lee
|
||||
|
||||
**聯繫郵箱**:ann@xumee.com
|
||||
**聯繫郵箱**:ann@xunmee.com
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -116,7 +116,7 @@
|
||||
|
||||
您可以通過唯一指定聯繫方式提交數據請求:
|
||||
|
||||
- **聯繫郵箱**:ann@xumee.com
|
||||
- **聯繫郵箱**:ann@xunmee.com
|
||||
|
||||
我將在 45 天內回覆您的合法請求,並在處理前妥善驗證您的身份以確保數據安全。
|
||||
|
||||
@@ -152,7 +152,7 @@
|
||||
|
||||
如果您對本隱私政策有任何疑問、建議或隱私相關投訴,請聯繫我:
|
||||
|
||||
**開發者郵箱**:ann@xumee.com
|
||||
**開發者郵箱**:ann@xunmee.com
|
||||
|
||||
如果您是加州居民且對處理結果不滿意,可諮詢當地隱私監管機構。
|
||||
|
||||
|
||||
@@ -118,4 +118,4 @@
|
||||
如果您對本條款有疑問、反饋或法律諮詢,請聯繫:
|
||||
|
||||
- **開發者**:獨立個人開發者
|
||||
- **聯繫郵箱**:ann@xumee.com
|
||||
- **聯繫郵箱**:ann@xunmee.com
|
||||
|
||||
@@ -1,19 +1,13 @@
|
||||
import 'dart:io';
|
||||
|
||||
class Env {
|
||||
static const _productionBackendUrl = 'https://api.meeyao.com';
|
||||
|
||||
static String get backendUrl {
|
||||
final injected = const String.fromEnvironment('BACKEND_URL');
|
||||
if (injected.isNotEmpty && injected != 'false') {
|
||||
return injected;
|
||||
}
|
||||
|
||||
if (Platform.isAndroid) {
|
||||
return 'http://10.0.2.2:5775';
|
||||
}
|
||||
if (Platform.isIOS) {
|
||||
return 'http://192.168.1.63:5775';
|
||||
}
|
||||
return 'http://localhost:5775';
|
||||
return _productionBackendUrl;
|
||||
}
|
||||
|
||||
static Future<void> init() async {}
|
||||
|
||||
Reference in New Issue
Block a user