version update script

This commit is contained in:
pkurchatov
2022-09-14 15:07:27 +03:00
parent b09005be6d
commit aa41c4925d
6 changed files with 33 additions and 25 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
MARKETING_VERSION = 1.0
#include "Version.xcconfig"
CURRENT_PROJECT_VERSION = 1
DEVELOPMENT_TEAM = CXV565V7MX
@@ -0,0 +1 @@
MARKETING_VERSION = 7.0.0
+1 -1
View File
@@ -1,3 +1,3 @@
public enum DivKitInfo {
public static let version = "2.3.0"
public static let version = "7.0.0"
}
@@ -1,28 +1,30 @@
import SwiftUI
struct RadioButtonsView: View {
let options: [String]
@Binding var selected: String
var body: some View {
VStack{
VStack {
ForEach(options, id: \.self) { option in
Button(action: {
selected = option
}) {
HStack{
Button(action: { selected = option }) {
HStack {
Text(option)
.font(ThemeFont.text)
.foregroundColor(Color(UIColor.label))
Spacer()
Circle()
.fill(selected == option ? Color(UIColor.systemGreen) : Color(UIColor.systemGray4))
.fill(selected == option ? Color.accentColor : Color(UIColor.secondarySystemBackground))
.frame(width: 20, height: 20)
}
}
}
}
.padding(20)
.background(
RoundedRectangle(cornerRadius: 22)
.stroke(Color(UIColor.secondarySystemBackground))
)
}
}
@@ -1,5 +1,7 @@
import SwiftUI
import DivKit
struct SettingsView: View {
@Environment(\.presentationMode)
var presentationMode: Binding<PresentationMode>
@@ -14,24 +16,26 @@ struct SettingsView: View {
background: ThemeColor.settings,
presentationMode: presentationMode
) {
Toggle(isOn: $isQrScannerEnabledKeymeMode) {
Text("QR Scanner")
VStack(alignment: .leading, spacing: 0) {
Toggle(isOn: $isQrScannerEnabledKeymeMode) {
Text("QR Scanner")
.font(ThemeFont.text)
}
Text("Playground theme")
.font(ThemeFont.text)
.padding(EdgeInsets(top: 20, leading: 0, bottom: 10, trailing: 0))
RadioButtonsView(
options: Theme.allCases.map { $0.rawValue },
selected: $playgroundTheme
)
Spacer()
Text("DivKit version \(DivKitInfo.version)")
.font(ThemeFont.text)
}
.padding(20)
Text("Playground theme")
.font(ThemeFont.text)
RadioButtonsView(
options: Theme.allCases.map { $0.rawValue },
selected: $playgroundTheme
)
.padding(20)
.background(
RoundedRectangle(cornerRadius: 22)
.stroke(Color.black.opacity(0.12))
)
.padding(20)
}
.toggleStyle(DefaultToggleStyle())
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@divkitframework/divkit",
"version": "3.0.1",
"version": "7.0.0",
"description": "DivKit for the web",
"keywords": [
"server-driven-ui",