Skip to content

Commit

Permalink
android cleanup #1
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbark committed Mar 19, 2021
1 parent 8670046 commit 7f6aac2
Show file tree
Hide file tree
Showing 19 changed files with 38 additions and 51 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
.pub/

build/
/.idea/
/stripe_android/android/.gradle/
2 changes: 1 addition & 1 deletion stripe/example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ android {

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.example"
applicationId "com.flutter.stripe.example"
minSdkVersion 16
targetSdkVersion 30
versionCode flutterVersionCode.toInteger()
Expand Down
2 changes: 1 addition & 1 deletion stripe/example/android/app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.example">
package="com.flutter.stripe.example">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
Expand Down
2 changes: 1 addition & 1 deletion stripe/example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.example">
package="com.flutter.stripe.example">
<application
android:label="example"
android:icon="@mipmap/ic_launcher">
Expand Down
2 changes: 1 addition & 1 deletion stripe/example/android/app/src/profile/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.example">
package="com.flutter.stripe.example">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
Expand Down
2 changes: 2 additions & 0 deletions stripe/example/macos/Flutter/GeneratedPluginRegistrant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// Generated file. Do not edit.
//

// clang-format off

import FlutterMacOS
import Foundation

Expand Down
32 changes: 9 additions & 23 deletions stripe/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,7 @@ packages:
name: archive
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.13"
args:
dependency: transitive
description:
name: args
url: "https://pub.dartlang.org"
source: hosted
version: "1.6.0"
version: "3.1.2"
async:
dependency: transitive
description:
Expand Down Expand Up @@ -57,20 +50,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.15.0"
convert:
dependency: transitive
description:
name: convert
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.1"
crypto:
dependency: transitive
description:
name: crypto
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.5"
version: "3.0.0"
cupertino_icons:
dependency: "direct main"
description:
Expand Down Expand Up @@ -98,7 +84,7 @@ packages:
name: file
url: "https://pub.dartlang.org"
source: hosted
version: "6.0.0"
version: "6.1.0"
flutter:
dependency: "direct main"
description: flutter
Expand Down Expand Up @@ -137,7 +123,7 @@ packages:
dependency: "direct dev"
description: flutter
source: sdk
version: "0.9.2+2"
version: "0.0.0"
json_annotation:
dependency: transitive
description:
Expand Down Expand Up @@ -193,7 +179,7 @@ packages:
name: process
url: "https://pub.dartlang.org"
source: hosted
version: "4.0.0"
version: "4.1.0"
sky_engine:
dependency: transitive
description: flutter
Expand All @@ -205,7 +191,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0"
version: "1.8.1"
stack_trace:
dependency: transitive
description:
Expand Down Expand Up @@ -261,7 +247,7 @@ packages:
name: sync_http
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.0"
version: "0.3.0"
term_glyph:
dependency: transitive
description:
Expand Down Expand Up @@ -296,14 +282,14 @@ packages:
name: vm_service
url: "https://pub.dartlang.org"
source: hosted
version: "5.5.0"
version: "6.0.1-nullsafety.1"
webdriver:
dependency: transitive
description:
name: webdriver
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.2"
version: "3.0.0"
sdks:
dart: ">=2.12.0-224.0.dev <3.0.0"
flutter: ">=1.20.0"
2 changes: 1 addition & 1 deletion stripe/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0"
version: "1.8.1"
stack_trace:
dependency: transitive
description:
Expand Down
2 changes: 2 additions & 0 deletions stripe_android/android/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
local.properties
.idea
8 changes: 8 additions & 0 deletions stripe_android/android/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion stripe_android/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
group 'com.example.stripe_android'
group 'com.flutter.stripe'
version '1.0-SNAPSHOT'

buildscript {
Expand Down
4 changes: 2 additions & 2 deletions stripe_android/android/local.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
sdk.dir=/Users/remonhelmond/Library/Android/sdk
flutter.sdk=/Users/remonhelmond/flutter/flutter
sdk.dir=/Users/boni/Library/Android/sdk
flutter.sdk=/Users/boni/Development/Flutter/flutter
2 changes: 1 addition & 1 deletion stripe_android/android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.stripe_android">
package="com.flutter.stripe">
</manifest>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.stripe_android
package com.flutter.stripe

import androidx.annotation.NonNull
import com.reactnativestripesdk.StripeSdkModule
Expand Down
15 changes: 1 addition & 14 deletions stripe_android/lib/stripe_android.dart
Original file line number Diff line number Diff line change
@@ -1,14 +1 @@

import 'dart:async';

import 'package:flutter/services.dart';

class StripeAndroid {
static const MethodChannel _channel =
const MethodChannel('stripe_android');

static Future<String> get platformVersion async {
final String version = await _channel.invokeMethod('getPlatformVersion');
return version;
}
}
// no-op
2 changes: 1 addition & 1 deletion stripe_android/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0"
version: "1.8.1"
stack_trace:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion stripe_android/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ flutter:
plugin:
platforms:
android:
package: com.example.stripe_android
package: com.flutter.stripe
pluginClass: StripeAndroidPlugin

# To add assets to your plugin package, add an assets section, like this:
Expand Down
2 changes: 1 addition & 1 deletion stripe_ios/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0"
version: "1.8.1"
stack_trace:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion stripe_web/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0"
version: "1.8.1"
stack_trace:
dependency: transitive
description:
Expand Down

0 comments on commit 7f6aac2

Please sign in to comment.