Skip to content

Commit

Permalink
Close #293
Browse files Browse the repository at this point in the history
  • Loading branch information
endigo committed Dec 29, 2024
1 parent fa9395e commit 6cae8ba
Show file tree
Hide file tree
Showing 12 changed files with 44 additions and 9 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.4.0
- Add support for Swift Package Manager

## 1.3.4
- Add support for background color [278](https://github.com/endigo/flutter_pdfview/pull/278) @bobbybun

Expand Down
2 changes: 1 addition & 1 deletion example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
flutter_pdfview: 25f53dd6097661e6395b17de506e6060585946bd
flutter_pdfview: c19d9543a4d7d82d7f1dcb6e143eb4c4109c0759
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46

PODFILE CHECKSUM: c4c93c5f6502fe2754f48404d3594bf779584011
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.3.3"
version: "1.4.0"
flutter_test:
dependency: "direct dev"
description: flutter
Expand Down
Empty file removed ios/Assets/.gitkeep
Empty file.
6 changes: 3 additions & 3 deletions ios/flutter_pdfview.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ Pod::Spec.new do |s|
s.author = { 'endigo' => '[email protected]' }
s.source = { :http => 'https://github.com/endigo/flutter_pdfview' }
s.documentation_url = 'https://pub.dev/packages/flutter_pdfview'
s.source_files = 'Classes/**/*'
s.public_header_files = 'Classes/**/*.h'
s.source_files = 'flutter_pdfview/Sources/flutter_pdfview/**/*.{h,m}'
s.public_header_files = 'flutter_pdfview/Sources/flutter_pdfview/include/**/*.h'
s.dependency 'Flutter'

s.ios.deployment_target = '9.0'
s.ios.deployment_target = '11.0'
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS' => 'armv7 arm64 x86_64' }
end

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions ios/flutter_pdfview/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// swift-tools-version: 5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "flutter_pdfview",
platforms: [
.iOS("12.0"),
],
products: [
.library(name: "flutter-pdfview", targets: ["flutter_pdfview"])
],
dependencies: [],
targets: [
.target(
name: "flutter_pdfview",
dependencies: [],
resources: [],
cSettings: [
.headerSearchPath("include/flutter_pdfview")
]
)
]
)
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import "FlutterPDFView.h"
#import "./include/flutter_pdfview/FlutterPDFView.h"

@implementation FLTPDFViewFactory {
NSObject<FlutterBinaryMessenger>* _messenger;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "PDFViewFlutterPlugin.h"
#import "FlutterPDFView.h"
#import "./include/flutter_pdfview/PDFViewFlutterPlugin.h"
#import "./include/flutter_pdfview/FlutterPDFView.h"

@implementation FLTPDFViewFlutterPlugin
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_pdfview
description: A Flutter plugin that provides a PDFView widget on Android and iOS.
version: 1.3.4
version: 1.4.0
homepage: https://github.com/endigo/flutter_pdfview

environment:
Expand Down

0 comments on commit 6cae8ba

Please sign in to comment.