Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
22 changes: 18 additions & 4 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ group 'co.paystack.flutterpaystack'
version '1.0-SNAPSHOT'

buildscript {
ext.kotlin_version = '1.7.20'
ext.kotlin_version = '1.8.22'
repositories {
mavenCentral()
google()
}

dependencies {
classpath 'com.android.tools.build:gradle:7.4.0-rc02'
classpath 'com.android.tools.build:gradle:7.4.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand All @@ -25,7 +25,19 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

android {
compileSdkVersion 32
namespace "co.paystack.flutterpaystack"
compileSdkVersion 34
ndkVersion "27.0.12077973"

compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}

kotlinOptions {
jvmTarget = "17"
}

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
Expand All @@ -35,6 +47,7 @@ android {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
versionCode 21
versionName "3.0.10"
multiDexEnabled true
}
lintOptions {
disable 'InvalidPackage'
Expand All @@ -43,4 +56,5 @@ android {

dependencies {
implementation 'com.google.android.material:material:1.7.0'
}
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.2.2'
}
6 changes: 5 additions & 1 deletion example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ allprojects {
google()
jcenter()
}

tasks.withType(JavaCompile) {
options.compilerArgs << '-Xlint:-options'
}
}

rootProject.buildDir = '../build'
Expand All @@ -28,4 +32,4 @@ subprojects {

task clean(type: Delete) {
delete rootProject.buildDir
}
}
11 changes: 4 additions & 7 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,18 @@ dev_dependencies:
matcher: ^0.12.12
mockito: ^5.3.1


flutter:
plugin:
platforms:
android:
package: co.paystack.flutterpaystack
pluginClass: FlutterPaystackPlugin
pluginClass: FlutterPaystackPlugin
ios:
pluginClass: FlutterPaystackPlugin
pluginClass: FlutterPaystackPlugin

assets:
- assets/images/


- assets/images/

environment:
sdk: '>=2.12.0 <3.0.0'
sdk: ">=3.5.4 <4.0.0"
flutter: ">=2.0.0"