Showing
5 changed files
with
61 additions
and
8 deletions
@@ -26,7 +26,9 @@ import 'package:meta/meta.dart'; | @@ -26,7 +26,9 @@ import 'package:meta/meta.dart'; | ||
26 | import 'package:utf/utf.dart'; | 26 | import 'package:utf/utf.dart'; |
27 | import 'package:vector_math/vector_math_64.dart'; | 27 | import 'package:vector_math/vector_math_64.dart'; |
28 | 28 | ||
29 | -import 'src/io.dart' if (dart.library.io) 'src/archive.dart'; | 29 | +import 'src/io.dart' |
30 | + if (dart.library.io) 'src/io_vm.dart' | ||
31 | + if (dart.library.js) 'src/io_archive.dart'; | ||
30 | 32 | ||
31 | part 'src/annotation.dart'; | 33 | part 'src/annotation.dart'; |
32 | part 'src/array.dart'; | 34 | part 'src/array.dart'; |
pdf/lib/src/archive.dart
deleted
100644 → 0
1 | -import 'dart:io'; | 1 | +/* |
2 | + * Copyright (C) 2017, David PHAM-VAN <dev.nfet.net@gmail.com> | ||
3 | + * | ||
4 | + * Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | + * you may not use this file except in compliance with the License. | ||
6 | + * You may obtain a copy of the License at | ||
7 | + * | ||
8 | + * http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | + * | ||
10 | + * Unless required by applicable law or agreed to in writing, software | ||
11 | + * distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | + * See the License for the specific language governing permissions and | ||
14 | + * limitations under the License. | ||
15 | + */ | ||
2 | 16 | ||
3 | import 'package:pdf/pdf.dart'; | 17 | import 'package:pdf/pdf.dart'; |
4 | 18 | ||
5 | -DeflateCallback defaultDeflate = zlib.encode; | 19 | +DeflateCallback defaultDeflate; |
pdf/lib/src/io_archive.dart
0 → 100644
1 | +/* | ||
2 | + * Copyright (C) 2017, David PHAM-VAN <dev.nfet.net@gmail.com> | ||
3 | + * | ||
4 | + * Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | + * you may not use this file except in compliance with the License. | ||
6 | + * You may obtain a copy of the License at | ||
7 | + * | ||
8 | + * http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | + * | ||
10 | + * Unless required by applicable law or agreed to in writing, software | ||
11 | + * distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | + * See the License for the specific language governing permissions and | ||
14 | + * limitations under the License. | ||
15 | + */ | ||
16 | + | ||
17 | +import 'package:archive/archive.dart'; | ||
18 | + | ||
19 | +import 'package:pdf/pdf.dart'; | ||
20 | + | ||
21 | +DeflateCallback defaultDeflate = ZLibEncoder().encode; |
pdf/lib/src/io_vm.dart
0 → 100644
1 | +/* | ||
2 | + * Copyright (C) 2017, David PHAM-VAN <dev.nfet.net@gmail.com> | ||
3 | + * | ||
4 | + * Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | + * you may not use this file except in compliance with the License. | ||
6 | + * You may obtain a copy of the License at | ||
7 | + * | ||
8 | + * http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | + * | ||
10 | + * Unless required by applicable law or agreed to in writing, software | ||
11 | + * distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | + * See the License for the specific language governing permissions and | ||
14 | + * limitations under the License. | ||
15 | + */ | ||
16 | + | ||
17 | +import 'dart:io'; | ||
18 | + | ||
19 | +import 'package:pdf/pdf.dart'; | ||
20 | + | ||
21 | +DeflateCallback defaultDeflate = zlib.encode; |
-
Please register or login to post a comment