Skip to content

Commit 3c8afb0

Browse files
committed
[3.2.2] Update build.gradle and changelog. Update Librus Client ID and user agent.
1 parent 27f9b8a commit 3c8afb0

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

app/src/main/assets/pl-changelog.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@
3131
</head>
3232
<body>
3333

34+
<h3>Wersja 3.2.2, 2020-02-24</h3>
35+
<ul>
36+
<li>Naprawiłem synchronizację oraz logowanie w Librusie.</li>
37+
<li><i>Dostępna jest wersja testowa aplikacji 4.0-beta. Można ją pobrać w Google Play, dołączając do programu wersji beta (na dole strony).</i></li>
38+
<li>Nowa wersja testowa zawiera m.in. takie funkcje jak wysyłanie wiadomości, nowy plan lekcji czy przebudowany moduł synchronizacji i interfejs.</li>
39+
</ul>
40+
3441
<h3>Wersja 3.2.1, 2019-12-10</h3>
3542
<ul>
3643
<li>Poprawa synchronizacji w Mobidzienniku.</li>
@@ -109,4 +116,4 @@ <h3>Plany na następne wersje:</h3>
109116
</ul>
110117
</i>-->
111118

112-
</body>
119+
</body>

app/src/main/java/pl/szczodrzynski/edziennik/data/api/Librus.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public Librus(App app) {
139139
}
140140

141141
private static final String TAG = "api.Librus";
142-
private static final String CLIENT_ID = "wmSyUMo8llDAs4y9tJVYY92oyZ6h4lAt7KCuy0Gv";
142+
private static final String CLIENT_ID = "6XPsKf10LPz1nxgHQLcvZ1KM48DYzlBAhxipaXY8";
143143
private static final String REDIRECT_URL = "http://localhost/bar";
144144
private static final String AUTHORIZE_URL = "https://portal.librus.pl/oauth2/authorize?client_id="+CLIENT_ID+"&redirect_uri="+REDIRECT_URL+"&response_type=code";
145145
private static final String LOGIN_URL = "https://portal.librus.pl/rodzina/login/action";
@@ -149,7 +149,7 @@ public Librus(App app) {
149149
private static final String API_URL = "https://api.librus.pl/2.0/";
150150
private static final String SYNERGIA_URL = "https://wiadomosci.librus.pl/module/";
151151
private static final String SYNERGIA_SANDBOX_URL = "https://sandbox.librus.pl/index.php?action=";
152-
private static final String userAgent = "Dalvik/2.1.0 Android LibrusMobileApp";
152+
private static final String userAgent = System.getProperty("http.agent")+"LibrusMobileApp";
153153
private static final String synergiaUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Gecko/20100101 Firefox/62.0";
154154

155155
private App app;

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ buildscript {
55
kotlin_version = '1.3.50'
66

77
release = [
8-
versionName: "3.2.1",
9-
versionCode: 3020199
8+
versionName: "3.2.2",
9+
versionCode: 3020299
1010
]
1111

1212
setup = [

0 commit comments

Comments
 (0)