Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release 1.3.0 #96

Merged
merged 27 commits into from
Sep 23, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
7ac4d4c
bumped purchases-hybrid-common to 1.3.1
aboedo Sep 11, 2020
b60bbb8
bumped common version to 1.4.0
aboedo Sep 18, 2020
4012aaf
added empty swift file so that swift code compiles correctly
aboedo Sep 18, 2020
bee1db6
ignored .last_build_id
aboedo Sep 18, 2020
ea83a47
updated deployment target version to 9.0.
aboedo Sep 18, 2020
6fb6d81
added new methods for attribution v2 to flutter plugin interface
aboedo Sep 18, 2020
577afa6
added new methods to the flutter dart interface
aboedo Sep 18, 2020
5fa3b1d
added deprecation warning in dart
aboedo Sep 18, 2020
1130ed1
fixeed param names typo for iOS, added new methods for Android
aboedo Sep 18, 2020
9ffd43f
updated purchases-hybrid-common version for Android
aboedo Sep 18, 2020
2f4d36c
bumped version number and added changelog
aboedo Sep 19, 2020
b233ff5
reverted accidental changes in podfile and main.dart
aboedo Sep 19, 2020
9e25469
removed deprecated call to addAttributionData in the example app
aboedo Sep 21, 2020
ebc1013
fix typo in purchases_flutter.dart
aboedo Sep 21, 2020
e6e2933
fixed typo in build.gradle, updated version of gradle build
aboedo Sep 21, 2020
cbe83f8
fixed missing semicolons
aboedo Sep 21, 2020
dae7745
updated calls to common code in PurchasesFlutterPlugin
aboedo Sep 21, 2020
3fc061e
updated version of purchases-hybrid-common
aboedo Sep 21, 2020
c3be6bb
updated podfile to use purchases-hybrid-common 1.4.1
aboedo Sep 21, 2020
9997355
fix typo in fbAnonymousID
aboedo Sep 21, 2020
ce01a05
fix docs from PR comments
aboedo Sep 21, 2020
6bc5c8c
added nonSubscriptionTransactions
aboedo Sep 21, 2020
1eff4a9
fixed mapping of transactions
aboedo Sep 22, 2020
3755ef9
updates to documentation for collectDeviceIdentifiers
aboedo Sep 22, 2020
8cd51fb
bumped purchases-hybrid-common to 1.4.2
aboedo Sep 22, 2020
3a2f786
fixes docs for non-subscription transactions
aboedo Sep 23, 2020
857bf0b
ran flutter format
aboedo Sep 23, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
bumped purchases-hybrid-common to 1.3.1
  • Loading branch information
aboedo committed Sep 11, 2020
commit 7ac4d4c12491ca082591d9120f4454693e9fb431
74 changes: 14 additions & 60 deletions example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,75 +10,29 @@ project 'Runner', {
'Release' => :release,
}

def parse_KV_file(file, separator='=')
file_abs_path = File.expand_path(file)
if !File.exists? file_abs_path
return [];
def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end
generated_key_values = {}
skip_line_start_symbols = ["#", "/"]
File.foreach(file_abs_path) do |line|
next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
plugin = line.split(pattern=separator)
if plugin.length == 2
podname = plugin[0].strip()
path = plugin[1].strip()
podpath = File.expand_path("#{path}", file_abs_path)
generated_key_values[podname] = podpath
else
puts "Invalid plugin specification: #{line}"
end
end
generated_key_values
end

target 'Runner' do
# Flutter Pod

copied_flutter_dir = File.join(__dir__, 'Flutter')
copied_framework_path = File.join(copied_flutter_dir, 'Flutter.framework')
copied_podspec_path = File.join(copied_flutter_dir, 'Flutter.podspec')
unless File.exist?(copied_framework_path) && File.exist?(copied_podspec_path)
# Copy Flutter.framework and Flutter.podspec to Flutter/ to have something to link against if the xcode backend script has not run yet.
# That script will copy the correct debug/profile/release version of the framework based on the currently selected Xcode configuration.
# CocoaPods will not embed the framework on pod install (before any build phases can generate) if the dylib does not exist.

generated_xcode_build_settings_path = File.join(copied_flutter_dir, 'Generated.xcconfig')
unless File.exist?(generated_xcode_build_settings_path)
raise "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end
generated_xcode_build_settings = parse_KV_file(generated_xcode_build_settings_path)
cached_framework_dir = generated_xcode_build_settings['FLUTTER_FRAMEWORK_DIR'];

unless File.exist?(copied_framework_path)
FileUtils.cp_r(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir)
end
unless File.exist?(copied_podspec_path)
FileUtils.cp(File.join(cached_framework_dir, 'Flutter.podspec'), copied_flutter_dir)
end
File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT\=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end

# Keep pod path relative so it can be checked into Podfile.lock.
pod 'Flutter', :path => 'Flutter'
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

# Plugin Pods
flutter_ios_podfile_setup

# Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
# referring to absolute paths on developers' machines.
system('rm -rf .symlinks')
system('mkdir -p .symlinks/plugins')
plugin_pods = parse_KV_file('../.flutter-plugins')
plugin_pods.each do |name, path|
symlink = File.join('.symlinks', 'plugins', name)
File.symlink(path, symlink)
pod name, :path => File.join(symlink, 'ios')
end
target 'Runner' do
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
end
flutter_additional_ios_build_settings(target)
end
end
14 changes: 10 additions & 4 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
PODS:
- e2e (0.0.1):
- Flutter
- Flutter (1.0.0)
- Purchases (3.4.0)
- purchases_flutter (1.1.1):
- purchases_flutter (1.2.1):
- Flutter
- PurchasesHybridCommon (= 1.2.0)
- PurchasesHybridCommon (1.2.0):
- Purchases (= 3.4.0)

DEPENDENCIES:
- e2e (from `.symlinks/plugins/e2e/ios`)
- Flutter (from `Flutter`)
- purchases_flutter (from `.symlinks/plugins/purchases_flutter/ios`)

Expand All @@ -17,17 +20,20 @@ SPEC REPOS:
- PurchasesHybridCommon

EXTERNAL SOURCES:
e2e:
:path: ".symlinks/plugins/e2e/ios"
Flutter:
:path: Flutter
purchases_flutter:
:path: ".symlinks/plugins/purchases_flutter/ios"

SPEC CHECKSUMS:
e2e: 967b9b1fc533b7636a3b7a719f840c27f301fe1f
Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
Purchases: b8cac232e403ca51541a425a65992b902cecc044
purchases_flutter: 9dbb0af4546265d4f6e7299d87026537d50dce4c
purchases_flutter: b27e7df010dbf09f9b7bdd849cc83ac19c3444d9
PurchasesHybridCommon: deba31751165f0a0f84eba3df68a54641f8a69b1

PODFILE CHECKSUM: 8685ee79ad9489b94b9f1ac3974f4638bb57b02e
PODFILE CHECKSUM: b1f7a399522c118a74b177b13c01eca692aa7e6d

COCOAPODS: 1.9.1
COCOAPODS: 1.9.3
3 changes: 0 additions & 3 deletions example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,6 @@
/* Begin XCBuildConfiguration section */
249021D3217E4FDB00AE95B9 /* Profile */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
Expand Down Expand Up @@ -393,7 +392,6 @@
};
97C147031CF9000F007C117D /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
Expand Down Expand Up @@ -447,7 +445,6 @@
};
97C147041CF9000F007C117D /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion ios/purchases_flutter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Pod::Spec.new do |s|
s.source_files = 'Classes/**/*'
s.public_header_files = 'Classes/**/*.h'
s.dependency 'Flutter'
s.dependency 'PurchasesHybridCommon', '1.2.0'
s.dependency 'PurchasesHybridCommon', '1.3.1'
s.ios.deployment_target = '9.0'
end