Skip to content

Commit

Permalink
Merge pull request #1085 from StepicOrg/release/1.203
Browse files Browse the repository at this point in the history
Release 1.203
  • Loading branch information
ivan-magda authored Dec 22, 2021
2 parents 9c931bf + 08a8aa2 commit 0e5d36d
Show file tree
Hide file tree
Showing 87 changed files with 2,383 additions and 418 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source "https://rubygems.org"
ruby "2.6.5"

gem "fastlane", "2.198.1"
gem "fastlane", "2.199.0"
gem "cocoapods", "1.11.2"
gem "generamba", "1.5.0"

Expand Down
30 changes: 15 additions & 15 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ GEM
specs:
CFPropertyList (3.0.5)
rexml
activesupport (6.1.4.1)
activesupport (6.1.4.3)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
Expand All @@ -17,16 +17,16 @@ GEM
artifactory (3.0.15)
atomos (0.1.3)
aws-eventstream (1.2.0)
aws-partitions (1.534.0)
aws-sdk-core (3.123.0)
aws-partitions (1.541.0)
aws-sdk-core (3.124.0)
aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.525.0)
aws-sigv4 (~> 1.1)
jmespath (~> 1.0)
aws-sdk-kms (1.51.0)
aws-sdk-kms (1.52.0)
aws-sdk-core (~> 3, >= 3.122.0)
aws-sigv4 (~> 1.1)
aws-sdk-s3 (1.107.0)
aws-sdk-s3 (1.109.0)
aws-sdk-core (~> 3, >= 3.122.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.4)
Expand Down Expand Up @@ -86,7 +86,7 @@ GEM
escape (0.0.4)
ethon (0.15.0)
ffi (>= 1.15.0)
excon (0.88.0)
excon (0.89.0)
faraday (1.8.0)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
Expand All @@ -112,7 +112,7 @@ GEM
faraday_middleware (1.2.0)
faraday (~> 1.0)
fastimage (2.2.5)
fastlane (2.198.1)
fastlane (2.199.0)
CFPropertyList (>= 2.3, < 4.0.0)
addressable (>= 2.8, < 3.0.0)
artifactory (~> 3.0)
Expand Down Expand Up @@ -151,7 +151,7 @@ GEM
xcodeproj (>= 1.13.0, < 2.0.0)
xcpretty (~> 0.3.0)
xcpretty-travis-formatter (>= 0.0.3)
fastlane-plugin-firebase_app_distribution (0.3.1)
fastlane-plugin-firebase_app_distribution (0.3.2)
ffi (1.15.4)
fourflusher (2.3.1)
fuzzy_match (2.0.4)
Expand All @@ -164,7 +164,7 @@ GEM
xcodeproj (>= 1.5.0, < 2.0.0)
gh_inspector (1.1.3)
git (1.2.9.1)
google-apis-androidpublisher_v3 (0.13.0)
google-apis-androidpublisher_v3 (0.14.0)
google-apis-core (>= 0.4, < 2.a)
google-apis-core (0.4.1)
addressable (~> 2.5, >= 2.5.1)
Expand All @@ -175,20 +175,20 @@ GEM
retriable (>= 2.0, < 4.a)
rexml
webrick
google-apis-iamcredentials_v1 (0.8.0)
google-apis-iamcredentials_v1 (0.9.0)
google-apis-core (>= 0.4, < 2.a)
google-apis-playcustomapp_v1 (0.6.0)
google-apis-core (>= 0.4, < 2.a)
google-apis-storage_v1 (0.9.0)
google-apis-storage_v1 (0.10.0)
google-apis-core (>= 0.4, < 2.a)
google-cloud-core (1.6.0)
google-cloud-env (~> 1.0)
google-cloud-errors (~> 1.0)
google-cloud-env (1.5.0)
faraday (>= 0.17.3, < 2.0)
google-cloud-errors (1.2.0)
google-cloud-storage (1.34.1)
addressable (~> 2.5)
google-cloud-storage (1.35.0)
addressable (~> 2.8)
digest-crc (~> 0.4)
google-apis-iamcredentials_v1 (~> 0.1)
google-apis-storage_v1 (~> 0.1)
Expand All @@ -215,7 +215,7 @@ GEM
memoist (0.16.2)
mini_magick (4.11.0)
mini_mime (1.1.2)
minitest (5.14.4)
minitest (5.15.0)
molinillo (0.8.0)
multi_json (1.15.0)
multipart-post (2.0.0)
Expand Down Expand Up @@ -283,7 +283,7 @@ PLATFORMS

DEPENDENCIES
cocoapods (= 1.11.2)
fastlane (= 2.198.1)
fastlane (= 2.199.0)
fastlane-plugin-firebase_app_distribution
generamba (= 1.5.0)

Expand Down
70 changes: 52 additions & 18 deletions Stepic.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions Stepic/Images.xcassets/CourseInfoPurchaseModal/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "CourseInfoPurchaseModalPurchaseFail.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "CourseInfoPurchaseModalPurchaseFailExclamationMark.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "CourseInfoPurchaseModalPurchaseSuccess.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}
Binary file not shown.
4 changes: 2 additions & 2 deletions Stepic/Info-Develop.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.202-develop</string>
<string>1.203-develop</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand Down Expand Up @@ -62,7 +62,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>390</string>
<string>396</string>
<key>FacebookAppID</key>
<string>171127739724012</string>
<key>FacebookDisplayName</key>
Expand Down
4 changes: 2 additions & 2 deletions Stepic/Info-Production.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.202</string>
<string>1.203</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand Down Expand Up @@ -62,7 +62,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>390</string>
<string>396</string>
<key>FacebookAppID</key>
<string>171127739724012</string>
<key>FacebookDisplayName</key>
Expand Down
4 changes: 2 additions & 2 deletions Stepic/Info-Release.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.202-release</string>
<string>1.203-release</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand Down Expand Up @@ -62,7 +62,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>390</string>
<string>396</string>
<key>FacebookAppID</key>
<string>171127739724012</string>
<key>FacebookDisplayName</key>
Expand Down
137 changes: 135 additions & 2 deletions Stepic/Legacy/Analytics/Events/AmplitudeAnalyticsEvents.swift
Original file line number Diff line number Diff line change
Expand Up @@ -133,20 +133,27 @@ extension AnalyticsEvent {
case siriShortcut = "ios_siri_shortcut"
}

static func courseBuyPressed(source: CourseBuySource, id: Int, isWishlisted: Bool) -> AmplitudeAnalyticsEvent {
static func courseBuyPressed(
id: Int,
source: CourseBuySource,
isWishlisted: Bool,
promoCode: String?
) -> AmplitudeAnalyticsEvent {
AmplitudeAnalyticsEvent(
name: "Buy course pressed",
parameters: [
"source": source.rawValue,
"course": id,
"is_wishlisted": isWishlisted
"is_wishlisted": isWishlisted,
"promo": promoCode as Any
]
)
}

enum CourseBuySource: String {
case courseWidget = "course_widget"
case courseScreen = "course_screen"
case demoLessonDialog = "demo_lesson_dialog"
}

static func courseBuyReceiptRefreshed(id: Int, successfully: Bool) -> AmplitudeAnalyticsEvent {
Expand All @@ -159,6 +166,132 @@ extension AnalyticsEvent {
)
}

static func courseBuyCoursePromoStartPressed(id: Int) -> AmplitudeAnalyticsEvent {
AmplitudeAnalyticsEvent(
name: "Buy course promo start pressed",
parameters: ["course": id]
)
}

static func courseBuyCoursePromoSuccess(id: Int, promoCode: String) -> AmplitudeAnalyticsEvent {
AmplitudeAnalyticsEvent(
name: "Buy course promo success",
parameters: [
"course": id,
"promo": promoCode
]
)
}

static func courseBuyCoursePromoFailure(id: Int, promoCode: String) -> AmplitudeAnalyticsEvent {
AmplitudeAnalyticsEvent(
name: "Buy course promo failure",
parameters: [
"course": id,
"promo": promoCode
]
)
}

static func courseBuyCourseIAPFlowStart(
id: Int,
source: CourseBuySource,
isWishlisted: Bool,
promoCode: String?
) -> AmplitudeAnalyticsEvent {
AmplitudeAnalyticsEvent(
name: "Buy course IAP flow start",
parameters: [
"course": id,
"source": source.rawValue,
"is_wishlisted": isWishlisted,
"promo": promoCode as Any
]
)
}

static func courseBuyCourseIAPFlowSuccess(
id: Int,
source: CourseBuySource,
isWishlisted: Bool,
promoCode: String?
) -> AmplitudeAnalyticsEvent {
AmplitudeAnalyticsEvent(
name: "Buy course IAP flow success",
parameters: [
"course": id,
"source": source.rawValue,
"is_wishlisted": isWishlisted,
"promo": promoCode as Any
]
)
}

static func courseBuyCourseIAPFlowFailure(
id: Int,
errorType: String,
errorDescription: String?
) -> AmplitudeAnalyticsEvent {
AmplitudeAnalyticsEvent(
name: "Buy course IAP flow failure",
parameters: [
"course": id,
"type": errorType,
"message": errorDescription as Any
]
)
}

static func courseBuyCourseVerificationSuccess(
id: Int,
source: CourseBuySource,
isWishlisted: Bool,
promoCode: String?
) -> AmplitudeAnalyticsEvent {
AmplitudeAnalyticsEvent(
name: "Buy course verification success",
parameters: [
"course": id,
"source": source.rawValue,
"is_wishlisted": isWishlisted,
"promo": promoCode as Any
]
)
}

static func courseBuyCourseVerificationFailure(
id: Int,
errorType: String,
errorDescription: String?
) -> AmplitudeAnalyticsEvent {
AmplitudeAnalyticsEvent(
name: "Buy course verification failure",
parameters: [
"course": id,
"type": errorType,
"message": errorDescription as Any
]
)
}

static func courseRestoreCoursePurchasePressed(
id: Int,
source: CourseRestorePurchaseSource
) -> AmplitudeAnalyticsEvent {
AmplitudeAnalyticsEvent(
name: "Restore course purchase pressed",
parameters: [
"course": id,
"source": source.rawValue
]
)
}

enum CourseRestorePurchaseSource: String {
case buyCourseDialog = "buy_course_dialog"
case courseScreen = "course_screen"
}

// MARK: - Course Search -

static func courseContentSearchScreenOpened(id: Int, title: String?) -> AmplitudeAnalyticsEvent {
Expand Down
Loading

0 comments on commit 0e5d36d

Please sign in to comment.