Skip to content

Commit 61c22cb

Browse files
authored
Merge pull request #4 from MadBrains/fix_android_build
[2.0.1] Fix Android Build
2 parents 1e15a36 + 2963e9a commit 61c22cb

File tree

6 files changed

+22
-16
lines changed

6 files changed

+22
-16
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 2.0.1
2+
3+
* [Android] Fix Dependency conflict with firebase
4+
* [Android] Bump minSdkVersion to 21
5+
* [Android] Enable multiDex
6+
17
## 2.0.0
28

39
* Null safe migration

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ Easy integration with Google Pay and Apple Pay for your flutter app.
1717
Add this to your package's pubspec.yaml file:
1818
```yaml
1919
dependencies:
20-
mad_pay: 1.0.0
20+
mad_pay: 2.0.1
2121
```
2222
23+
For Android: set `minSdkVersion` to 21
24+
2325
## Usage
2426
To start using payment you need to get Merchant Identifier:
2527
* [For Apple Pay][apple_merchant]

android/build.gradle

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version '1.0-SNAPSHOT'
33

44
buildscript {
55
ext.kotlin_version = '1.3.50'
6-
ext.protobufVersion = '0.8.8'
6+
ext.protobufVersion = '0.8.15'
77
repositories {
88
google()
99
jcenter()
@@ -13,7 +13,6 @@ buildscript {
1313
classpath 'com.android.tools.build:gradle:3.5.0'
1414
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1515
classpath "com.google.protobuf:protobuf-gradle-plugin:$protobufVersion"
16-
classpath "com.google.protobuf:protobuf-java-util:$protobufVersion"
1716
}
1817
}
1918

@@ -36,8 +35,9 @@ android {
3635
main.proto.srcDirs += '../protos'
3736
}
3837
defaultConfig {
39-
minSdkVersion 16
38+
minSdkVersion 21
4039
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
40+
multiDexEnabled true
4141
}
4242
lintOptions {
4343
disable 'InvalidPackage'
@@ -51,24 +51,22 @@ android {
5151

5252
protobuf {
5353
protoc {
54-
artifact = 'com.google.protobuf:protoc:3.6.1'
55-
}
56-
plugins {
57-
javalite {
58-
artifact = 'com.google.protobuf:protoc-gen-javalite:3.0.0'
59-
}
54+
artifact = 'com.google.protobuf:protoc:3.14.0'
6055
}
6156
generateProtoTasks {
6257
all().each { task ->
63-
task.plugins {
64-
javalite { }
58+
task.builtins {
59+
java {
60+
option "lite"
61+
}
6562
}
6663
}
6764
}
6865
}
6966

7067
dependencies {
7168
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
72-
implementation 'com.google.protobuf:protobuf-lite:3.0.1'
69+
implementation 'com.google.protobuf:protobuf-javalite:3.14.0'
7370
implementation 'com.google.android.gms:play-services-wallet:18.1.2'
71+
implementation "androidx.multidex:multidex:2.0.1"
7472
}

example/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ android {
3939
defaultConfig {
4040
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
4141
applicationId "ru.madbrains.mad_pay_example"
42-
minSdkVersion 16
42+
minSdkVersion 21
4343
targetSdkVersion 29
4444
versionCode flutterVersionCode.toInteger()
4545
versionName flutterVersionName

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ packages:
7373
path: ".."
7474
relative: true
7575
source: path
76-
version: "2.0.0"
76+
version: "2.0.1"
7777
matcher:
7878
dependency: transitive
7979
description:

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: mad_pay
22
description: Mad Pay will help you make payments through Apple Pay and Google Pay
3-
version: 2.0.0
3+
version: 2.0.1
44
repository: https://github.com/MadBrains/Mad-Pay-Flutter
55
issue_tracker: https://github.com/MadBrains/Mad-Pay-Flutter/issues
66
homepage: https://madbrains.ru/

0 commit comments

Comments
 (0)