| @@ -44,7 +44,7 @@ android { | |||
| defaultConfig { | |||
| // 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 | |||
| targetSdkVersion 29 | |||
| versionCode flutterVersionCode.toInteger() | |||
| @@ -1,5 +1,5 @@ | |||
| <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 | |||
| to allow setting breakpoints, to provide hot reload, etc. | |||
| --> | |||
| @@ -1,5 +1,5 @@ | |||
| <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 | |||
| calls FlutterMain.startInitialization(this); in its onCreate method. | |||
| In most cases you can leave this as-is, but you if you want to provide | |||
| @@ -1,4 +1,4 @@ | |||
| package vn.azteam.tpfarm | |||
| package vn.azteam.farmdemo | |||
| import io.flutter.embedding.android.FlutterActivity | |||
| @@ -1,5 +1,5 @@ | |||
| <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 | |||
| to allow setting breakpoints, to provide hot reload, etc. | |||
| --> | |||
| @@ -1 +1 @@ | |||
| 256048b5f2de139c42fadf38202f819b | |||
| a4ee48868fa35a3a4493484923ea48b2 | |||
| @@ -374,7 +374,7 @@ | |||
| ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | |||
| CLANG_ENABLE_MODULES = YES; | |||
| CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; | |||
| CURRENT_PROJECT_VERSION = 1; | |||
| CURRENT_PROJECT_VERSION = 2; | |||
| DEVELOPMENT_TEAM = C3DTD2JH94; | |||
| ENABLE_BITCODE = NO; | |||
| FRAMEWORK_SEARCH_PATHS = ( | |||
| @@ -392,7 +392,7 @@ | |||
| "$(PROJECT_DIR)/Flutter", | |||
| ); | |||
| MARKETING_VERSION = 1.0.0; | |||
| PRODUCT_BUNDLE_IDENTIFIER = vn.azteam.tpfarm; | |||
| PRODUCT_BUNDLE_IDENTIFIER = vn.azteam.farmdemo; | |||
| PRODUCT_NAME = Runner; | |||
| SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; | |||
| SWIFT_VERSION = 5.0; | |||
| @@ -517,7 +517,7 @@ | |||
| ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | |||
| CLANG_ENABLE_MODULES = YES; | |||
| CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; | |||
| CURRENT_PROJECT_VERSION = 1; | |||
| CURRENT_PROJECT_VERSION = 2; | |||
| DEVELOPMENT_TEAM = C3DTD2JH94; | |||
| ENABLE_BITCODE = NO; | |||
| FRAMEWORK_SEARCH_PATHS = ( | |||
| @@ -535,7 +535,7 @@ | |||
| "$(PROJECT_DIR)/Flutter", | |||
| ); | |||
| MARKETING_VERSION = 1.0.0; | |||
| PRODUCT_BUNDLE_IDENTIFIER = vn.azteam.tpfarm; | |||
| PRODUCT_BUNDLE_IDENTIFIER = vn.azteam.farmdemo; | |||
| PRODUCT_NAME = Runner; | |||
| SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; | |||
| SWIFT_OPTIMIZATION_LEVEL = "-Onone"; | |||
| @@ -552,7 +552,7 @@ | |||
| ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | |||
| CLANG_ENABLE_MODULES = YES; | |||
| CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; | |||
| CURRENT_PROJECT_VERSION = 1; | |||
| CURRENT_PROJECT_VERSION = 2; | |||
| DEVELOPMENT_TEAM = C3DTD2JH94; | |||
| ENABLE_BITCODE = NO; | |||
| FRAMEWORK_SEARCH_PATHS = ( | |||
| @@ -570,7 +570,7 @@ | |||
| "$(PROJECT_DIR)/Flutter", | |||
| ); | |||
| MARKETING_VERSION = 1.0.0; | |||
| PRODUCT_BUNDLE_IDENTIFIER = vn.azteam.tpfarm; | |||
| PRODUCT_BUNDLE_IDENTIFIER = vn.azteam.farmdemo; | |||
| PRODUCT_NAME = Runner; | |||
| SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; | |||
| SWIFT_VERSION = 5.0; | |||
| @@ -1,17 +1,17 @@ | |||
| { | |||
| "images" : [ | |||
| { | |||
| "filename" : "ic_logo_slogan.png", | |||
| "filename" : "AZteam.png", | |||
| "idiom" : "universal", | |||
| "scale" : "1x" | |||
| }, | |||
| { | |||
| "filename" : "ic_logo_slogan-1.png", | |||
| "filename" : "AZteam-1.png", | |||
| "idiom" : "universal", | |||
| "scale" : "2x" | |||
| }, | |||
| { | |||
| "filename" : "ic_logo_slogan-2.png", | |||
| "filename" : "AZteam-2.png", | |||
| "idiom" : "universal", | |||
| "scale" : "3x" | |||
| } | |||
| @@ -3,21 +3,21 @@ | |||
| <plist version="1.0"> | |||
| <dict> | |||
| <key>CLIENT_ID</key> | |||
| <string>618842128088-9qq79tu8vtaomorcpir47bgaakdm7rpu.apps.googleusercontent.com</string> | |||
| <string>133633341213-onmfpr1862a89392av68uhn5sql5pt7h.apps.googleusercontent.com</string> | |||
| <key>REVERSED_CLIENT_ID</key> | |||
| <string>com.googleusercontent.apps.618842128088-9qq79tu8vtaomorcpir47bgaakdm7rpu</string> | |||
| <string>com.googleusercontent.apps.133633341213-onmfpr1862a89392av68uhn5sql5pt7h</string> | |||
| <key>API_KEY</key> | |||
| <string>AIzaSyCB3usmrSGhfDEmoPxj6Ya0WJ4Ag79DI9Q</string> | |||
| <string>AIzaSyDdd_1yFjpcN9vy4KeN2rMFUQgegfSSRT0</string> | |||
| <key>GCM_SENDER_ID</key> | |||
| <string>618842128088</string> | |||
| <string>133633341213</string> | |||
| <key>PLIST_VERSION</key> | |||
| <string>1</string> | |||
| <key>BUNDLE_ID</key> | |||
| <string>vn.azteam.tpfarm</string> | |||
| <string>vn.azteam.farmdemo</string> | |||
| <key>PROJECT_ID</key> | |||
| <string>tpfarm-825d1</string> | |||
| <string>farm-demo-71aca</string> | |||
| <key>STORAGE_BUCKET</key> | |||
| <string>tpfarm-825d1.appspot.com</string> | |||
| <string>farm-demo-71aca.appspot.com</string> | |||
| <key>IS_ADS_ENABLED</key> | |||
| <false></false> | |||
| <key>IS_ANALYTICS_ENABLED</key> | |||
| @@ -29,8 +29,8 @@ | |||
| <key>IS_SIGNIN_ENABLED</key> | |||
| <true></true> | |||
| <key>GOOGLE_APP_ID</key> | |||
| <string>1:618842128088:ios:710f52451ebce86edea1ad</string> | |||
| <string>1:133633341213:ios:3eb489a175c1c673cb53f4</string> | |||
| <key>DATABASE_URL</key> | |||
| <string>https://tpfarm-825d1.firebaseio.com</string> | |||
| <string>https://farm-demo-71aca.firebaseio.com</string> | |||
| </dict> | |||
| </plist> | |||
| @@ -11,7 +11,7 @@ | |||
| <key>CFBundleInfoDictionaryVersion</key> | |||
| <string>6.0</string> | |||
| <key>CFBundleName</key> | |||
| <string>Tiên Phong Farm</string> | |||
| <string>Smart Farm</string> | |||
| <key>CFBundlePackageType</key> | |||
| <string>APPL</string> | |||
| <key>CFBundleShortVersionString</key> | |||
| @@ -9,7 +9,7 @@ part of 'rest_client.dart'; | |||
| class _RestClient implements RestClient { | |||
| _RestClient(this._dio, {this.baseUrl}) { | |||
| ArgumentError.checkNotNull(_dio, '_dio'); | |||
| this.baseUrl ??= 'https://tpf.aztrace.vn'; | |||
| this.baseUrl ??= 'https://smartfarm.aztrace.vn'; | |||
| } | |||
| final Dio _dio; | |||
| @@ -2,8 +2,8 @@ class ConstCommon { | |||
| static int kExpiredTime = 518400000; //6* 24 * 60 * 60 * 1000; 6days | |||
| static int kFileSize = 1000000; //1M = 1000.000 bytes | |||
| 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 const String apiDetailNursery = "api/activity-nursery"; | |||
| @@ -31,6 +31,7 @@ dependencies: | |||
| font_awesome_flutter: ^8.8.1 | |||
| package_info: ^0.4.3 | |||
| change_app_package_name: ^0.1.2 | |||
| #flutter pub run change_app_package_name:main vn.azteam.farmdemo | |||
| firebase_messaging: ^7.0.0 | |||
| get: ^3.8.0 | |||
| intl: ^0.16.1 | |||