chore: add build artifacts, map assets, and routing data
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:siro_maps/core/constants/api_constants.dart';
|
||||
import 'package:siro_maps/core/env/env.dart';
|
||||
|
||||
void main() {
|
||||
group('Env & Obfuscated Secrets Verification', () {
|
||||
test('MapSaaS API key is decrypted correctly from obfuscated bytecode', () {
|
||||
expect(Env.mapSaasApiKey, equals('in_9478b32836d19cff73db3063'));
|
||||
expect(ApiConstants.mapSaasKey, equals('in_9478b32836d19cff73db3063'));
|
||||
});
|
||||
|
||||
test('Google Map API key is decrypted correctly from obfuscated bytecode', () {
|
||||
expect(Env.googleMapApiKey, equals('AIzaSyAPFR_XbRN0XZ5Iz3AYDjNYHGJG2s2QWwM'));
|
||||
expect(ApiConstants.googleMapApiKey, equals('AIzaSyAPFR_XbRN0XZ5Iz3AYDjNYHGJG2s2QWwM'));
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
import 'package:siro_maps/data/repositories/map_saas_repository.dart';
|
||||
import 'package:siro_maps/logic/cubits/navigation/navigation_cubit.dart';
|
||||
import 'package:siro_maps/main.dart';
|
||||
|
||||
void main() {
|
||||
TestWidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
setUp(() {
|
||||
SharedPreferences.setMockInitialValues({});
|
||||
});
|
||||
|
||||
testWidgets('Siro Maps initial smoke test renders SplashView with branding', (WidgetTester tester) async {
|
||||
final repo = MapSaasRepository();
|
||||
|
||||
await tester.pumpWidget(
|
||||
MultiRepositoryProvider(
|
||||
providers: [
|
||||
RepositoryProvider<MapSaasRepository>.value(value: repo),
|
||||
],
|
||||
child: BlocProvider<NavigationCubit>(
|
||||
create: (_) => NavigationCubit(repository: repo),
|
||||
child: const SiroMapsApp(),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
expect(find.text('خرائط سيرو'), findsOneWidget);
|
||||
expect(find.textContaining('v2.4 PRO'), findsOneWidget);
|
||||
|
||||
await tester.pump(const Duration(milliseconds: 3000));
|
||||
await tester.pumpAndSettle();
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user