get_it.config.dart 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. // dart format width=80
  2. // GENERATED CODE - DO NOT MODIFY BY HAND
  3. // **************************************************************************
  4. // InjectableConfigGenerator
  5. // **************************************************************************
  6. // ignore_for_file: type=lint
  7. // coverage:ignore-file
  8. // ignore_for_file: no_leading_underscores_for_library_prefixes
  9. import 'package:dio/dio.dart' as _i361;
  10. import 'package:get_it/get_it.dart' as _i174;
  11. import 'package:injectable/injectable.dart' as _i526;
  12. import '../data/api/atmob_api.dart' as _i243;
  13. import '../data/api/atmob_stream_api.dart' as _i329;
  14. import '../data/bean/character_group_info.dart' as _i96;
  15. import '../data/bean/keyboard_info.dart' as _i497;
  16. import '../data/repository/account_repository.dart' as _i83;
  17. import '../data/repository/characters_repository.dart' as _i421;
  18. import '../data/repository/chat_repository.dart' as _i425;
  19. import '../data/repository/config_repository.dart' as _i50;
  20. import '../data/repository/keyboard_repository.dart' as _i274;
  21. import '../data/repository/store_repository.dart' as _i987;
  22. import '../dialog/content/character_add_tab_controller.dart' as _i991;
  23. import '../dialog/content/character_tab_group_content_controller.dart' as _i293;
  24. import '../dialog/custom_character/custom_character_add_controller.dart'
  25. as _i122;
  26. import '../module/about/about_controller.dart' as _i256;
  27. import '../module/browser/browser_controller.dart' as _i923;
  28. import '../module/change/birthday/change_birthday_controller.dart' as _i1057;
  29. import '../module/change/character/change_character_controller.dart' as _i84;
  30. import '../module/change/gender/change_gender_controller.dart' as _i315;
  31. import '../module/change/hobbies/change_hobbies_controller.dart' as _i765;
  32. import '../module/change/nickname/change_nickname_controller.dart' as _i859;
  33. import '../module/character/character_controller.dart' as _i888;
  34. import '../module/character/content/character_group_content_controller.dart'
  35. as _i970;
  36. import '../module/character_custom/character_custom_controller.dart' as _i15;
  37. import '../module/character_custom/detail/character_custom_detail_controller.dart'
  38. as _i79;
  39. import '../module/character_custom/list/character_custom_list_controller.dart'
  40. as _i1059;
  41. import '../module/feedback/feedback_controller.dart' as _i876;
  42. import '../module/intimacy_analyse/analyse_report/intimacy_analyse_report_view_controller.dart'
  43. as _i987;
  44. import '../module/intimacy_analyse/image_viewer/image_viewer_controller.dart'
  45. as _i1071;
  46. import '../module/intimacy_analyse/intimacy_analyse_controller.dart' as _i977;
  47. import '../module/intimacy_analyse/intimacy_analyse_upload/intimacy_analyse_upload_controller.dart'
  48. as _i666;
  49. import '../module/intimacy_analyse/screenshot_reply/conversation_analysis/conversation_analysis_controller.dart'
  50. as _i510;
  51. import '../module/intimacy_analyse/screenshot_reply/intimacy_analyse_screenshot_reply_controller.dart'
  52. as _i279;
  53. import '../module/intimacy_analyse/screenshot_reply/scan_image_reply/scan_image_reply_controller.dart'
  54. as _i464;
  55. import '../module/keyboard/keyboard_controller.dart' as _i161;
  56. import '../module/keyboard_guide/keyboard_guide_controller.dart' as _i248;
  57. import '../module/keyboard_manage/keyboard_manage_controller.dart' as _i922;
  58. import '../module/login/login_controller.dart' as _i1008;
  59. import '../module/main/main_controller.dart' as _i731;
  60. import '../module/mine/mine_controller.dart' as _i732;
  61. import '../module/profile/edit/profile_edit_controller.dart' as _i344;
  62. import '../module/profile/profile_controller.dart' as _i244;
  63. import '../module/store/discount/discount_controller.dart' as _i333;
  64. import '../module/store/store_controller.dart' as _i344;
  65. import '../module/store/suprise/goods_surprise_controller.dart' as _i935;
  66. import '../plugins/keyboard_method_handler.dart' as _i415;
  67. import '../utils/payment_status_manager.dart' as _i779;
  68. import 'network_module.dart' as _i567;
  69. extension GetItInjectableX on _i174.GetIt {
  70. // initializes the registration of main-scope dependencies inside of GetIt
  71. _i174.GetIt init({
  72. String? environment,
  73. _i526.EnvironmentFilter? environmentFilter,
  74. }) {
  75. final gh = _i526.GetItHelper(this, environment, environmentFilter);
  76. final networkModule = _$NetworkModule();
  77. gh.factory<_i256.AboutController>(() => _i256.AboutController());
  78. gh.factory<_i923.BrowserController>(() => _i923.BrowserController());
  79. gh.factory<_i1057.ChangeBirthdayController>(
  80. () => _i1057.ChangeBirthdayController(),
  81. );
  82. gh.factory<_i315.ChangeGenderController>(
  83. () => _i315.ChangeGenderController(),
  84. );
  85. gh.factory<_i859.ChangeNicknameController>(
  86. () => _i859.ChangeNicknameController(),
  87. );
  88. gh.factory<_i987.IntimacyAnalyseReportController>(
  89. () => _i987.IntimacyAnalyseReportController(),
  90. );
  91. gh.factory<_i1071.ImageViewerController>(
  92. () => _i1071.ImageViewerController(),
  93. );
  94. gh.factory<_i977.IntimacyAnalyseController>(
  95. () => _i977.IntimacyAnalyseController(),
  96. );
  97. gh.factory<_i666.IntimacyAnalyseUploadController>(
  98. () => _i666.IntimacyAnalyseUploadController(),
  99. );
  100. gh.factory<_i510.ConversationAnalysisController>(
  101. () => _i510.ConversationAnalysisController(),
  102. );
  103. gh.factory<_i279.IntimacyAnalyseScreenshotReplyController>(
  104. () => _i279.IntimacyAnalyseScreenshotReplyController(),
  105. );
  106. gh.factory<_i464.ScanImageReplyController>(
  107. () => _i464.ScanImageReplyController(),
  108. );
  109. gh.factory<_i248.KeyboardGuidePageController>(
  110. () => _i248.KeyboardGuidePageController(),
  111. );
  112. gh.factory<_i1008.LoginController>(() => _i1008.LoginController());
  113. gh.factory<_i731.MainController>(() => _i731.MainController());
  114. gh.factory<_i333.DiscountController>(() => _i333.DiscountController());
  115. gh.factory<_i415.KeyboardMethodHandler>(
  116. () => _i415.KeyboardMethodHandler(),
  117. );
  118. gh.singleton<_i361.Dio>(
  119. () => networkModule.createStreamDio(),
  120. instanceName: 'streamDio',
  121. );
  122. gh.singleton<_i361.Dio>(
  123. () => networkModule.createDefaultDio(),
  124. instanceName: 'defaultDio',
  125. );
  126. gh.singleton<_i329.AtmobStreamApi>(
  127. () => networkModule.provideAtmobStreamApi(
  128. gh<_i361.Dio>(instanceName: 'streamDio'),
  129. ),
  130. );
  131. gh.singleton<_i243.AtmobApi>(
  132. () => networkModule.provideAtmobApi(
  133. gh<_i361.Dio>(instanceName: 'defaultDio'),
  134. ),
  135. );
  136. gh.lazySingleton<_i83.AccountRepository>(
  137. () => _i83.AccountRepository(gh<_i243.AtmobApi>()),
  138. );
  139. gh.lazySingleton<_i421.CharactersRepository>(
  140. () => _i421.CharactersRepository(gh<_i243.AtmobApi>()),
  141. );
  142. gh.lazySingleton<_i50.ConfigRepository>(
  143. () => _i50.ConfigRepository(gh<_i243.AtmobApi>()),
  144. );
  145. gh.lazySingleton<_i274.KeyboardRepository>(
  146. () => _i274.KeyboardRepository(gh<_i243.AtmobApi>()),
  147. );
  148. gh.factoryParam<
  149. _i293.CharacterTabGroupContentController,
  150. _i96.CharacterGroupInfo,
  151. _i497.KeyboardInfo
  152. >(
  153. (currentCharacterGroupInfo, currentKeyboardInfo) =>
  154. _i293.CharacterTabGroupContentController(
  155. gh<_i421.CharactersRepository>(),
  156. currentCharacterGroupInfo: currentCharacterGroupInfo,
  157. currentKeyboardInfo: currentKeyboardInfo,
  158. ),
  159. );
  160. gh.lazySingleton<_i425.ChatRepository>(
  161. () => _i425.ChatRepository(
  162. gh<_i329.AtmobStreamApi>(),
  163. gh<_i243.AtmobApi>(),
  164. ),
  165. );
  166. gh.factory<_i922.KeyboardManageController>(
  167. () => _i922.KeyboardManageController(
  168. gh<_i274.KeyboardRepository>(),
  169. gh<_i83.AccountRepository>(),
  170. ),
  171. );
  172. gh.factory<_i244.ProfileController>(
  173. () => _i244.ProfileController(
  174. gh<_i274.KeyboardRepository>(),
  175. gh<_i83.AccountRepository>(),
  176. ),
  177. );
  178. gh.lazySingleton<_i987.StoreRepository>(
  179. () => _i987.StoreRepository(
  180. gh<_i243.AtmobApi>(),
  181. gh<_i83.AccountRepository>(),
  182. ),
  183. );
  184. gh.factory<_i935.GoodsSurpriseController>(
  185. () => _i935.GoodsSurpriseController(gh<_i987.StoreRepository>()),
  186. );
  187. gh.lazySingleton<_i779.PaymentStatusManager>(
  188. () => _i779.PaymentStatusManager(gh<_i987.StoreRepository>()),
  189. );
  190. gh.factory<_i344.ProfileEditController>(
  191. () => _i344.ProfileEditController(
  192. gh<_i50.ConfigRepository>(),
  193. gh<_i274.KeyboardRepository>(),
  194. ),
  195. );
  196. gh.factory<_i161.KeyBoardController>(
  197. () => _i161.KeyBoardController(gh<_i274.KeyboardRepository>()),
  198. );
  199. gh.factory<_i970.CharacterGroupContentController>(
  200. () => _i970.CharacterGroupContentController(
  201. gh<_i421.CharactersRepository>(),
  202. gh<_i83.AccountRepository>(),
  203. ),
  204. );
  205. gh.factory<_i876.FeedbackController>(
  206. () => _i876.FeedbackController(gh<_i83.AccountRepository>()),
  207. );
  208. gh.factory<_i732.MineController>(
  209. () => _i732.MineController(gh<_i83.AccountRepository>()),
  210. );
  211. gh.factoryParam<
  212. _i991.CharacterAddTabController,
  213. _i497.KeyboardInfo,
  214. dynamic
  215. >(
  216. (currentKeyboardInfo, _) => _i991.CharacterAddTabController(
  217. gh<_i421.CharactersRepository>(),
  218. gh<_i274.KeyboardRepository>(),
  219. currentKeyboardInfo: currentKeyboardInfo,
  220. ),
  221. );
  222. gh.factoryParam<
  223. _i122.CustomCharacterAddController,
  224. _i497.KeyboardInfo,
  225. dynamic
  226. >(
  227. (currentKeyboardInfo, _) => _i122.CustomCharacterAddController(
  228. gh<_i421.CharactersRepository>(),
  229. gh<_i274.KeyboardRepository>(),
  230. currentKeyboardInfo: currentKeyboardInfo,
  231. ),
  232. );
  233. gh.factory<_i84.ChangeCharacterController>(
  234. () => _i84.ChangeCharacterController(gh<_i50.ConfigRepository>()),
  235. );
  236. gh.factory<_i765.ChangeHobbiesController>(
  237. () => _i765.ChangeHobbiesController(gh<_i50.ConfigRepository>()),
  238. );
  239. gh.factory<_i15.CharacterCustomController>(
  240. () => _i15.CharacterCustomController(gh<_i50.ConfigRepository>()),
  241. );
  242. gh.factory<_i888.CharacterController>(
  243. () => _i888.CharacterController(
  244. gh<_i421.CharactersRepository>(),
  245. gh<_i50.ConfigRepository>(),
  246. gh<_i274.KeyboardRepository>(),
  247. ),
  248. );
  249. gh.factory<_i79.CharacterCustomDetailController>(
  250. () => _i79.CharacterCustomDetailController(
  251. gh<_i421.CharactersRepository>(),
  252. gh<_i50.ConfigRepository>(),
  253. ),
  254. );
  255. gh.factory<_i1059.CharacterCustomListController>(
  256. () => _i1059.CharacterCustomListController(
  257. gh<_i421.CharactersRepository>(),
  258. gh<_i274.KeyboardRepository>(),
  259. ),
  260. );
  261. gh.factory<_i344.StoreController>(
  262. () => _i344.StoreController(
  263. gh<_i987.StoreRepository>(),
  264. gh<_i83.AccountRepository>(),
  265. gh<_i779.PaymentStatusManager>(),
  266. ),
  267. );
  268. return this;
  269. }
  270. }
  271. class _$NetworkModule extends _i567.NetworkModule {}