Skip to content

Commit 5c57486

Browse files
author
Николай Капустин
committed
Merge branch 'develop' into 'master'
New release 2.0.0 See merge request frontend/ios-sdk!31
2 parents 34b6a0c + 231cc15 commit 5c57486

52 files changed

Lines changed: 1301 additions & 400 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
build:
10-
runs-on: macOS-11
10+
runs-on: macOS-latest
1111
steps:
1212
- uses: actions/checkout@v1
1313
- name: Install Cocoapods
@@ -17,6 +17,6 @@ jobs:
1717
export LIB_VERSION=$(git describe --tags `git rev-list --tags --max-count=1`)
1818
set -eo pipefail
1919
pod lib lint --allow-warnings
20-
pod trunk push OgonRuSDK.podspec --allow-warnings
20+
pod trunk push GPBonusSDK.podspec --allow-warnings
2121
env:
2222
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}

.gitignore

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,27 @@ derived_data
33
.idea
44

55
# CocoaPods
6-
Pods
6+
Pods/
77

88
.DS_Store
9+
10+
.DS_Store
11+
.vscode/
12+
13+
build/
14+
*.ipa
15+
*.app.dSym.zip
16+
*.xcarchive
17+
18+
*.log
19+
20+
*.xcworkspace
21+
*.xcworkspace/*
22+
*.xcuserstate
23+
24+
.swiftpm/config/registries.json
25+
.swiftpm/xcode/xcuserdata
26+
.swiftpm/xcode/package.xcworkspace
27+
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
28+
29+
.netrc

GPBonusSDK.podspec

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Pod::Spec.new do |spec|
2+
spec.name = "GPBonusSDK"
3+
spec.version = ENV['LIB_VERSION'] || "2.0.0"
4+
spec.summary = "GazpromBonus widget integration lib"
5+
spec.homepage = "https://github.com/SetPartnerstv/ios-sdk"
6+
spec.license = { :type => "MIT", :file => "LICENSE" }
7+
spec.author = "SetPartnerstv"
8+
spec.platform = :ios, "11.0"
9+
spec.source = { :git => "https://github.com/SetPartnerstv/ios-sdk.git", :tag => "#{spec.version}" }
10+
spec.source_files = "sdk/**/*.{swift,h,m}"
11+
spec.requires_arc = true
12+
spec.swift_version = "5.0"
13+
spec.dependency "SwiftProtobuf", "~> 1.14.0"
14+
spec.frameworks = ["UIKit", "WebKit"]
15+
end

OgonRuSDK.podspec

Lines changed: 0 additions & 15 deletions
This file was deleted.

Package.resolved

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// swift-tools-version: 5.8
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "GPBonusSDK",
8+
platforms: [.iOS(.v12)],
9+
products: [
10+
// Products define the executables and libraries a package produces, and make them visible to other packages.
11+
.library(
12+
name: "GPBonusSDK",
13+
targets: ["GPBonusSDK"]),
14+
],
15+
dependencies: [
16+
// Dependencies declare other packages that this package depends on.
17+
.package(url: "https://github.com/apple/swift-protobuf.git", from: "1.6.0")
18+
],
19+
targets: [
20+
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
21+
// Targets can depend on other targets in this package, and on products in packages this package depends on.
22+
.target(
23+
name: "GPBonusSDK",
24+
dependencies: [.product(name: "SwiftProtobuf", package: "swift-protobuf")],
25+
path: "sdk/"
26+
//exclude:["Podfile", "Podfile.lock"]
27+
)
28+
]
29+
)

Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment the next line to define a global platform for your project
2-
platform :ios, '11.0'
2+
platform :ios, '12.0'
33

44
target 'sdk' do
55
# Comment the next line if you don't want to use dynamic frameworks

Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ SPEC CHECKSUMS:
1313

1414
PODFILE CHECKSUM: 83673be9a8bf482e1b93951c70e677a0e1acfb8e
1515

16-
COCOAPODS: 1.11.2
16+
COCOAPODS: 1.12.1

README.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Описание проекта
22

3-
Библиотека интеграции виджета с WebView для использования в приложениях партнеров и собственном приложении "Огонь".
3+
Библиотека интеграции виджета с WebView для использования в приложениях партнеров и собственном приложении "Газпром Бонус".
44

55

66
## Установка зависимостей
@@ -10,12 +10,5 @@
1010
* установить зависимости из CocoaPods: `pod install`
1111

1212

13-
## Сборка
14-
15-
Universal build:
16-
17-
```sh
18-
sh build.sh
19-
```
20-
21-
Артефакты сборки лежат в папке `/build/universal`
13+
## Cocoapods
14+
Репозиторий синхронизуется с [GitHub](https://github.com/SetPartnerstv/ios-sdk) и публикуется в Cocoapods, название пакета `GPBonusSDK`.

build.sh

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)