Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
721c3918
Commit
721c3918
authored
Feb 12, 2016
by
Matt Perry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove gcm package from the repository.
I moved it to
https://github.com/mpcomplete/flutter_gcm
for now.
parent
279c6149
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
0 additions
and
103 deletions
+0
-103
flutter.yaml
examples/fitness/flutter.yaml
+0
-2
main.dart
examples/fitness/lib/main.dart
+0
-14
pubspec.yaml
examples/fitness/pubspec.yaml
+0
-2
.gitignore
packages/gcm/.gitignore
+0
-7
config.yaml
packages/gcm/lib/config.yaml
+0
-10
gcm.dart
packages/gcm/lib/gcm.dart
+0
-10
gcm.dart
packages/gcm/lib/src/gcm.dart
+0
-43
pubspec.yaml
packages/gcm/pubspec.yaml
+0
-15
No files found.
examples/fitness/flutter.yaml
View file @
721c3918
...
...
@@ -13,5 +13,3 @@ material-design-icons:
-
name
:
navigation/close
-
name
:
navigation/menu
-
name
:
navigation/more_vert
services
:
-
gcm
examples/fitness/lib/main.dart
View file @
721c3918
...
...
@@ -6,7 +6,6 @@ library fitness;
import
'package:playfair/playfair.dart'
as
playfair
;
import
'package:flutter/material.dart'
;
import
'package:gcm/gcm.dart'
as
gcm
;
import
'user_data.dart'
;
import
'date_utils.dart'
;
...
...
@@ -161,19 +160,6 @@ class FitnessAppState extends State<FitnessApp> {
}
}
initGcm
()
async
{
// Register for GCM messages using the senderId provided in the
// google-services.json we received when registering our app.
String
token
;
token
=
await
gcm
.
registerGcmService
(
"858790231562"
,
(
String
from
,
String
message
)
{
print
(
"onMessageReceived:
$from
;
$message
"
);
gcm
.
unsubscribeTopics
(
token
,
[
"global"
]);
});
gcm
.
subscribeTopics
(
token
,
[
"global"
]);
}
main
()
{
initGcm
();
runApp
(
new
FitnessApp
());
}
examples/fitness/pubspec.yaml
View file @
721c3918
...
...
@@ -5,5 +5,3 @@ dependencies:
path
:
../../packages/flutter
playfair
:
path
:
../../packages/playfair
gcm
:
path
:
../../packages/gcm
packages/gcm/.gitignore
deleted
100644 → 0
View file @
279c6149
.DS_Store
.idea
.packages
.pub/
build/
packages
pubspec.lock
packages/gcm/lib/config.yaml
deleted
100644 → 0
View file @
279c6149
services
:
-
name
:
gcm::GcmService
android-class
:
org.domokit.gcm.RegistrationIntentService$MojoService
jars
:
-
android-sdk:extras/google/google_play_services/libproject/google-play-services_lib/libs/google-play-services.jar
-
android-sdk:extras/android/support/v13/android-support-v13.jar
-
android-sdk:extras/android/support/v7/appcompat/libs/android-support-v7-appcompat.jar
-
android-sdk:extras/android/support/v7/mediarouter/libs/android-support-v7-mediarouter.jar
-
https://storage.googleapis.com/mojo_infra/flutter/7bce54b79ef9ee57999cc8e258d664a88723d56d/android-arm/gcm/gcm_lib.dex.jar
-
https://storage.googleapis.com/mojo_infra/flutter/7bce54b79ef9ee57999cc8e258d664a88723d56d/android-arm/gcm/interfaces_java.dex.jar
packages/gcm/lib/gcm.dart
deleted
100644 → 0
View file @
279c6149
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// Service exposed to Flutter apps that implements a subset of the GCM API.
///
/// This library will probably be moved into a separate package eventually.
library
gcm
;
export
'src/gcm.dart'
;
packages/gcm/lib/src/gcm.dart
deleted
100644 → 0
View file @
279c6149
// Copyright 2015, the Flutter authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import
'dart:async'
;
import
'package:flutter/services.dart'
;
import
'package:sky_services/gcm/gcm.mojom.dart'
;
GcmServiceProxy
_initGcmService
(
)
{
GcmServiceProxy
gcmService
=
new
GcmServiceProxy
.
unbound
();
shell
.
connectToService
(
null
,
gcmService
);
return
gcmService
;
}
final
GcmServiceProxy
_gcmService
=
_initGcmService
();
typedef
void
GcmListenerCallback
(
String
from
,
String
message
);
class
_GcmListenerImpl
implements
GcmListener
{
_GcmListenerImpl
(
this
.
callback
);
GcmListenerCallback
callback
;
void
onMessageReceived
(
String
from
,
String
message
)
{
callback
(
from
,
message
);
}
}
Future
<
String
>
registerGcmService
(
String
senderId
,
GcmListenerCallback
listenerCallback
)
async
{
GcmListenerStub
listener
=
new
GcmListenerStub
.
unbound
()
..
impl
=
new
_GcmListenerImpl
(
listenerCallback
);
GcmServiceRegisterResponseParams
result
=
await
_gcmService
.
ptr
.
register
(
senderId
,
listener
);
return
result
.
token
;
}
void
subscribeTopics
(
String
token
,
List
<
String
>
topics
)
{
_gcmService
.
ptr
.
subscribeTopics
(
token
,
topics
);
}
void
unsubscribeTopics
(
String
token
,
List
<
String
>
topics
)
{
_gcmService
.
ptr
.
unsubscribeTopics
(
token
,
topics
);
}
packages/gcm/pubspec.yaml
deleted
100644 → 0
View file @
279c6149
name
:
gcm
description
:
Bindings for Google Cloud Messaging API
version
:
0.0.1
author
:
Flutter Authors <flutter-dev@googlegroups.com>
homepage
:
https://github.com/flutter/flutter/tree/master/packages/playfair
dependencies
:
flutter
:
path
:
../flutter
dev_dependencies
:
test
:
0.12.6+1
environment
:
sdk
:
'
>=1.12.0
<2.0.0'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment