Skip to content

Commit

Permalink
Add Amazon consumer proguard rules to plugin and prepare alpha.3 rele…
Browse files Browse the repository at this point in the history
…ase (RevenueCat#336)

* adds proguard rules to plugin

* increase version

* add changelog and updates instructions

* removes unnecessary import
  • Loading branch information
vegaro authored Mar 10, 2022
1 parent 6c759df commit b016e72
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 13 deletions.
8 changes: 6 additions & 2 deletions AMAZON-INSTRUCTIONS.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
Adds initial Amazon store support. In order to use please point to this tag in your `pubspec.yaml` like this:
⚠️ ⚠️ ⚠️
This version doesn't support Amazon Store in [observer mode](https://docs.revenuecat.com/docs/observer-mode).
⚠️ ⚠️ ⚠️

Adds initial Amazon Store support. In order to use please point to this tag in your `pubspec.yaml` like this:

```
dependencies:
purchases_flutter:
git:
url: git://github.com/revenuecat/purchases-flutter.git
ref: amazon.alpha.2
ref: amazon.alpha.3
```

Then configure the package using your **RevenueCat API key specific for Amazon** and passing `useAmazon: true`:
Expand Down
6 changes: 2 additions & 4 deletions CHANGELOG-LATEST.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## 3.4.5
## 4.0.0-amazon.alpha.3

- Bumped purchases-android to 4.3.1 [Changelog here](https://github.com/RevenueCat/purchases-android/releases/4.3.1),
which fixes canMakePayments not returning (see related issue: https://github.com/RevenueCat/purchases-unity/issues/61)
- Bumped purchases-hybrid-common to 1.9.1 [Changelog here](https://github.com/RevenueCat/purchases-hybrid-common/releases/tag/1.9.1)
- Automatically adds Amazon Proguard rules
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 4.0.0-amazon.alpha.3

- Automatically adds Amazon Proguard rules

## 3.4.5

- Bumped purchases-android to 4.3.1 [Changelog here](https://github.com/RevenueCat/purchases-android/releases/4.3.1),
Expand Down
7 changes: 6 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'com.revenuecat.purchases_flutter'
version '4.0.0-amazon.alpha.2'
version '4.0.0-amazon.alpha.3'

buildscript {
ext.kotlin_version = '1.3.72'
Expand Down Expand Up @@ -35,6 +35,11 @@ android {
lintOptions {
disable 'InvalidPackage'
}
buildTypes {
release {
consumerProguardFiles 'proguard-rules.pro'
}
}
}

dependencies {
Expand Down
3 changes: 3 additions & 0 deletions android/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-dontwarn com.amazon.**
-keep class com.amazon.** {*;}
-keepattributes *Annotation*
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class PurchasesFlutterPlugin implements FlutterPlugin, MethodCallHandler,
@Nullable private Activity activity;

private static final String PLATFORM_NAME = "flutter";
private static final String PLUGIN_VERSION = "4.0.0-amazon.alpha.2";
private static final String PLUGIN_VERSION = "4.0.0-amazon.alpha.3";

/**
* Plugin registration.
Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/PurchasesFlutterPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ - (NSString *)platformFlavor {
}

- (NSString *)platformFlavorVersion {
return @"4.0.0-amazon.alpha.2";
return @"4.0.0-amazon.alpha.3";
}

@end
2 changes: 1 addition & 1 deletion ios/purchases_flutter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
Pod::Spec.new do |s|
s.name = 'purchases_flutter'
s.version = '4.0.0-amazon.alpha.2'
s.version = '4.0.0-amazon.alpha.3'
s.summary = 'Cross-platform subscriptions framework for Flutter.'
s.description = <<-DESC
Client for the RevenueCat subscription and purchase tracking system, making implementing in-app subscriptions in Flutter easy - receipt validation and status tracking included!
Expand Down
2 changes: 1 addition & 1 deletion macos/purchases_flutter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
Pod::Spec.new do |s|
s.name = 'purchases_flutter'
s.version = '4.0.0-amazon.alpha.2'
s.version = '4.0.0-amazon.alpha.3'
s.summary = 'Cross-platform subscriptions framework for Flutter.'
s.description = <<-DESC
Client for the RevenueCat subscription and purchase tracking system, making implementing in-app subscriptions in Flutter easy - receipt validation and status tracking included!
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: purchases_flutter
description: A Flutter plugin that makes it simple to add and manage in-app purchases (IAP) and subscriptions. Supports Android, iOS, macOS, iPadOS, and watchOS.
version: 4.0.0-amazon.alpha.2
version: 4.0.0-amazon.alpha.3
homepage: https://www.revenuecat.com/
repository: https://github.com/RevenueCat/purchases-flutter
issue_tracker: https://github.com/RevenueCat/purchases-flutter/issues
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import 'package:magic_weather_flutter/src/components/top_bar.dart';
import 'package:magic_weather_flutter/src/model/singletons_data.dart';
import 'package:magic_weather_flutter/src/model/styles.dart';
import 'package:magic_weather_flutter/src/model/weather_data.dart';
import 'package:purchases_flutter/object_wrappers.dart';
import 'package:modal_progress_hud/modal_progress_hud.dart';
import 'package:flutter/services.dart';
import 'package:purchases_flutter/purchases_flutter.dart';
Expand Down

0 comments on commit b016e72

Please sign in to comment.