Skip to content

Commit f783223

Browse files
committed
fix if your project use getx to translation translate
1 parent 259c0e9 commit f783223

File tree

92 files changed

+2849
-54
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+2849
-54
lines changed

example/ios/Podfile.lock

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -35,40 +35,40 @@ PODS:
3535
- file_picker (0.0.1):
3636
- DKImagePickerController/PhotoGallery
3737
- Flutter
38-
- Firebase/CoreOnly (8.8.0):
39-
- FirebaseCore (= 8.8.0)
40-
- Firebase/Messaging (8.8.0):
38+
- Firebase/CoreOnly (8.9.0):
39+
- FirebaseCore (= 8.9.0)
40+
- Firebase/Messaging (8.9.0):
4141
- Firebase/CoreOnly
42-
- FirebaseMessaging (~> 8.8.0)
43-
- firebase_core (1.8.0):
44-
- Firebase/CoreOnly (= 8.8.0)
42+
- FirebaseMessaging (~> 8.9.0)
43+
- firebase_core (1.10.0):
44+
- Firebase/CoreOnly (= 8.9.0)
4545
- Flutter
46-
- firebase_messaging (10.0.9):
47-
- Firebase/Messaging (= 8.8.0)
46+
- firebase_messaging (11.1.0):
47+
- Firebase/Messaging (= 8.9.0)
4848
- firebase_core
4949
- Flutter
50-
- FirebaseCore (8.8.0):
50+
- FirebaseCore (8.9.0):
5151
- FirebaseCoreDiagnostics (~> 8.0)
52-
- GoogleUtilities/Environment (~> 7.4)
53-
- GoogleUtilities/Logger (~> 7.4)
54-
- FirebaseCoreDiagnostics (8.8.0):
55-
- GoogleDataTransport (~> 9.0)
56-
- GoogleUtilities/Environment (~> 7.4)
57-
- GoogleUtilities/Logger (~> 7.4)
52+
- GoogleUtilities/Environment (~> 7.6)
53+
- GoogleUtilities/Logger (~> 7.6)
54+
- FirebaseCoreDiagnostics (8.9.0):
55+
- GoogleDataTransport (~> 9.1)
56+
- GoogleUtilities/Environment (~> 7.6)
57+
- GoogleUtilities/Logger (~> 7.6)
5858
- nanopb (~> 2.30908.0)
59-
- FirebaseInstallations (8.8.0):
59+
- FirebaseInstallations (8.9.0):
6060
- FirebaseCore (~> 8.0)
61-
- GoogleUtilities/Environment (~> 7.4)
62-
- GoogleUtilities/UserDefaults (~> 7.4)
61+
- GoogleUtilities/Environment (~> 7.6)
62+
- GoogleUtilities/UserDefaults (~> 7.6)
6363
- PromisesObjC (< 3.0, >= 1.2)
64-
- FirebaseMessaging (8.8.0):
64+
- FirebaseMessaging (8.9.0):
6565
- FirebaseCore (~> 8.0)
6666
- FirebaseInstallations (~> 8.0)
67-
- GoogleDataTransport (~> 9.0)
68-
- GoogleUtilities/AppDelegateSwizzler (~> 7.4)
69-
- GoogleUtilities/Environment (~> 7.4)
70-
- GoogleUtilities/Reachability (~> 7.4)
71-
- GoogleUtilities/UserDefaults (~> 7.4)
67+
- GoogleDataTransport (~> 9.1)
68+
- GoogleUtilities/AppDelegateSwizzler (~> 7.6)
69+
- GoogleUtilities/Environment (~> 7.6)
70+
- GoogleUtilities/Reachability (~> 7.6)
71+
- GoogleUtilities/UserDefaults (~> 7.6)
7272
- nanopb (~> 2.30908.0)
7373
- Flutter (1.0.0)
7474
- flutter_local_notifications (0.0.1):
@@ -121,7 +121,7 @@ PODS:
121121
- nanopb/encode (2.30908.0)
122122
- open_file (0.0.1):
123123
- Flutter
124-
- path_provider (0.0.1):
124+
- path_provider_ios (0.0.1):
125125
- Flutter
126126
- "permission_handler (5.1.0+2)":
127127
- Flutter
@@ -155,7 +155,7 @@ DEPENDENCIES:
155155
- flutter_video_info (from `.symlinks/plugins/flutter_video_info/ios`)
156156
- image_picker (from `.symlinks/plugins/image_picker/ios`)
157157
- open_file (from `.symlinks/plugins/open_file/ios`)
158-
- path_provider (from `.symlinks/plugins/path_provider/ios`)
158+
- path_provider_ios (from `.symlinks/plugins/path_provider_ios/ios`)
159159
- permission_handler (from `.symlinks/plugins/permission_handler/ios`)
160160
- record (from `.symlinks/plugins/record/ios`)
161161
- sqflite (from `.symlinks/plugins/sqflite/ios`)
@@ -204,8 +204,8 @@ EXTERNAL SOURCES:
204204
:path: ".symlinks/plugins/image_picker/ios"
205205
open_file:
206206
:path: ".symlinks/plugins/open_file/ios"
207-
path_provider:
208-
:path: ".symlinks/plugins/path_provider/ios"
207+
path_provider_ios:
208+
:path: ".symlinks/plugins/path_provider_ios/ios"
209209
permission_handler:
210210
:path: ".symlinks/plugins/permission_handler/ios"
211211
record:
@@ -224,13 +224,13 @@ SPEC CHECKSUMS:
224224
DKImagePickerController: b5eb7f7a388e4643264105d648d01f727110fc3d
225225
DKPhotoGallery: fdfad5125a9fdda9cc57df834d49df790dbb4179
226226
file_picker: 3e6c3790de664ccf9b882732d9db5eaf6b8d4eb1
227-
Firebase: 629510f1a9ddb235f3a7c5c8ceb23ba887f0f814
228-
firebase_core: 3b4c707f5a8eff38f52fd5580895bcd89357bf42
229-
firebase_messaging: c2570c4b5aeb1b9dc1b40a3b4a246e246cd583a8
230-
FirebaseCore: 98b29e3828f0a53651c363937a7f7d92a19f1ba2
231-
FirebaseCoreDiagnostics: fe77f42da6329d6d83d21fd9d621a6b704413bfc
232-
FirebaseInstallations: 2563cb18a723ef9c6ef18318a49519b75dce613c
233-
FirebaseMessaging: 419b5c9d84f294a753c6501d8cfb9ced1ce37304
227+
Firebase: 13d8d96499e2635428d5bf0ec675df21f95d9a95
228+
firebase_core: f770e033e790657b3505f04be4cb24c482912f11
229+
firebase_messaging: 0c8d1a1732487db7f332fb65232053e93201e2fb
230+
FirebaseCore: 599ee609343eaf4941bd188f85e3aa077ffe325b
231+
FirebaseCoreDiagnostics: 5daa63f1c1409d981a2d5007daa100b36eac6a34
232+
FirebaseInstallations: caa7c8e0d3e2345b8829d2fa9ca1b4dfbf2fcc85
233+
FirebaseMessaging: 82c4a48638f53f7b184f3cc9f6cd2cbe533ab316
234234
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
235235
flutter_local_notifications: 0c0b1ae97e741e1521e4c1629a459d04b9aec743
236236
flutter_native_image: 9c0b7451838484458e5b0fae007b86a4c2d4bdfe
@@ -243,7 +243,7 @@ SPEC CHECKSUMS:
243243
libwebp: 98a37e597e40bfdb4c911fc98f2c53d0b12d05fc
244244
nanopb: a0ba3315591a9ae0a16a309ee504766e90db0c96
245245
open_file: 02eb5cb6b21264bd3a696876f5afbfb7ca4f4b7d
246-
path_provider: d1e9807085df1f9cc9318206cd649dc0b76be3de
246+
path_provider_ios: 7d7ce634493af4477d156294792024ec3485acd5
247247
permission_handler: ccb20a9fad0ee9b1314a52b70b76b473c5f8dab0
248248
PromisesObjC: 68159ce6952d93e17b2dfe273b8c40907db5ba58
249249
record: 7ee2393532f8553bbb09fa19e95478323b7c0a99
@@ -256,4 +256,4 @@ SPEC CHECKSUMS:
256256

257257
PODFILE CHECKSUM: fe0e1ee7f3d1f7d00b11b474b62dd62134535aea
258258

259-
COCOAPODS: 1.10.0
259+
COCOAPODS: 1.11.2

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 50;
6+
objectVersion = 51;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -70,7 +70,6 @@
7070
6A16DDF7EAC8AFAAF2F9B95D /* Pods-Runner.release.xcconfig */,
7171
685609F3C27E76DE4FC629E6 /* Pods-Runner.profile.xcconfig */,
7272
);
73-
name = Pods;
7473
path = Pods;
7574
sourceTree = "<group>";
7675
};
@@ -344,7 +343,7 @@
344343
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
345344
GCC_WARN_UNUSED_FUNCTION = YES;
346345
GCC_WARN_UNUSED_VARIABLE = YES;
347-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
346+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
348347
MTL_ENABLE_DEBUG_INFO = NO;
349348
SDKROOT = iphoneos;
350349
SUPPORTED_PLATFORMS = iphoneos;
@@ -360,6 +359,7 @@
360359
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
361360
CLANG_ENABLE_MODULES = YES;
362361
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
362+
DEVELOPMENT_TEAM = K5UP26B3W8;
363363
ENABLE_BITCODE = NO;
364364
INFOPLIST_FILE = Runner/Info.plist;
365365
LD_RUNPATH_SEARCH_PATHS = (
@@ -421,7 +421,7 @@
421421
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
422422
GCC_WARN_UNUSED_FUNCTION = YES;
423423
GCC_WARN_UNUSED_VARIABLE = YES;
424-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
424+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
425425
MTL_ENABLE_DEBUG_INFO = YES;
426426
ONLY_ACTIVE_ARCH = YES;
427427
SDKROOT = iphoneos;
@@ -470,7 +470,7 @@
470470
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
471471
GCC_WARN_UNUSED_FUNCTION = YES;
472472
GCC_WARN_UNUSED_VARIABLE = YES;
473-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
473+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
474474
MTL_ENABLE_DEBUG_INFO = NO;
475475
SDKROOT = iphoneos;
476476
SUPPORTED_PLATFORMS = iphoneos;
@@ -488,6 +488,7 @@
488488
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
489489
CLANG_ENABLE_MODULES = YES;
490490
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
491+
DEVELOPMENT_TEAM = K5UP26B3W8;
491492
ENABLE_BITCODE = NO;
492493
INFOPLIST_FILE = Runner/Info.plist;
493494
LD_RUNPATH_SEARCH_PATHS = (
@@ -510,6 +511,7 @@
510511
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
511512
CLANG_ENABLE_MODULES = YES;
512513
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
514+
DEVELOPMENT_TEAM = K5UP26B3W8;
513515
ENABLE_BITCODE = NO;
514516
INFOPLIST_FILE = Runner/Info.plist;
515517
LD_RUNPATH_SEARCH_PATHS = (
@@ -550,4 +552,4 @@
550552
/* End XCConfigurationList section */
551553
};
552554
rootObject = 97C146E61CF9000F007C117D /* Project object */;
553-
}
555+
}

example/lib/utils/custom_dio.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class CustomDio {
1313
CustomDio() {
1414
dio = Dio();
1515
dio.options.baseUrl = baseUrl;
16+
dio.options.followRedirects = false;
1617
dio.options.validateStatus = (_) => true;
1718
dio.options.headers = {
1819
'authorization': GetStorage().read("myModel") == null

getx_translate_example/.gitignore

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
12+
# IntelliJ related
13+
*.iml
14+
*.ipr
15+
*.iws
16+
.idea/
17+
18+
# The .vscode folder contains launch configuration and tasks you configure in
19+
# VS Code which you may wish to be included in version control, so this line
20+
# is commented out by default.
21+
#.vscode/
22+
23+
# Flutter/Dart/Pub related
24+
**/doc/api/
25+
**/ios/Flutter/.last_build_id
26+
.dart_tool/
27+
.flutter-plugins
28+
.flutter-plugins-dependencies
29+
.packages
30+
.pub-cache/
31+
.pub/
32+
/build/
33+
34+
# Web related
35+
lib/generated_plugin_registrant.dart
36+
37+
# Symbolication related
38+
app.*.symbols
39+
40+
# Obfuscation related
41+
app.*.map.json
42+
43+
# Android Studio will place build artifacts here
44+
/android/app/debug
45+
/android/app/profile
46+
/android/app/release

getx_translate_example/.metadata

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: 18116933e77adc82f80866c928266a5b4f1ed645
8+
channel: stable
9+
10+
project_type: app

getx_translate_example/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# getx_translate_example
2+
3+
A new Flutter project.
4+
5+
## Getting Started
6+
7+
This project is a starting point for a Flutter application.
8+
9+
A few resources to get you started if this is your first Flutter project:
10+
11+
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
12+
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
13+
14+
For help getting started with Flutter, view our
15+
[online documentation](https://flutter.dev/docs), which offers tutorials,
16+
samples, guidance on mobile development, and a full API reference.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include: package:lints/recommended.yaml
2+
linter:
3+
rules:
4+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
gradle-wrapper.jar
2+
/.gradle
3+
/captures/
4+
/gradlew
5+
/gradlew.bat
6+
/local.properties
7+
GeneratedPluginRegistrant.java
8+
9+
# Remember to never publicly share your keystore.
10+
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11+
key.properties
12+
**/*.keystore
13+
**/*.jks
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
def localProperties = new Properties()
2+
def localPropertiesFile = rootProject.file('local.properties')
3+
if (localPropertiesFile.exists()) {
4+
localPropertiesFile.withReader('UTF-8') { reader ->
5+
localProperties.load(reader)
6+
}
7+
}
8+
9+
def flutterRoot = localProperties.getProperty('flutter.sdk')
10+
if (flutterRoot == null) {
11+
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12+
}
13+
14+
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15+
if (flutterVersionCode == null) {
16+
flutterVersionCode = '1'
17+
}
18+
19+
def flutterVersionName = localProperties.getProperty('flutter.versionName')
20+
if (flutterVersionName == null) {
21+
flutterVersionName = '1.0'
22+
}
23+
24+
apply plugin: 'com.android.application'
25+
apply plugin: 'kotlin-android'
26+
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27+
28+
android {
29+
compileSdkVersion 30
30+
31+
compileOptions {
32+
sourceCompatibility JavaVersion.VERSION_1_8
33+
targetCompatibility JavaVersion.VERSION_1_8
34+
}
35+
36+
kotlinOptions {
37+
jvmTarget = '1.8'
38+
}
39+
40+
sourceSets {
41+
main.java.srcDirs += 'src/main/kotlin'
42+
}
43+
44+
defaultConfig {
45+
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
46+
applicationId "example.getx_translate_example"
47+
minSdkVersion 16
48+
targetSdkVersion 30
49+
versionCode flutterVersionCode.toInteger()
50+
versionName flutterVersionName
51+
}
52+
53+
buildTypes {
54+
release {
55+
// TODO: Add your own signing config for the release build.
56+
// Signing with the debug keys for now, so `flutter run --release` works.
57+
signingConfig signingConfigs.debug
58+
}
59+
}
60+
}
61+
62+
flutter {
63+
source '../..'
64+
}
65+
66+
dependencies {
67+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
68+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="example.getx_translate_example">
3+
<!-- Flutter needs it to communicate with the running application
4+
to allow setting breakpoints, to provide hot reload, etc.
5+
-->
6+
<uses-permission android:name="android.permission.INTERNET"/>
7+
</manifest>

0 commit comments

Comments
 (0)