diff --git a/sqflite/test/sqflite_macos_impl_test.dart b/sqflite/test/sqflite_macos_impl_test.dart deleted file mode 100644 index cefbf431..00000000 --- a/sqflite/test/sqflite_macos_impl_test.dart +++ /dev/null @@ -1,36 +0,0 @@ -import 'dart:io'; - -import 'package:flutter_test/flutter_test.dart'; -import 'package:path/path.dart'; - -Future testSameFileContent(String path1, String path2) async { - // print(path1); - expect(await File(path1).readAsString(), await File(path2).readAsString(), - reason: '$path1 differs'); -} - -void main() { - TestWidgetsFlutterBinding.ensureInitialized(); - - group('macos', () { - test('ios/macos sample implementation', () async { - // Somehow we have either... - // sqflite - // or - // sqflite/test - var dir = Directory.current.path; - // print(dir); - if (basename(dir) == 'test') { - dir = dirname(dir); - } - final ios = join(dir, 'ios', 'Classes'); - final macos = join(dir, 'macos', 'Classes'); - for (var file in [ - ...['.h', '.m'].map((ext) => 'SqfliteOperation$ext'), - ...['.h', '.m'].map((ext) => 'SqflitePlugin$ext') - ]) { - await testSameFileContent(join(ios, file), join(macos, file)); - } - }); - }); -} diff --git a/sqflite_support/tool/copy_ios_code_to_macos.dart b/sqflite_support/tool/copy_ios_code_to_macos.dart deleted file mode 100644 index 00db0626..00000000 --- a/sqflite_support/tool/copy_ios_code_to_macos.dart +++ /dev/null @@ -1,13 +0,0 @@ -import 'package:process_run/shell.dart'; - -Future main() async { - final shell = Shell(workingDirectory: '..'); - - await shell.run(''' -# Code is shared between ios and macos -# There is no easy way to do that so the macos code is the reference -# and is copied to ios -cp -R sqflite/ios/Classes/ sqflite/macos/Classes/ - -'''); -} diff --git a/sqflite_support/tool/copy_macos_code_to_ios.dart b/sqflite_support/tool/copy_macos_code_to_ios.dart deleted file mode 100644 index c992e32f..00000000 --- a/sqflite_support/tool/copy_macos_code_to_ios.dart +++ /dev/null @@ -1,13 +0,0 @@ -import 'package:process_run/shell.dart'; - -Future main() async { - final shell = Shell(workingDirectory: '..'); - - await shell.run(''' -# Code is shared between ios and macos -# There is no easy way to do that so the macos code is the reference -# and is copied to ios -cp -R sqflite/macos/Classes/ sqflite/ios/Classes/ - -'''); -}