Skip to content

Commit

Permalink
new fix to no pod
Browse files Browse the repository at this point in the history
  • Loading branch information
Mastersam07 committed Oct 27, 2020
1 parent 0e70556 commit 4e6d390
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 15 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

A livechat widget for your mobile application.

## 1.0.1+3

* Fixed No podspec found on iOS

## 1.0.1+2

## 1.0.1+1

* Fixed issue with plugin name

## 1.0.1

* Fixed conflict with pods on ios
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![CI](https://github.com/mastersam07/livechat/workflows/CI/badge.svg?style=flat-square)
[![license](https://img.shields.io/badge/license-MIT-success.svg?style=flat-square)](https://github.com/Mastersam07/livechat/blob/master/LICENSE)
[![pub package](https://img.shields.io/pub/v/livechat.svg?color=success&style=flat-square)](https://pub.dartlang.org/packages/livechat)
[![pub package](https://img.shields.io/pub/v/livechatt.svg?color=success&style=flat-square)](https://pub.dartlang.org/packages/livechatt)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-success.svg?style=flat-square)](https://github.com/Mastersam07/livechat/pulls)
![GitHub contributors](https://img.shields.io/github/contributors/mastersam07/livechat?color=success&style=flat-square)
![GitHub last commit](https://img.shields.io/github/last-commit/mastersam07/livechat?style=flat-square)
Expand All @@ -13,13 +13,13 @@ A livechat package for embedding mobile chat window in your mobile application.

```yaml
dependencies:
livechat: "^1.0.1"
livechatt: "^1.0.1+3"
```
### ⚡️ Import
```dart
import 'package:livechatinc/livechatinc.dart';
import 'package:livechatt/livechatt.dart';
```

## 🎮 How To Use
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBindin

private void onAttachedToEngine(Context applicationContext, BinaryMessenger messenger) {
this.context = applicationContext;
channel = new MethodChannel(messenger, "livechatinc");
channel = new MethodChannel(messenger, "livechatt");
channel.setMethodCallHandler(this);
}

Expand Down
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
import 'dart:async';

import 'package:flutter/services.dart';
import 'package:livechatinc/livechatinc.dart';
import 'package:livechatt/livechatt.dart';

void main() {
runApp(MyApp());
Expand Down
4 changes: 2 additions & 2 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.12"
livechatinc:
livechatt:
dependency: "direct main"
description:
path: ".."
relative: true
source: path
version: "1.0.1"
version: "1.0.1+3"
matcher:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies:
flutter:
sdk: flutter

livechatinc:
livechatt:
# When depending on this package from a real application you should use:
# livechat: ^x.y.z
# See https://dart.dev/tools/pub/dependencies#version-constraints
Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/SwiftLivechatPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import LiveChat

public class SwiftLivechatPlugin: NSObject, FlutterPlugin {
public static func register(with registrar: FlutterPluginRegistrar) {
let channel = FlutterMethodChannel(name: "livechatinc", binaryMessenger: registrar.messenger())
let channel = FlutterMethodChannel(name: "livechatt", binaryMessenger: registrar.messenger())
let instance = SwiftLivechatPlugin()
registrar.addMethodCallDelegate(instance, channel: channel)
}
Expand Down
4 changes: 2 additions & 2 deletions ios/livechatinc.podspec → ios/livechatt.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# Run `pod lib lint livechat.podspec' to validate before publishing.
#
Pod::Spec.new do |s|
s.name = 'livechatinc'
s.version = '1.0.1'
s.name = 'livechatt'
s.version = '1.0.1+3'
s.summary = 'A livechat package for embedding mobile chat window in your mobile application.'
s.description = <<-DESC
A livechat package for embedding mobile chat window in your mobile application.
Expand Down
2 changes: 1 addition & 1 deletion lib/livechatinc.dart → lib/livechatt.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'dart:async';
import 'package:flutter/services.dart';

class Livechat {
static const MethodChannel _channel = const MethodChannel('livechatinc');
static const MethodChannel _channel = const MethodChannel('livechatt');

/// Get platform version
static Future<String> get platformVersion async {
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: livechatinc
name: livechatt
description: A livechat package for embedding mobile chat window in your mobile application.
version: 1.0.1
version: 1.0.1+3
homepage: https://github.com/Mastersam07/livechat
repository: https://github.com/Mastersam07/livechat
issue_tracker: https://github.com/Mastersam07/livechat/issues
Expand Down
2 changes: 1 addition & 1 deletion test/livechatinc_test.dart → test/livechatt.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:livechatinc/livechatinc.dart';
import 'package:livechatt/livechatt.dart';

void main() {
const MethodChannel channel = MethodChannel('livechatinc');
Expand Down

0 comments on commit 4e6d390

Please sign in to comment.