Skip to content

update examples #205

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from
Closed
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
14 changes: 13 additions & 1 deletion example/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Flutter",
"type": "dart",
"request": "launch",
"program": "lib/main.dart"
},
{
"name": "Dart",
"type": "dart",
"request": "launch",
"program": "bin/main.dart"
},
{
"name": "Flutter Desktop Attach",
"request": "attach",
"observatoryUri": "http://127.0.0.1:52878/UWW_6_X9Y74=/",
"type": "dart"
}
]
}
}
16 changes: 9 additions & 7 deletions example/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# flutter_plugin_example
# flutter_ParseServer_example
<img src="img/Screenshot_2019-06-23-09-12-09-69.png" width="240">
<img src="img/Screenshot_2019-06-23-09-12-24-18.png" width="240">
Demonstrates ParseServer sdk.
## 连接 docker server
[docker-compose-parse-server](https://github.com/unreal0/docker-compose-parse-server).

Demonstrates how to use the flutter_plugin plugin.

## Getting Started

For help getting started with Flutter, view our online
[documentation](https://flutter.io/).
## demo
* live parse demo
* data add/delete/change/find
8 changes: 4 additions & 4 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion 27
compileSdkVersion 28

lintOptions {
disable 'InvalidPackage'
Expand All @@ -25,7 +25,7 @@ android {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.flutterpluginexample"
minSdkVersion 16
targetSdkVersion 27
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Expand All @@ -46,6 +46,6 @@ flutter {

dependencies {
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
4 changes: 2 additions & 2 deletions example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
FlutterApplication and put your custom class here. -->
<application
android:name="io.flutter.app.FlutterApplication"
android:label="flutter_plugin_example"
android:icon="@mipmap/ic_launcher">
android:label="parse_sdk"
android:icon="@mipmap/parse">
<activity
android:name=".MainActivity"
android:launchMode="singleTop"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.android.tools.build:gradle:3.4.0'
}
}

Expand Down
2 changes: 2 additions & 0 deletions example/android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
2 changes: 1 addition & 1 deletion example/android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
Binary file added example/img/Screenshot_2019-06-23-09-12-09-69.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 7 additions & 5 deletions example/lib/domain/constants/application_constants.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const String keyApplicationName = '';
const String keyParseApplicationId = '';
const String keyParseMasterKey = '';
const String keyParseServerUrl = '';
const bool keyDebug = true;
const String keyApplicationName = 'Where';
const String keyParseApplicationId = 'myAppId';
const String keyParseMasterKey = '123456';
const String keyParseServerUrl = 'http://118.24.162.252/api';
const String keyParseLiveServerUrl = 'http://118.24.162.252:1337/api/';
// const String keyParseServerUrl = 'http://192.168.3.5:4000/parse';
// const String keyParseLiveServerUrl = 'ws://192.168.3.5:4000/parse';
Loading