Skip to content

Commit

Permalink
feature(ios): channelName support update sdk native version of androi…
Browse files Browse the repository at this point in the history
…d and ios
  • Loading branch information
worotyns committed Jun 13, 2023
1 parent 30dd502 commit 6db3d8b
Show file tree
Hide file tree
Showing 13 changed files with 62 additions and 23 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,9 @@ Now we use:
Initial release of library

## 0.0.4
Initial release of library with Readme instructions
Initial release of library with Readme instructions

## 0.0.5
Now we use:
- 0.0.31 for Android
- 0.0.9 for iOS.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class NotificationService: PpgCoreNotificationServiceExtension {
target 'NSE' do
use_frameworks!
use_modular_headers!
pod 'PpgCoreSDK', '~> 0.0.8'
pod 'PpgCoreSDK', '~> 0.0.9'
end
```
7. In `Info.plist` add folowing to enable deep linking in flutter
Expand Down Expand Up @@ -311,7 +311,7 @@ Add minSdkVersion in defaultConfig for android:
// build.gradle (:app)
dependencies {
...
implementation "com.github.ppgco:ppg-core-android-sdk:0.0.30"
implementation "com.github.ppgco:ppg-core-android-sdk:0.0.31"
implementation 'com.google.firebase:firebase-messaging-ktx:23.1.2'
implementation platform('com.google.firebase:firebase-bom:31.2.3')
}
Expand All @@ -327,7 +327,7 @@ apply plugin: 'com.google.gms.google-services'
```groovy
dependencies {
...
implementation 'com.github.ppgco:ppg-core-android-sdk:0.0.30'
implementation 'com.github.ppgco:ppg-core-android-sdk:0.0.31'
implementation 'com.huawei.agconnect:agconnect-core:1.7.2.300'
implementation 'com.huawei.hms:push:6.7.0.300'
}
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ android {
}

dependencies {
implementation 'com.github.ppgco:ppg-core-android-sdk:0.0.30'
implementation 'com.github.ppgco:ppg-core-android-sdk:0.0.31'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.firebase:firebase-messaging-ktx:23.1.2'
implementation platform('com.google.firebase:firebase-bom:31.2.3')
Expand Down
2 changes: 1 addition & 1 deletion example/ios/Flutter/AppFrameworkInfo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>11.0</string>
<string>14.0</string>
</dict>
</plist>
2 changes: 0 additions & 2 deletions example/ios/NSE/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PpgCoreSDKEndpoint</key>
<string>https://ppg-core.master1.qappg.co/v1</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionPointIdentifier</key>
Expand Down
6 changes: 3 additions & 3 deletions example/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Uncomment this line to define a global platform for your project
# platform :ios, '11.0'
platform :ios, '14.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
Expand Down Expand Up @@ -32,13 +32,13 @@ target 'Runner' do
use_frameworks!
use_modular_headers!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
pod 'PpgCoreSDK', '~> 0.0.8'
pod 'PpgCoreSDK', '~> 0.0.9'
end

target 'NSE' do
platform :ios, '14.0'
use_frameworks!
pod 'PpgCoreSDK', '~> 0.0.8'
pod 'PpgCoreSDK', '~> 0.0.9'
end

post_install do |installer|
Expand Down
12 changes: 6 additions & 6 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
PODS:
- Flutter (1.0.0)
- ppg_core (0.0.1):
- ppg_core (0.0.5):
- Flutter
- PpgCoreSDK
- PpgCoreSDK (0.0.8)
- PpgCoreSDK (0.0.9)

DEPENDENCIES:
- Flutter (from `Flutter`)
- ppg_core (from `.symlinks/plugins/ppg_core/ios`)
- PpgCoreSDK (~> 0.0.8)
- PpgCoreSDK (~> 0.0.9)

SPEC REPOS:
trunk:
Expand All @@ -22,9 +22,9 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
ppg_core: f294af98ca038ecd3e054c429cc7a49b944174d5
PpgCoreSDK: 26c4d8f23fe7b8ab9e7476f74299c69c44e12e9d
ppg_core: da70a4ee9033090b03bb4e1701570885217f9887
PpgCoreSDK: a19d177da5b9df3281f5d86b16b10c57c7183f04

PODFILE CHECKSUM: 7b120daf2633dbc0b656910d0c56ac250e6d4b18
PODFILE CHECKSUM: 1291197bf36a59ad881d7f79e8d59e0512234022

COCOAPODS: 1.12.1
6 changes: 6 additions & 0 deletions example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
37B8C710CF787FAFEB1F151E /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 46EF4E9F2A15246C00C5054A /* Pods_Runner.framework */; };
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
462BCC5F2A38ED3C0023FDFC /* PpgCore.plist in Resources */ = {isa = PBXBuildFile; fileRef = 462BCC5E2A38ED3C0023FDFC /* PpgCore.plist */; };
462BCC602A38ED3C0023FDFC /* PpgCore.plist in Resources */ = {isa = PBXBuildFile; fileRef = 462BCC5E2A38ED3C0023FDFC /* PpgCore.plist */; };
4641D1B02A161CC800F39972 /* NotificationService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4641D1AF2A161CC800F39972 /* NotificationService.swift */; };
4641D1B42A161CC800F39972 /* NSE.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 4641D1AD2A161CC800F39972 /* NSE.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
4641D1C52A1622EA00F39972 /* Pods_NSE.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4641D1B92A161D2400F39972 /* Pods_NSE.framework */; };
Expand Down Expand Up @@ -71,6 +73,7 @@
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
46246C2D2A0BE14E00DFF9AA /* Runner.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Runner.entitlements; sourceTree = "<group>"; };
462BCC5E2A38ED3C0023FDFC /* PpgCore.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = PpgCore.plist; sourceTree = "<group>"; };
4641D1AD2A161CC800F39972 /* NSE.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = NSE.appex; sourceTree = BUILT_PRODUCTS_DIR; };
4641D1AF2A161CC800F39972 /* NotificationService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotificationService.swift; sourceTree = "<group>"; };
4641D1B12A161CC800F39972 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
Expand Down Expand Up @@ -188,6 +191,7 @@
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
462BCC5E2A38ED3C0023FDFC /* PpgCore.plist */,
);
path = Runner;
sourceTree = "<group>";
Expand Down Expand Up @@ -281,13 +285,15 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
462BCC602A38ED3C0023FDFC /* PpgCore.plist in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
97C146EC1CF9000F007C117D /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
462BCC5F2A38ED3C0023FDFC /* PpgCore.plist in Resources */,
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
Expand Down
2 changes: 0 additions & 2 deletions example/ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PpgCoreSDKEndpoint</key>
<string>https://ppg-core.master1.qappg.co/v1</string>
<key>FlutterDeepLinkingEnabled</key>
<true/>
<key>CFBundleURLTypes</key>
Expand Down
32 changes: 32 additions & 0 deletions example/ios/Runner/PpgCore.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PpgCoreSDKEndpoint</key>
<string>https://ppg-core.master1.qappg.co/v1</string>
<key>PpgCoreChannels</key>
<array>
<dict>
<key>name</key>
<string>testing_channel</string>
<key>sound</key>
<string>Submarine.aiff</string>
<key>actions</key>
<array>
<string>Reply</string>
</array>
</dict>
<dict>
<key>name</key>
<string>testing_channel_nowy</string>
<key>sound</key>
<string>default</string>
<key>actions</key>
<array>
<string>Open</string>
<string>Show more</string>
</array>
</dict>
</array>
</dict>
</plist>
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.0.4"
version: "0.0.5"
sky_engine:
dependency: transitive
description: flutter
Expand Down
4 changes: 2 additions & 2 deletions ios/ppg_core.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
Pod::Spec.new do |s|
s.name = 'ppg_core'
s.version = '0.0.4'
s.version = '0.0.5'
s.summary = 'PushPushGo Core SDK'
s.description = <<-DESC
PushPushGo Core SDK for Flutter (Dart)
Expand All @@ -17,7 +17,7 @@ Pod::Spec.new do |s|
s.source_files = 'Classes/**/*'
s.dependency 'Flutter'
s.dependency 'PpgCoreSDK'
s.platform = :ios, '11.0'
s.platform = :ios, '14.0'

# Flutter.framework does not contain a i386 slice.
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: ppg_core
description: PushPushGo Core SDK for Flutter (Dart)
version: 0.0.4
version: 0.0.5
repository: https://github.com/ppgco/ppg-core-flutter-sdk

environment:
Expand Down

0 comments on commit 6db3d8b

Please sign in to comment.