chore: 更新配置和环境变量适配云端 Supabase
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
<uses-permission android:name="android.permission.RECORD_AUDIO" />
|
||||
|
||||
<application
|
||||
android:usesCleartextTraffic="true"
|
||||
android:label="social_app"
|
||||
android:name="${applicationName}"
|
||||
android:icon="@mipmap/ic_launcher">
|
||||
|
||||
@@ -5,7 +5,7 @@ class Env {
|
||||
const url = String.fromEnvironment('API_URL');
|
||||
if (url.isNotEmpty) return url;
|
||||
if (Platform.isAndroid) {
|
||||
return 'http://10.0.2.2:5775';
|
||||
return 'http://192.168.1.25:5775';
|
||||
}
|
||||
return 'http://localhost:5775';
|
||||
}
|
||||
|
||||
@@ -108,6 +108,7 @@ class AppColors {
|
||||
class AppSpacing {
|
||||
AppSpacing._();
|
||||
|
||||
static const double none = 0.0;
|
||||
static const double xs = 4.0;
|
||||
static const double sm = 8.0;
|
||||
static const double md = 12.0;
|
||||
|
||||
@@ -82,6 +82,7 @@ class AgUiService {
|
||||
'audio': await MultipartFile.fromFile(
|
||||
filePath,
|
||||
filename: 'recording.wav',
|
||||
contentType: DioMediaType('audio', 'wav'),
|
||||
),
|
||||
});
|
||||
final response = await _apiClient.post<Map<String, dynamic>>(
|
||||
|
||||
Reference in New Issue
Block a user