Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #6 from K9i-0/develop
Browse files Browse the repository at this point in the history
update iOS sdk version to 5.0.13
  • Loading branch information
K9i-0 authored Apr 13, 2022
2 parents 375c65d + e776939 commit 64e8e78
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 15 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@
## 0.2.1

* Add Dartdoc
* Change state to nullable
* Change state to nullable

## 0.2.2

* Update iOS sdk version to 5.0.13
10 changes: 5 additions & 5 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
PODS:
- Flutter (1.0.0)
- flutter_tiktok_sdk (0.2.1):
- flutter_tiktok_sdk (0.2.2):
- Flutter
- TikTokOpenSDK (~> 5.0.0)
- TikTokOpenSDK (5.0.0)
- TikTokOpenSDK (~> 5.0.13)
- TikTokOpenSDK (5.0.13)

DEPENDENCIES:
- Flutter (from `Flutter`)
Expand All @@ -21,8 +21,8 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
flutter_tiktok_sdk: 14ee850ad4788fcd402bd989574b301ea51e5a42
TikTokOpenSDK: a63564ea4dc1fabc56352bf7aa9ddc386cdb63b6
flutter_tiktok_sdk: 09dac36183accc563b4f7556b2f7fb04220dfb34
TikTokOpenSDK: b64f271e359120b21ec583aad113136383178798

PODFILE CHECKSUM: e5b9a4361be5e5f54e75e72958a8ea77e00d9a12

Expand Down
21 changes: 19 additions & 2 deletions example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objectVersion = 51;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -113,7 +113,6 @@
4E5F150464A59D42AB5A7095 /* Pods-Runner.release.xcconfig */,
8170B89EFA7CC118842D27F6 /* Pods-Runner.profile.xcconfig */,
);
name = Pods;
path = Pods;
sourceTree = "<group>";
};
Expand All @@ -139,6 +138,7 @@
97C146EC1CF9000F007C117D /* Resources */,
9705A1C41CF9048500538489 /* Embed Frameworks */,
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
5F307C2236ECF4AB4B65FCF5 /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
Expand Down Expand Up @@ -233,6 +233,23 @@
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
};
5F307C2236ECF4AB4B65FCF5 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
9740EEB61CF901F6004384FC /* Run Script */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.2.1"
version: "0.2.2"
lints:
dependency: transitive
description:
Expand Down
4 changes: 2 additions & 2 deletions ios/flutter_tiktok_sdk.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
Pod::Spec.new do |s|
s.name = 'flutter_tiktok_sdk'
s.version = '0.2.1'
s.version = '0.2.2'
s.summary = 'A new flutter plugin project.'
s.description = <<-DESC
A new flutter plugin project.
Expand All @@ -16,7 +16,7 @@ A new flutter plugin project.
s.source_files = 'Classes/**/*'
s.dependency 'Flutter'

s.dependency 'TikTokOpenSDK', '~> 5.0.0'
s.dependency 'TikTokOpenSDK', '~> 5.0.13'
s.platform = :ios, '9.3'
s.static_framework = true

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: flutter_tiktok_sdk
description: A Flutter plugin that lets developers access TikTok's native SDKs in Flutter apps with Dart
version: 0.2.1
version: 0.2.2
homepage: https://twitter.com/K9i_apps
repository: https://github.com/K9i-0/flutter_tiktok_sdk

Expand Down
26 changes: 23 additions & 3 deletions test/flutter_tiktok_sdk_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,37 @@ void main() {

TestWidgetsFlutterBinding.ensureInitialized();

const dummyTikTokLoginResult = {
"authCode": "authCode",
"grantedPermissions":
"user.info.basic,share.sound.create,video.list,video.upload",
};

setUp(() {
channel.setMockMethodCallHandler((MethodCall methodCall) async {
return '42';
switch (methodCall.method) {
case 'setup':
return null;
case 'login':
return dummyTikTokLoginResult;
}
});
});

tearDown(() {
channel.setMockMethodCallHandler(null);
});

test('getPlatformVersion', () async {
// expect(await TikTokSDK.platformVersion, '42');
test('setup', () async {
await TikTokSDK.instance.setup(clientKey: 'clientKey');
});

test('login', () async {
final result = await TikTokSDK.instance
.login(permissions: TikTokPermissionType.values.toSet());
expect(result.status, TikTokLoginStatus.success);
expect(result.state, null);
expect(result.authCode, 'authCode');
expect(result.grantedPermissions, TikTokPermissionType.values.toSet());
});
}

0 comments on commit 64e8e78

Please sign in to comment.