-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #301 from twenty-three-23/deploy/TT-511-delpoyVers…
…ion21 TT-511 버전 21 배포
- Loading branch information
Showing
34 changed files
with
605 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
lib/features/common/data_source/local/local_device_uuid_storage.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import 'package:shared_preferences/shared_preferences.dart'; | ||
|
||
class LocalDeviceUuidStorage { | ||
static final LocalDeviceUuidStorage _instance = LocalDeviceUuidStorage._internal(); | ||
late SharedPreferences _prefs; | ||
|
||
static const DEVICE_UUID_KEY = "deviceUuid"; | ||
|
||
factory LocalDeviceUuidStorage() { | ||
return _instance; | ||
} | ||
|
||
LocalDeviceUuidStorage._internal(); | ||
|
||
Future<void> init() async { | ||
_prefs = await SharedPreferences.getInstance(); | ||
} | ||
|
||
Future<void> setDeviceUuid(String uuid) async { | ||
await _prefs.setString(DEVICE_UUID_KEY, uuid); | ||
} | ||
|
||
Future<String?> getDeviceUuid() async { | ||
return await _prefs.getString(DEVICE_UUID_KEY); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
lib/features/practice_history/data_source/remote/remote_ai_analysis_result_data_source.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import 'package:retrofit/retrofit.dart' as retrofit; | ||
import 'package:dio/dio.dart'; | ||
import 'package:swm_peech_flutter/features/common/constant/constants.dart'; | ||
|
||
part 'remote_ai_analysis_result_data_source.g.dart'; | ||
|
||
@retrofit.RestApi(baseUrl: Constants.baseUrl) | ||
abstract class RemoteAiAnalysisResultDataSource { | ||
factory RemoteAiAnalysisResultDataSource(Dio dio, {String baseUrl}) = _RemoteAiAnalysisResultDataSource; | ||
|
||
@retrofit.GET('/api/v2/script/{scriptId}/analyze-result') | ||
@retrofit.Headers({'accessToken': 'true'}) | ||
Future<String?> getAnalysisResult(@retrofit.Path() int scriptId); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.