Skip to content
This repository was archived by the owner on Oct 5, 2020. It is now read-only.

Commit 53b5d75

Browse files
committed
Use cocoapods/gradle
1 parent 3ee8344 commit 53b5d75

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

chirpsdk/android/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ rootProject.allprojects {
1818
repositories {
1919
google()
2020
jcenter()
21+
maven {
22+
url "https://maven.chirp.io/release"
23+
}
2124
}
2225
}
2326

@@ -41,6 +44,5 @@ android {
4144

4245
dependencies {
4346
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
44-
implementation "com.squareup.okhttp3:okhttp:3.12.0"
45-
implementation files("libs/chirp-connect-release.aar")
47+
implementation 'io.chirp:chirpsdk:3.6.0-beta'
4648
}

chirpsdk/example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,15 +286,13 @@
286286
inputPaths = (
287287
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
288288
"${PODS_ROOT}/../.symlinks/flutter/ios/Flutter.framework",
289-
"${BUILT_PRODUCTS_DIR}/chirpsdk/chirpsdk.framework",
290289
"${BUILT_PRODUCTS_DIR}/simple_permissions/simple_permissions.framework",
291290
);
292291
name = "[CP] Embed Pods Frameworks";
293292
outputFileListPaths = (
294293
);
295294
outputPaths = (
296295
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework",
297-
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/chirpsdk.framework",
298296
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/simple_permissions.framework",
299297
);
300298
runOnlyForDeploymentPostprocessing = 0;

chirpsdk/example/pubspec.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@ environment:
77

88
dependencies:
99
simple_permissions: ^0.1.9
10+
1011
flutter:
1112
sdk: flutter
1213

1314
cupertino_icons: ^0.1.2
1415

1516
dev_dependencies:
17+
simple_permissions: ^0.1.9
18+
1619
flutter_test:
1720
sdk: flutter
1821

chirpsdk/ios/chirpsdk.podspec

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,12 @@ A new flutter plugin project.
1212
s.license = { :file => '../LICENSE' }
1313
s.author = { 'Asio Ltd' => 'developers@chirp.io' }
1414
s.source = { :path => '.' }
15-
s.source_files = 'Classes/**/*'
15+
s.source_files = 'Classes/**/*'
1616
s.public_header_files = 'Classes/**/*.h'
17-
s.dependency 'Flutter'
17+
s.dependency 'Flutter'
18+
s.dependency 'ChirpSDK'
1819

20+
s.static_framework = true
1921
s.ios.deployment_target = '8.0'
20-
21-
s.preserve_paths = 'ChirpConnect.framework'
22-
s.xcconfig = { 'OTHER_LDFLAGS' => '-framework ChirpConnect' }
23-
s.vendored_frameworks = 'ChirpConnect.framework'
2422
end
2523

chirpsdk/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: chirpsdk
22
description: Send and receive data using sound
33
version: 0.0.1
4-
author: Asio Ltd
4+
author: Asio Ltd <developers@chirp.io>
55
homepage: https://developers.chirp.io
66

77
environment:

0 commit comments

Comments
 (0)