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
3 changes: 3 additions & 0 deletions pay/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
analyzer:
exclude:
- build/**
include: ../analysis_options.yaml
5 changes: 5 additions & 0 deletions pay/example/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
analyzer:
exclude:
- build/**
- android/**
- ios/**
include: ../../analysis_options.yaml
58 changes: 0 additions & 58 deletions pay/example/android/app/build.gradle

This file was deleted.

39 changes: 39 additions & 0 deletions pay/example/android/app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import com.android.build.api.dsl.ApplicationExtension
import org.gradle.kotlin.dsl.configure

plugins {
id("com.android.application")
id("dev.flutter.flutter-gradle-plugin")
}

extensions.configure<ApplicationExtension> {
namespace = "io.flutter.plugins.pay_example"
compileSdk = flutter.compileSdkVersion

defaultConfig {
applicationId = "io.flutter.plugins.pay_example"
minSdk = flutter.minSdkVersion
targetSdk = flutter.targetSdkVersion
versionCode = flutter.flutterVersionCode?.toInt()
versionName = flutter.flutterVersionName
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

sourceSets.named("main") {
kotlin.directories += "src/main/kotlin"
}
}

kotlin {
compilerOptions {
jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17
}
}

flutter {
source = "../.."
}
3 changes: 1 addition & 2 deletions pay/example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.flutter.plugins.pay_example">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:label="pay_example"
android:name="${applicationName}"
Expand Down
18 changes: 0 additions & 18 deletions pay/example/android/build.gradle

This file was deleted.

25 changes: 25 additions & 0 deletions pay/example/android/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
allprojects {
repositories {
google()
mavenCentral()
}
}

val newBuildDir: Directory =
rootProject.layout.buildDirectory
.dir("../../build")
.get()
rootProject.layout.buildDirectory.value(newBuildDir)

subprojects {
val subprojectBuildDir: Directory = newBuildDir.dir(project.name)
project.layout.buildDirectory.value(subprojectBuildDir)
}

subprojects {
project.evaluationDependsOn(":app")
}

tasks.register<Delete>("clean") {
delete(rootProject.layout.buildDirectory)
}
4 changes: 0 additions & 4 deletions pay/example/android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
# This builtInKotlin flag was added automatically by Flutter migrator
android.builtInKotlin=false
# This newDsl flag was added automatically by Flutter migrator
android.newDsl=false
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.7.1-bin.zip
26 changes: 0 additions & 26 deletions pay/example/android/settings.gradle

This file was deleted.

26 changes: 26 additions & 0 deletions pay/example/android/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
pluginManagement {
val flutterSdkPath = {
val properties = java.util.Properties()
file("local.properties").inputStream().use { properties.load(it) }
val sdkPath = properties.getProperty("flutter.sdk")
require(sdkPath != null) { "flutter.sdk not set in local.properties" }
sdkPath
}()

includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")

repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}

plugins {
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
id("com.android.application") version "9.3.2" apply false
id("org.jetbrains.kotlin.android") version "2.4.20" apply false
}

rootProject.name = "Google Pay Flutter sample application"
include(":app")
2 changes: 1 addition & 1 deletion pay/example/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Uncomment this line to define a global platform for your project
# platform :ios, '13.0'
# platform :ios, '15.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
Expand Down
16 changes: 2 additions & 14 deletions pay/example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,28 +1,16 @@
PODS:
- Flutter (1.0.0)
- integration_test (0.0.1):
- Flutter
- pay_ios (0.0.1):
- Flutter

DEPENDENCIES:
- Flutter (from `Flutter`)
- integration_test (from `.symlinks/plugins/integration_test/ios`)
- pay_ios (from `.symlinks/plugins/pay_ios/ios`)

EXTERNAL SOURCES:
Flutter:
:path: Flutter
integration_test:
:path: ".symlinks/plugins/integration_test/ios"
pay_ios:
:path: ".symlinks/plugins/pay_ios/ios"

SPEC CHECKSUMS:
Flutter: cabc95a1d2626b1b06e7179b784ebcf0c0cde467
integration_test: 4a889634ef21a45d28d50d622cf412dc6d9f586e
pay_ios: 616e4e1ef4b51b69e11042ff18ba6bbe7408e13b
Flutter: 71a624a5bc0c04062bf19101d501e466baf2fb47

PODFILE CHECKSUM: 0dbd5a87e0ace00c9610d2037ac22083a01f861d
PODFILE CHECKSUM: a938cb79d452854fa9f13c14ded5e356e38f0fc7

COCOAPODS: 1.16.2
Loading