Skip to content

Commit cd94042

Browse files
committed
Release v0.5.3
2 parents b909f61 + 98db8f9 commit cd94042

File tree

80 files changed

+1819
-1489
lines changed

Some content is hidden

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

80 files changed

+1819
-1489
lines changed

ForPDA.xcodeproj/project.pbxproj

Lines changed: 231 additions & 144 deletions
Large diffs are not rendered by default.

ForPDA.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

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

ForPDA/Info.plist

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,12 @@
1919
<false/>
2020
<key>SECRET_KEYS</key>
2121
<dict>
22-
<key>AMPLITUDE_TOKEN</key>
23-
<string>$(AMPLITUDE_TOKEN)</string>
22+
<key>MIXPANEL_TOKEN</key>
23+
<string>$(MIXPANEL_TOKEN)</string>
2424
<key>SENTRY_DSN</key>
2525
<string>$(SENTRY_DSN)</string>
2626
<key>SENTRY_DSYM_TOKEN</key>
2727
<string>$(SENTRY_DSYM_TOKEN)</string>
28-
<key>TELEGRAM_CHAT_ID</key>
29-
<string>$(TELEGRAM_CHAT_ID)</string>
30-
<key>TELEGRAM_TOKEN</key>
31-
<string>$(TELEGRAM_TOKEN)</string>
3228
</dict>
3329
<key>UIApplicationSceneManifest</key>
3430
<dict>

ForPDA/Resources/en.lproj/Localizable.strings

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,22 @@
1818
"something.wrong.with.article" = "Something wrong?";
1919
"copied" = "Copied";
2020
"thanks" = "Thanks!";
21+
"vpn.warning" = "Looks like you have VPN running or you're not located in Russia, at this moment captcha bypass is in beta and might not work correctly, it is highly recommended to turn off VPN instead";
22+
"vpn.turn.off" = "Turn off VPN";
23+
"vpn.show.captcha" = "Show captcha";
24+
"vpn.fls.incompatible" = "Fast loading news are incompatible with VPN, you can enable it later in settings";
25+
"vpn.warning.background" = "Whoops! Looks like you have VPN running, turn it off and refresh this page";
2126

2227
// News
2328
"load.more" = "Load More";
2429
"loading.dots" = "Loading...";
2530

2631
// Article
32+
"loading.the.article" = "Loading the article...";
2733
"learn.more" = "Learn More";
2834
"comments" = "Comments (%d):";
35+
"swipe.left.to.show.comments" = "Swipe left to show comments";
36+
"no.comments.yet" = "No comments yet";
2937

3038
// In Development
3139
"will.fix.soon" = "We'll try to fix it soon :)";
@@ -72,10 +80,12 @@
7280
"background.dark" = "Dark";
7381
"background.black" = "Black";
7482
"advanced" = "Advanced";
83+
"safari.extension" = "Safari extension";
84+
"safari.extension.enable" = "Open settings";
7585
"fast.loading.system" = "Fast loading news";
76-
"fast.loading.system.warning" = "After activiting this option latest news may not load and show wrong amount of comments, and likes may not appear in articles";
86+
"fast.loading.system.turn.off.warning" = "After deactivating this function some articles may take significant time to load";
7787
"comments.show.likes" = "Show likes";
78-
"comments.show.likes.warning" = "After activiting this option with \"Fast loading article\" you may see increase in traffic usage";
88+
"comments.show.likes.warning" = "Some articles may take a significant amount of time to load likes. After activiting this option with \"Fast loading article\" you may see increase in traffic usage";
7989
"account" = "Account";
8090
"sign.out" = "Sign Out";
8191
"about.app" = "About App";
@@ -92,14 +102,3 @@
92102
"captcha.uploading.failed" = "Captcha uploading failed";
93103
"login.failed.unknown.reasons" = "Something went wrong, try again later";
94104
"login" = "Log In";
95-
96-
// Special // todo remove after 0.4
97-
"update03" = "Update 0.3";
98-
"update03.text" =
99-
"This update introduces two new options for opening articles in the app through Safari:
100-
101-
1) Press the Share button and select ForPDA from the list
102-
2) Go to Settings > Safari > Extensions > Open in ForPDA > On (Ask > Allow), after that Safari will offer to open articles in the app
103-
104-
P.S. Any issues with article rendering can be reported through a long tap on the news / menu in the upper right corner of the article / linked chat in the settings";
105-
"update03.enable.extension" = "Enable extension";

ForPDA/Resources/ru.lproj/Localizable.strings

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,22 @@
1818
"something.wrong.with.article" = "Проблемы со статьей?";
1919
"copied" = "Скопировано";
2020
"thanks" = "Спасибо!";
21+
"vpn.warning" = "Похоже у вас запущен ВПН или вы находитесь не в России, на данный момент обход капчи находится в тестовом режиме и может работать некорректно, рекомендуется отключить ВПН вместо ввода капчи";
22+
"vpn.turn.off" = "Выключить VPN";
23+
"vpn.show.captcha" = "Показать капчу";
24+
"vpn.fls.incompatible" = "Режим быстрой загрузки статей несовместим с работой ВПН, вы сможете включить его заново в настройки";
25+
"vpn.warning.background" = "Упс! Похоже у вас включен ВПН, отключите его и попробуйте перезагрузить страницу";
2126

2227
// Новости
2328
"load.more" = "Загрузить ещё";
2429
"loading.dots" = "Загружаю...";
2530

2631
// Статья
32+
"loading.the.article" = "Загружаем статью...";
2733
"learn.more" = "Узнать подробнее";
2834
"comments" = "Комментарии (%d):";
35+
"swipe.left.to.show.comments" = "Свайпните влево чтобы открыть комментарии";
36+
"no.comments.yet" = "Комментариев еще нет";
2937

3038
// В разработке
3139
"will.fix.soon" = "Починим в ближайшее время :)";
@@ -72,10 +80,12 @@
7280
"background.dark" = "Темный";
7381
"background.black" = "Черный";
7482
"advanced" = "Продвинутые";
83+
"safari.extension" = "Расширение для Safari";
84+
"safari.extension.enable" = "Открыть настройки";
7585
"fast.loading.system" = "Быстрая загрузка новостей";
76-
"fast.loading.system.warning" = "При активации этой функции статьи могут обновляться с задержкой, отображать неверное количество комментариев, а лайки в статьях не отображаться";
86+
"fast.loading.system.turn.off.warning" = "При отключении этой функции некоторые статьи могут загружаться длительное время";
7787
"comments.show.likes" = "Отображать лайки";
78-
"comments.show.likes.warning" = "При активации этой функции вместе с \"Быстрая загрузка новостей\" может быть увеличенный расход трафика";
88+
"comments.show.likes.warning" = "Некоторые статьи могут загружать лайки в течение продолжительного времени. При активации этой функции вместе с \"Быстрая загрузка новостей\" может быть увеличенный расход трафика";
7989
"account" = "Аккаунт";
8090
"sign.out" = "Выйти";
8191
"about.app" = "О приложении";
@@ -92,14 +102,3 @@
92102
"captcha.uploading.failed" = "Не получилось отправить капчу";
93103
"login.failed.unknown.reasons" = "Что-то пошло не так, попробуйте позже";
94104
"login" = "Войти";
95-
96-
// Особое // todo убрать после 0.4
97-
"update03" = "Обновление 0.3";
98-
"update03.text" =
99-
"В этом обновлении появились две новые возможности открывать статьи в приложении через Safari:
100-
101-
1) Нажать на кнопку Поделиться и выбрать в списке ForPDA
102-
2) Зайти в Настройки > Safari > Расширения > Open in ForPDA > Вкл (Спрашивать > Разрешить), после чего Safari будет предлагать открывать приложение само
103-
104-
P.S. Об ошибках отображения элементов в статьях можно сообщить через долгий тап в новостях / меню в верхнем правом углу статьи / чате указанном в настройках";
105-
"update03.enable.extension" = "Включить расширение";

ForPDA/SecretsExample.xcconfig

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,4 @@
1111
SLASH=/
1212
SENTRY_DSN = https:$(SLASH)/254ab8acb4b9b37782e381851f714937@24305648o67216305.ingest.sentry.io/4044540866652570
1313
SENTRY_DSYM_TOKEN = 35d734eed2136fb416234ad1696326d3dee2f2528bda2cc866c19f1b56d0bd13
14-
AMPLITUDE_TOKEN = b230d335c7756c251d42bdc3e36cdaa0
15-
TELEGRAM_TOKEN = 2136023442:AhAo48gQCqqY1U8Sv7iIHxEFNyR-pARUb3N
16-
TELEGRAM_CHAT_ID = -0196111660880
14+
MIXPANEL_TOKEN = b230d335c7756c251d42bdc3e36cdaa0

ForPDA/Sources/Application/AppDelegate.swift

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@
88
import UIKit
99
import SnapKit
1010
import Factory
11-
import Amplitude
11+
import Mixpanel
1212
import Sentry
1313
import Nuke
14-
import RouteComposer
1514

1615
@main
1716
class AppDelegate: UIResponder, UIApplicationDelegate {
@@ -21,7 +20,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
2120

2221
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
2322

24-
configureAmplitude()
23+
configureMixpanel()
2524
configureSentry()
2625
configureNuke()
2726
configureCookies()
@@ -34,11 +33,13 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
3433

3534
extension AppDelegate {
3635

37-
// MARK: Amplitude
36+
// MARK: Mixpanel
3837

39-
private func configureAmplitude() {
40-
Amplitude.instance().defaultTracking.sessions = true
41-
Amplitude.instance().initializeApiKey(Secrets.for(key: .AMPLITUDE_TOKEN))
38+
private func configureMixpanel() {
39+
Mixpanel.initialize(
40+
token: Secrets.for(key: .MIXPANEL_TOKEN),
41+
trackAutomaticEvents: true
42+
)
4243
}
4344

4445
// MARK: Sentry

ForPDA/Sources/Application/SceneDelegate.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
2020
var webView: WKWebView = {
2121
let config = WKWebViewConfiguration()
2222
let webView = WKWebView(frame: .zero, configuration: config)
23-
webView.tag = 666
2423
return webView
2524
}()
2625

@@ -68,7 +67,7 @@ extension SceneDelegate {
6867
let id = url.absoluteString.components(separatedBy: "article/")[1]
6968
let url = URL.fourpda.absoluteString + id
7069
let article = Article(url: url, info: nil)
71-
try? DefaultRouter().navigate(to: RouteMap.newArticleScreen, with: article)
70+
try? DefaultRouter().navigate(to: RouteMap.articlePagesScreen, with: article)
7271
}
7372
}
7473

ForPDA/Sources/Constants/Secrets.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ struct Secrets {
1212

1313
enum Keys: String {
1414
case SENTRY_DSN
15-
case AMPLITUDE_TOKEN
16-
case TELEGRAM_TOKEN
17-
case TELEGRAM_CHAT_ID
15+
case MIXPANEL_TOKEN
1816
}
1917

2018
static func `for`(key: Keys) -> String {

ForPDA/Sources/Coordinator/Errors.swift

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

0 commit comments

Comments
 (0)