| defaultConfig { | defaultConfig { | ||||
| // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). | ||||
| applicationId "vn.azteam.tpfarm" | |||||
| applicationId "vn.azteam.farmdemo" | |||||
| minSdkVersion 21 | minSdkVersion 21 | ||||
| targetSdkVersion 29 | targetSdkVersion 29 | ||||
| versionCode flutterVersionCode.toInteger() | versionCode flutterVersionCode.toInteger() |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | <manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||||
| package="vn.azteam.tpfarm"> | |||||
| package="vn.azteam.farmdemo"> | |||||
| <!-- Flutter needs it to communicate with the running application | <!-- Flutter needs it to communicate with the running application | ||||
| to allow setting breakpoints, to provide hot reload, etc. | to allow setting breakpoints, to provide hot reload, etc. | ||||
| --> | --> |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | <manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||||
| package="vn.azteam.tpfarm"> | |||||
| package="vn.azteam.farmdemo"> | |||||
| <!-- io.flutter.app.FlutterApplication is an android.app.Application that | <!-- io.flutter.app.FlutterApplication is an android.app.Application that | ||||
| calls FlutterMain.startInitialization(this); in its onCreate method. | calls FlutterMain.startInitialization(this); in its onCreate method. | ||||
| In most cases you can leave this as-is, but you if you want to provide | In most cases you can leave this as-is, but you if you want to provide |
| package vn.azteam.tpfarm | |||||
| package vn.azteam.farmdemo | |||||
| import io.flutter.embedding.android.FlutterActivity | import io.flutter.embedding.android.FlutterActivity | ||||
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | <manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||||
| package="vn.azteam.tpfarm"> | |||||
| package="vn.azteam.farmdemo"> | |||||
| <!-- Flutter needs it to communicate with the running application | <!-- Flutter needs it to communicate with the running application | ||||
| to allow setting breakpoints, to provide hot reload, etc. | to allow setting breakpoints, to provide hot reload, etc. | ||||
| --> | --> |
| 256048b5f2de139c42fadf38202f819b | |||||
| a4ee48868fa35a3a4493484923ea48b2 |
| ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | ||||
| CLANG_ENABLE_MODULES = YES; | CLANG_ENABLE_MODULES = YES; | ||||
| CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; | CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; | ||||
| CURRENT_PROJECT_VERSION = 1; | |||||
| CURRENT_PROJECT_VERSION = 2; | |||||
| DEVELOPMENT_TEAM = C3DTD2JH94; | DEVELOPMENT_TEAM = C3DTD2JH94; | ||||
| ENABLE_BITCODE = NO; | ENABLE_BITCODE = NO; | ||||
| FRAMEWORK_SEARCH_PATHS = ( | FRAMEWORK_SEARCH_PATHS = ( | ||||
| "$(PROJECT_DIR)/Flutter", | "$(PROJECT_DIR)/Flutter", | ||||
| ); | ); | ||||
| MARKETING_VERSION = 1.0.0; | MARKETING_VERSION = 1.0.0; | ||||
| PRODUCT_BUNDLE_IDENTIFIER = vn.azteam.tpfarm; | |||||
| PRODUCT_BUNDLE_IDENTIFIER = vn.azteam.farmdemo; | |||||
| PRODUCT_NAME = Runner; | PRODUCT_NAME = Runner; | ||||
| SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; | ||||
| SWIFT_VERSION = 5.0; | SWIFT_VERSION = 5.0; | ||||
| ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | ||||
| CLANG_ENABLE_MODULES = YES; | CLANG_ENABLE_MODULES = YES; | ||||
| CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; | CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; | ||||
| CURRENT_PROJECT_VERSION = 1; | |||||
| CURRENT_PROJECT_VERSION = 2; | |||||
| DEVELOPMENT_TEAM = C3DTD2JH94; | DEVELOPMENT_TEAM = C3DTD2JH94; | ||||
| ENABLE_BITCODE = NO; | ENABLE_BITCODE = NO; | ||||
| FRAMEWORK_SEARCH_PATHS = ( | FRAMEWORK_SEARCH_PATHS = ( | ||||
| "$(PROJECT_DIR)/Flutter", | "$(PROJECT_DIR)/Flutter", | ||||
| ); | ); | ||||
| MARKETING_VERSION = 1.0.0; | MARKETING_VERSION = 1.0.0; | ||||
| PRODUCT_BUNDLE_IDENTIFIER = vn.azteam.tpfarm; | |||||
| PRODUCT_BUNDLE_IDENTIFIER = vn.azteam.farmdemo; | |||||
| PRODUCT_NAME = Runner; | PRODUCT_NAME = Runner; | ||||
| SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; | ||||
| SWIFT_OPTIMIZATION_LEVEL = "-Onone"; | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; | ||||
| ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | ||||
| CLANG_ENABLE_MODULES = YES; | CLANG_ENABLE_MODULES = YES; | ||||
| CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; | CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; | ||||
| CURRENT_PROJECT_VERSION = 1; | |||||
| CURRENT_PROJECT_VERSION = 2; | |||||
| DEVELOPMENT_TEAM = C3DTD2JH94; | DEVELOPMENT_TEAM = C3DTD2JH94; | ||||
| ENABLE_BITCODE = NO; | ENABLE_BITCODE = NO; | ||||
| FRAMEWORK_SEARCH_PATHS = ( | FRAMEWORK_SEARCH_PATHS = ( | ||||
| "$(PROJECT_DIR)/Flutter", | "$(PROJECT_DIR)/Flutter", | ||||
| ); | ); | ||||
| MARKETING_VERSION = 1.0.0; | MARKETING_VERSION = 1.0.0; | ||||
| PRODUCT_BUNDLE_IDENTIFIER = vn.azteam.tpfarm; | |||||
| PRODUCT_BUNDLE_IDENTIFIER = vn.azteam.farmdemo; | |||||
| PRODUCT_NAME = Runner; | PRODUCT_NAME = Runner; | ||||
| SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; | ||||
| SWIFT_VERSION = 5.0; | SWIFT_VERSION = 5.0; |
| { | { | ||||
| "images" : [ | "images" : [ | ||||
| { | { | ||||
| "filename" : "ic_logo_slogan.png", | |||||
| "filename" : "AZteam.png", | |||||
| "idiom" : "universal", | "idiom" : "universal", | ||||
| "scale" : "1x" | "scale" : "1x" | ||||
| }, | }, | ||||
| { | { | ||||
| "filename" : "ic_logo_slogan-1.png", | |||||
| "filename" : "AZteam-1.png", | |||||
| "idiom" : "universal", | "idiom" : "universal", | ||||
| "scale" : "2x" | "scale" : "2x" | ||||
| }, | }, | ||||
| { | { | ||||
| "filename" : "ic_logo_slogan-2.png", | |||||
| "filename" : "AZteam-2.png", | |||||
| "idiom" : "universal", | "idiom" : "universal", | ||||
| "scale" : "3x" | "scale" : "3x" | ||||
| } | } |
| <plist version="1.0"> | <plist version="1.0"> | ||||
| <dict> | <dict> | ||||
| <key>CLIENT_ID</key> | <key>CLIENT_ID</key> | ||||
| <string>618842128088-9qq79tu8vtaomorcpir47bgaakdm7rpu.apps.googleusercontent.com</string> | |||||
| <string>133633341213-onmfpr1862a89392av68uhn5sql5pt7h.apps.googleusercontent.com</string> | |||||
| <key>REVERSED_CLIENT_ID</key> | <key>REVERSED_CLIENT_ID</key> | ||||
| <string>com.googleusercontent.apps.618842128088-9qq79tu8vtaomorcpir47bgaakdm7rpu</string> | |||||
| <string>com.googleusercontent.apps.133633341213-onmfpr1862a89392av68uhn5sql5pt7h</string> | |||||
| <key>API_KEY</key> | <key>API_KEY</key> | ||||
| <string>AIzaSyCB3usmrSGhfDEmoPxj6Ya0WJ4Ag79DI9Q</string> | |||||
| <string>AIzaSyDdd_1yFjpcN9vy4KeN2rMFUQgegfSSRT0</string> | |||||
| <key>GCM_SENDER_ID</key> | <key>GCM_SENDER_ID</key> | ||||
| <string>618842128088</string> | |||||
| <string>133633341213</string> | |||||
| <key>PLIST_VERSION</key> | <key>PLIST_VERSION</key> | ||||
| <string>1</string> | <string>1</string> | ||||
| <key>BUNDLE_ID</key> | <key>BUNDLE_ID</key> | ||||
| <string>vn.azteam.tpfarm</string> | |||||
| <string>vn.azteam.farmdemo</string> | |||||
| <key>PROJECT_ID</key> | <key>PROJECT_ID</key> | ||||
| <string>tpfarm-825d1</string> | |||||
| <string>farm-demo-71aca</string> | |||||
| <key>STORAGE_BUCKET</key> | <key>STORAGE_BUCKET</key> | ||||
| <string>tpfarm-825d1.appspot.com</string> | |||||
| <string>farm-demo-71aca.appspot.com</string> | |||||
| <key>IS_ADS_ENABLED</key> | <key>IS_ADS_ENABLED</key> | ||||
| <false></false> | <false></false> | ||||
| <key>IS_ANALYTICS_ENABLED</key> | <key>IS_ANALYTICS_ENABLED</key> | ||||
| <key>IS_SIGNIN_ENABLED</key> | <key>IS_SIGNIN_ENABLED</key> | ||||
| <true></true> | <true></true> | ||||
| <key>GOOGLE_APP_ID</key> | <key>GOOGLE_APP_ID</key> | ||||
| <string>1:618842128088:ios:710f52451ebce86edea1ad</string> | |||||
| <string>1:133633341213:ios:3eb489a175c1c673cb53f4</string> | |||||
| <key>DATABASE_URL</key> | <key>DATABASE_URL</key> | ||||
| <string>https://tpfarm-825d1.firebaseio.com</string> | |||||
| <string>https://farm-demo-71aca.firebaseio.com</string> | |||||
| </dict> | </dict> | ||||
| </plist> | </plist> |
| <key>CFBundleInfoDictionaryVersion</key> | <key>CFBundleInfoDictionaryVersion</key> | ||||
| <string>6.0</string> | <string>6.0</string> | ||||
| <key>CFBundleName</key> | <key>CFBundleName</key> | ||||
| <string>Tiên Phong Farm</string> | |||||
| <string>Smart Farm</string> | |||||
| <key>CFBundlePackageType</key> | <key>CFBundlePackageType</key> | ||||
| <string>APPL</string> | <string>APPL</string> | ||||
| <key>CFBundleShortVersionString</key> | <key>CFBundleShortVersionString</key> |
| class _RestClient implements RestClient { | class _RestClient implements RestClient { | ||||
| _RestClient(this._dio, {this.baseUrl}) { | _RestClient(this._dio, {this.baseUrl}) { | ||||
| ArgumentError.checkNotNull(_dio, '_dio'); | ArgumentError.checkNotNull(_dio, '_dio'); | ||||
| this.baseUrl ??= 'https://tpf.aztrace.vn'; | |||||
| this.baseUrl ??= 'https://smartfarm.aztrace.vn'; | |||||
| } | } | ||||
| final Dio _dio; | final Dio _dio; |
| static int kExpiredTime = 518400000; //6* 24 * 60 * 60 * 1000; 6days | static int kExpiredTime = 518400000; //6* 24 * 60 * 60 * 1000; 6days | ||||
| static int kFileSize = 1000000; //1M = 1000.000 bytes | static int kFileSize = 1000000; //1M = 1000.000 bytes | ||||
| static int kMaxAgeCache = 7; // 7days | static int kMaxAgeCache = 7; // 7days | ||||
| static const String baseUrl = "https://tpf.aztrace.vn"; | |||||
| static const String baseImageUrl = "https://tpf.aztrace.vn/upload/"; | |||||
| static const String baseUrl = "https://smartfarm.aztrace.vn"; | |||||
| static const String baseImageUrl = "https://smartfarm.aztrace.vn/upload/"; | |||||
| static RegExp regExpDecimal = RegExp("[0-9,]"); | static RegExp regExpDecimal = RegExp("[0-9,]"); | ||||
| static const String apiDetailNursery = "api/activity-nursery"; | static const String apiDetailNursery = "api/activity-nursery"; |
| font_awesome_flutter: ^8.8.1 | font_awesome_flutter: ^8.8.1 | ||||
| package_info: ^0.4.3 | package_info: ^0.4.3 | ||||
| change_app_package_name: ^0.1.2 | change_app_package_name: ^0.1.2 | ||||
| #flutter pub run change_app_package_name:main vn.azteam.farmdemo | |||||
| firebase_messaging: ^7.0.0 | firebase_messaging: ^7.0.0 | ||||
| get: ^3.8.0 | get: ^3.8.0 | ||||
| intl: ^0.16.1 | intl: ^0.16.1 |