Skip to content

Commit

Permalink
Merge pull request #45 from AS-Devs/pigeon-rewrite
Browse files Browse the repository at this point in the history
Pigeon Rewrite
  • Loading branch information
AyonAB authored Nov 7, 2022
2 parents c14ba5c + 7c17003 commit 158cfe1
Show file tree
Hide file tree
Showing 70 changed files with 2,394 additions and 1,154 deletions.
2 changes: 1 addition & 1 deletion .metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# This file should be version controlled and should not be manually edited.

version:
revision: bbfbf1770cca2da7c82e887e4e4af910034800b6
revision: 18116933e77adc82f80866c928266a5b4f1ed645
channel: stable

project_type: plugin
33 changes: 0 additions & 33 deletions .vscode/launch.json

This file was deleted.

39 changes: 38 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,41 @@

## 0.1.2

* IsConnected Method Added
* IsConnected Method Added

## 0.2.0-dev.1

* Rewrote the plugin using pigeon
* **Breaking Changes**:
* `invokeMethod` now take only strings as arguments instead of dynamic.
* `invokeMethod` now returns only string as result.
* `hubCallback` now also returns string as message instead of dynamic.

## 0.2.0-dev.2

* Fix for invokeMethod calls having no return value.

## 0.2.0-dev.3

* Updated signalr for iOS.
* Transport fallback properly added for iOS.

## 0.2.0-dev.4

* App bundle build issue fix.

## 0.2.0-dev.5

* Removed unnecessary platform exceptions.
* Updated dependencies.

## 0.2.0

* Rewrote the plugin using pigeon.
* Removed unnecessary platform exceptions.
* Updated signalr for iOS.
* Updated all dependencies to the latest.
* **Breaking Changes**:
* `invokeMethod` now take only strings as arguments instead of dynamic.
* `invokeMethod` now returns only string as result.
* `hubCallback` now also returns string as message instead of dynamic.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,4 @@ R8 may strip away some SignalR classes for the Android in Release Builds. Add th
For more info check example.

Any issue or PR is always welcome.

4 changes: 4 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
include: package:flutter_lints/flutter.yaml

# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
1 change: 0 additions & 1 deletion android/.idea/.name

This file was deleted.

Binary file removed android/.idea/caches/build_file_checksums.ser
Binary file not shown.
134 changes: 0 additions & 134 deletions android/.idea/codeStyles/Project.xml

This file was deleted.

19 changes: 0 additions & 19 deletions android/.idea/gradle.xml

This file was deleted.

25 changes: 0 additions & 25 deletions android/.idea/jarRepositories.xml

This file was deleted.

9 changes: 0 additions & 9 deletions android/.idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions android/.idea/modules.xml

This file was deleted.

12 changes: 0 additions & 12 deletions android/.idea/runConfigurations.xml

This file was deleted.

29 changes: 18 additions & 11 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,52 @@ group 'dev.asdevs.signalr_flutter'
version '1.0-SNAPSHOT'

buildscript {
ext.kotlin_version = '1.4.21'
ext.kotlin_version = '1.7.20'
repositories {
google()
jcenter()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:4.1.2'
classpath 'com.android.tools.build:gradle:7.3.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

rootProject.allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

android {
compileSdkVersion 30
compileSdkVersion 33

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

kotlinOptions {
jvmTarget = '1.8'
}

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}

defaultConfig {
minSdkVersion 16
}
lintOptions {
disable 'InvalidPackage'
}
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.google.code.gson:gson:2.8.6'
compile files('libs/signalr-client-sdk.jar')
compile files('libs/signalr-client-sdk-android.jar')
implementation 'com.google.code.gson:gson:2.8.9'
implementation files('libraries/signalr-client-sdk.jar')
implementation files('libraries/signalr-client-sdk-android.jar')
}
3 changes: 1 addition & 2 deletions android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#Sun Aug 23 12:49:17 IST 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
File renamed without changes.
Binary file not shown.
Loading

0 comments on commit 158cfe1

Please sign in to comment.