Grain flutter app

feat: Add WebSocket URL configuration for notifications and update version to 1.0.0+14

+10 -4
+3
ios/Runner.xcodeproj/project.pbxproj
··· 493 SWIFT_VERSION = 5.0; 494 TARGETED_DEVICE_FAMILY = 1; 495 VERSIONING_SYSTEM = "apple-generic"; 496 }; 497 name = Profile; 498 }; ··· 689 SWIFT_VERSION = 5.0; 690 TARGETED_DEVICE_FAMILY = 1; 691 VERSIONING_SYSTEM = "apple-generic"; 692 }; 693 name = Debug; 694 }; ··· 721 SWIFT_VERSION = 5.0; 722 TARGETED_DEVICE_FAMILY = 1; 723 VERSIONING_SYSTEM = "apple-generic"; 724 }; 725 name = Release; 726 };
··· 493 SWIFT_VERSION = 5.0; 494 TARGETED_DEVICE_FAMILY = 1; 495 VERSIONING_SYSTEM = "apple-generic"; 496 + WS_URL = "wss://notifications.grainsocial.network/ws"; 497 }; 498 name = Profile; 499 }; ··· 690 SWIFT_VERSION = 5.0; 691 TARGETED_DEVICE_FAMILY = 1; 692 VERSIONING_SYSTEM = "apple-generic"; 693 + WS_URL = "wss://notifications.grainsocial.network/ws"; 694 }; 695 name = Debug; 696 }; ··· 723 SWIFT_VERSION = 5.0; 724 TARGETED_DEVICE_FAMILY = 1; 725 VERSIONING_SYSTEM = "apple-generic"; 726 + WS_URL = "wss://notifications.grainsocial.network/ws"; 727 }; 728 name = Release; 729 };
+6 -3
lib/main.dart
··· 22 } 23 apiUrl = kReleaseMode 24 ? const String.fromEnvironment('API_URL', defaultValue: 'https://grain.social') 25 - : dotenv.env['API_URL'] ?? 'http://localhost:8080'; 26 wsUrl = kReleaseMode 27 - ? const String.fromEnvironment('WS_URL', defaultValue: 'wss://grain.social/ws') 28 - : dotenv.env['WS_URL'] ?? 'ws://localhost:8080/ws'; 29 } 30 } 31
··· 22 } 23 apiUrl = kReleaseMode 24 ? const String.fromEnvironment('API_URL', defaultValue: 'https://grain.social') 25 + : dotenv.env['API_URL'] ?? ''; 26 wsUrl = kReleaseMode 27 + ? const String.fromEnvironment( 28 + 'WS_URL', 29 + defaultValue: 'wss://notifications.grainsocial.network/ws', 30 + ) 31 + : dotenv.env['WS_URL'] ?? ''; 32 } 33 } 34
+1 -1
pubspec.yaml
··· 16 # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 17 # In Windows, build-name is used as the major, minor, and patch parts 18 # of the product and file versions while build-number is used as the build suffix. 19 - version: 1.0.0+12 20 21 environment: 22 sdk: ^3.8.1
··· 16 # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 17 # In Windows, build-name is used as the major, minor, and patch parts 18 # of the product and file versions while build-number is used as the build suffix. 19 + version: 1.0.0+14 20 21 environment: 22 sdk: ^3.8.1