Skip to content
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

Rename Plugin to Fix Missing Header and Linker Errors #21 & #42 #91

Merged
merged 2 commits into from
May 30, 2019
Merged
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: 1 addition & 2 deletions ios/onesignal.podspec → ios/onesignalflutter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'onesignal'
s.name = 'onesignalflutter'
s.version = '1.0.5'
s.summary = 'The OneSignal Flutter SDK'
s.description = 'Allows you to easily add OneSignal to your flutter projects, to make sending and handling push notifications easy'
Expand All @@ -17,4 +17,3 @@ Pod::Spec.new do |s|
s.ios.deployment_target = '8.0'
s.static_framework = true
end

12 changes: 6 additions & 6 deletions lib/onesignal.dart → lib/onesignalflutter.dart
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import 'dart:async';
import 'package:flutter/services.dart';
import 'package:onesignal/src/permission.dart';
import 'package:onesignal/src/subscription.dart';
import 'package:onesignal/src/defines.dart';
import 'package:onesignal/src/utils.dart';
import 'package:onesignal/src/notification.dart';
import 'package:onesignal/src/create_notification.dart';
import 'package:onesignalflutter/src/permission.dart';
import 'package:onesignalflutter/src/subscription.dart';
import 'package:onesignalflutter/src/defines.dart';
import 'package:onesignalflutter/src/utils.dart';
import 'package:onesignalflutter/src/notification.dart';
import 'package:onesignalflutter/src/create_notification.dart';

export 'src/notification.dart';
export 'src/subscription.dart';
Expand Down
6 changes: 3 additions & 3 deletions lib/src/create_notification.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:onesignal/src/utils.dart';
import 'package:onesignalflutter/src/utils.dart';
import 'package:flutter/foundation.dart';
import 'package:onesignal/src/notification.dart';
import 'package:onesignal/onesignal.dart';
import 'package:onesignalflutter/src/notification.dart';
import 'package:onesignalflutter/onesignalflutter.dart';

/// The parameters & format to create push notifications is
/// so different from receiving notifications that we represent
Expand Down
4 changes: 2 additions & 2 deletions lib/src/notification.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:onesignal/src/defines.dart';
import 'package:onesignal/src/utils.dart';
import 'package:onesignalflutter/src/defines.dart';
import 'package:onesignalflutter/src/utils.dart';
import 'package:flutter/foundation.dart';
import 'dart:convert';

Expand Down
6 changes: 3 additions & 3 deletions lib/src/permission.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:onesignal/src/subscription.dart';
import 'package:onesignal/src/defines.dart';
import 'package:onesignal/src/utils.dart';
import 'package:onesignalflutter/src/subscription.dart';
import 'package:onesignalflutter/src/defines.dart';
import 'package:onesignalflutter/src/utils.dart';

class OSPermissionState extends JSONStringRepresentable {
bool hasPrompted; // iOS only
Expand Down
4 changes: 2 additions & 2 deletions lib/src/subscription.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import 'package:onesignal/src/utils.dart';
import 'package:onesignalflutter/src/utils.dart';

/// Represents the current user's subscription state with OneSignal
class OSSubscriptionState extends JSONStringRepresentable {
/// Indicates if you have ever called setSubscription(false) to
/// programmatically disable notifications for this user
bool userSubscriptionSetting;

/// A boolean paramerer that indicates if the user
/// A boolean parameter that indicates if the user
/// is subscribed to your app with OneSignal
/// This is only true if the `userId`, `pushToken`, and
/// `userSubscriptionSetting` parameters are defined/true.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/utils.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:onesignal/src/defines.dart';
import 'package:onesignalflutter/src/defines.dart';
import 'dart:convert';

// produces a string like this: 2018-07-23T17:56:30.951030 UTC-7:00
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: onesignal
name: onesignalflutter
description: OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your flutter app with OneSignal
version: 1.1.0
author: Brad Hesse <[email protected]>, Josh Kasten <[email protected]>
Expand All @@ -20,4 +20,4 @@ dev_dependencies:

environment:
sdk: ">=2.0.0-dev.28.0 <3.0.0"
flutter: ">=0.1.4 <2.0.0"
flutter: ">=0.1.4 <2.0.0"