Skip to content

Commit 67d2b0f

Browse files
authored
Merge pull request #460 from hpi-swa-teaching/develop
Merges results from 2021 into master
2 parents c5fbd0a + 2f551d2 commit 67d2b0f

File tree

1,306 files changed

+7615
-2098
lines changed

Some content is hidden

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

1,306 files changed

+7615
-2098
lines changed

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Please, go through these steps before you submit a PR.
1010
c. You have only one commit (if not, squash them into one commit).
1111

1212
d. Running tests doesn't throw any error. If it does, fix them first and amend your commit (`git commit --amend`).
13-
13+
1414
e. You have tracked ALL applicable time working in clockify!
1515

1616
3. **After** these steps, you're ready to open a pull request.

.github/workflows/ci-linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: CI-Lint
22

3-
on:
3+
on:
44
push:
55
branches:
66
- develop

.github/workflows/main.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: CI
22

3-
on:
3+
on:
44
push:
55
branches:
66
- develop
@@ -17,14 +17,19 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
os: [ ubuntu-latest ]
20-
smalltalk: [ Squeak64-Trunk, Squeak64-5.3, Squeak64-5.2 ]
20+
smalltalk: [ Squeak64-5.3 ]
2121
name: ${{ matrix.smalltalk }} on ${{ matrix.os }}
2222
steps:
2323
- uses: actions/checkout@v2
2424
- uses: hpi-swa/setup-smalltalkCI@v1
2525
with:
2626
smalltalk-version: ${{ matrix.smalltalk }}
2727
- run: smalltalkci -s ${{ matrix.smalltalk }}
28-
timeout-minutes: 15
28+
timeout-minutes: 30
2929
env:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
- uses: actions/upload-artifact@master
32+
if: ${{ always() }}
33+
with:
34+
name: Test Artifacts (${{ matrix.smalltalk }} (${{ matrix.os }}))
35+
path: /home/runner/.smalltalkCI/_builds/telegramTestResults

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ jobs:
3939
env:
4040
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4141
with:
42-
tag_name: ${{ steps.tag_prefix.outputs.value }}${{ steps.current-time.outputs.formattedTime }}
42+
tag_name: ${{ steps.tag_prefix.outputs.value }}${{ steps.current-time.outputs.formattedTime }}
4343
release_name: ${{ matrix.smalltalk }} ${{ steps.current-time.outputs.formattedTime }}
4444
draft: false
4545
prerelease: ${{ env.prerelease }}
4646
- name: Upload Release Asset
47-
id: upload-release-asset
47+
id: upload-release-asset
4848
uses: actions/upload-release-asset@v1
4949
env:
5050
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5151
with:
52-
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
52+
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
5353
asset_path: /home/runner/.smalltalkCI/_builds/TelegramClient.sar
5454
asset_name: TelegramClient.sar
5555
asset_content_type: application/zip

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.DS_STORE
2+
/.idea

.smalltalk.lint.ston

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ SmalltalkCISpec {
1212
'scripts/preLoading.st'
1313
],
1414
#testing : {
15-
#classes : [ #TCTLinterTests ]
15+
#classes : [ #TCTMLinterTests ]
1616
}
1717
}

.smalltalk.release.ston

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SmalltalkCISpec {
1010
}
1111
],
1212
#testing : {
13-
#classes : [ #TCTSarFileGenerator ],
13+
#classes : [ #TCTMSarFileGenerator ],
1414
#defaultTimeout : 60
1515
}
1616
}

.smalltalk.ston

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ SmalltalkCISpec {
1414
#packages : [ 'TelegramClient-Core.*', 'TelegramClient-UI.*' ]
1515
},
1616
#exclude : {
17-
#classes : [ #TCTLinterTests ]
17+
#classes : [ #TCTMLinterTests ]
1818
},
1919
#defaultTimeout : 60
2020
}

.squot

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
OrderedDictionary {
2-
'packages\/TelegramClient-Core.package' : #SquotCypressCodeSerializer,
3-
'packages\/TelegramClient-Tests.package' : #SquotCypressCodeSerializer,
4-
'packages\/BaselineOfTelegramClient.package' : #SquotCypressCodeSerializer,
5-
'packages\/TelegramClient-UI.package' : #SquotCypressCodeSerializer
2+
'packages/TelegramClient-Core.package' : #SquotCypressCodeSerializer,
3+
'packages/BaselineOfTelegramClient.package' : #SquotCypressCodeSerializer,
4+
'packages/TelegramClient-UI.package' : #SquotCypressCodeSerializer,
5+
'packages/TelegramClientTests-Core.package' : #SquotCypressCodeSerializer,
6+
'packages/TelegramClientTests-UI.package' : #SquotCypressCodeSerializer,
7+
'packages/TelegramClientTests-Misc.package' : #SquotCypressCodeSerializer
68
}

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ $ git merge develop // merges changes from mast
8383
When development on the feature is complete, reviewers should merge changes into `develop` and then make sure the remote branch is deleted.
8484

8585
```
86-
$ git checkout develop // change to the develop branch
86+
$ git checkout develop // change to the develop branch
8787
$ git merge --no-ff feature/GH-id // makes sure to create a commit object during merge
8888
$ git push origin develop // push merge changes
8989
$ git push origin :feature/GH-id // deletes the remote branch
@@ -97,7 +97,7 @@ Fix branches differ from feature branches only semantically. Fix branches will b
9797

9898
Although likelihood will be less, during the lifespan of the bug development, the lead should watch the `develop` branch (network tool or branch tool in GitHub) to see if there have been commits since the bug was branched. Any and all changes to `develop` should be merged into the bug before merging back to `develop`; this can be done at various times during the project or at the end, but time to handle merge conflicts should be accounted for.
9999

100-
`<tbd number>` represents the Basecamp project to which Project Management will be tracked.
100+
`<tbd number>` represents the Basecamp project to which Project Management will be tracked.
101101

102102
* Must branch from: `develop`
103103
* Must merge back into: `develop`
@@ -121,7 +121,7 @@ $ git merge develop // merges changes from deve
121121
When development on the bug is complete, [the Lead] should merge changes into `develop` and then make sure the remote branch is deleted.
122122

123123
```
124-
$ git checkout develop // change to the develop branch
124+
$ git checkout develop // change to the develop branch
125125
$ git merge --no-ff bugfix/GH-id // makes sure to create a commit object during merge
126126
$ git push origin develop // push merge changes
127127
$ git push origin :bugfix/GH-id // deletes the remote branch

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,18 @@ TelegramClient is a **Squeak-Client** for the widely used Telegram-Messenger. It
5959
<td>🚶</td>
6060
<td>Logout</td>
6161
</tr>
62+
<tr>
63+
<td>😎</td>
64+
<td>Display Emojis</td>
65+
</tr>
66+
<tr>
67+
<td>🖼</td>
68+
<td>Display Images</td>
69+
</tr>
70+
<tr>
71+
<td>ℹ</td>
72+
<td>Show group description and members</td>
73+
</tr>
6274
</tbody>
6375
</table>
6476

@@ -82,6 +94,7 @@ Metacello new
8294
1. **Last compatible FFI version.** For Squeak version 5.3 use `Metacello new configuration: 'FFI'; load.` to install it.
8395
2. **JSON** package from [SqueakSource](http://www.squeaksource.com/JSON.html).
8496
3. **Animations** package [GitHub](https://github.com/hpi-swa/animations/).
97+
4. **MTF** package from [GitHub](https://github.com/hpi-swa-teaching/Morphic-Testing-Framework)
8598

8699
2. Check our [release page](https://github.com/hpi-swa-teaching/TelegramClient/releases) for an online installer in the form of a SAR file. Install this SAR file in your Squeak image.
87100

@@ -102,4 +115,12 @@ Pre-Releases are created automatically whenever a commit is added to the develop
102115

103116
## Our Group
104117

118+
Group 2 of the 2021 SWT I module included [Romeo Sommerfeld](https://github.com/rsommerfeld), [Raphael Kunert](https://github.com/Storyxx), [Jannis Berndt](https://github.com/jb3rndt), [Philipp Keese](https://github.com/phkeese), [Tom Richter](https://github.com/tom-richter), and [Paul Ermler](https://github.com/permler).
119+
105120
Group 13 of the 2020 SWT I module included [Rohan Sawahn](https://github.com/rohansaw), [Jonas Schmidt](https://github.com/schmidtjonas), [Frederik Wollny](https://github.com/Freddy200), [Stefan Spangenberg](https://github.com/sspangenberg), [Lukas Laskowski](https://github.com/lasklu), and [Niklas Schilli](https://github.com/Mrnikbobjeff). Feel free to add your names to the list.
121+
122+
## Acknowledgements
123+
124+
This project uses assets from https://openmoji.org/ for Emoji support. These are downloaded when the client starts for the first time and not hosted in this repository.
125+
Each file is resized before being displayed and filenames are stripped of certain Unicode units after download. The contents of the files is not changed.
126+
OpenMoji is published under the Creative Commons Share Alike License 4.0 [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/#). Their project is also hosted on [GitHub](https://github.com/hfg-gmuend/openmoji).
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
defines prequisites

packages/BaselineOfTelegramClient.package/BaselineOfTelegramClient.class/instance/baseline..st

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
baseline
22
baseline: spec
33
<baseline>
4-
4+
55
spec for: #common do: [
66
spec
77
baseline: 'Animations' with: [
@@ -17,17 +17,23 @@ baseline: spec
1717
package: 'JSON' with: [
1818
spec file: 'JSON-ul.35';
1919
repository: 'https://www.squeaksource.com/JSON'];
20+
baseline: 'MorphicTestingFramework' with: [
21+
spec repository: 'github://hpi-swa-teaching/Morphic-Testing-Framework:master/packages'];
2022
baseline: 'SwaLint' with: [
21-
spec repository: 'github://hpi-swa-teaching/SwaLint:release/packages'].
22-
23+
spec repository: 'github://hpi-swa-teaching/SwaLint:develop/packages'].
24+
2325
spec
2426
package: 'TelegramClient-Core' with: [
2527
spec requires: #('libraries')];
2628
package: 'TelegramClient-UI' with: [
2729
spec requires: #('libraries')];
28-
package: 'TelegramClient-Tests' with: [
29-
spec requires: #('default' 'SwaLint')].
30+
package: 'TelegramClientTests-Misc' with: [
31+
spec requires: #('default' 'SwaLint')];
32+
package: 'TelegramClientTests-UI' with: [
33+
spec requires: #('default' 'MorphicTestingFramework')];
34+
package: 'TelegramClientTests-Core' with: [
35+
spec requires: #('default')].
3036
spec
3137
group: 'libraries' with: #('Animations' 'FFI' 'JSON');
3238
group: 'default' with: #('TelegramClient-Core' 'TelegramClient-UI');
33-
group: 'tests' with: #('TelegramClient-Tests')].
39+
group: 'tests' with: #('TelegramClientTests-Misc' 'TelegramClientTests-UI' 'TelegramClientTests-Core')].
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
baseline
22
postLoad
3-
(((Smalltalk respondsTo: #globals)
3+
(((Smalltalk respondsTo: #globals)
44
ifTrue: [Smalltalk globals] "Squeak >=4.1"
55
ifFalse: [Smalltalk]) "Pharo and squeak <=4.0"
66
at: #SwaLint) perform: #install.

packages/BaselineOfTelegramClient.package/BaselineOfTelegramClient.class/methodProperties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"class" : {
33
},
44
"instance" : {
5-
"baseline:" : "ct 10/8/2020 01:55",
5+
"baseline:" : "RS 6/6/2021 15:14",
66
"postLoad" : "N.S. 5/14/2020 17:20" } }

packages/BaselineOfTelegramClient.package/BaselineOfTelegramClient.class/properties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
],
55
"classvars" : [
66
],
7-
"commentStamp" : "",
7+
"commentStamp" : "per 6/15/2021 09:40",
88
"instvars" : [
99
],
1010
"name" : "BaselineOfTelegramClient",

packages/TelegramClient-Core.package/TCCAuthHandler.class/instance/apiHash.st

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

packages/TelegramClient-Core.package/TCCAuthHandler.class/instance/apiID.st

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

packages/TelegramClient-Core.package/TCCAuthHandler.class/instance/app..st

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

packages/TelegramClient-Core.package/TCCAuthHandler.class/instance/app.st

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

packages/TelegramClient-Core.package/TCCAuthHandler.class/instance/checkAuthenticationCode..st

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

packages/TelegramClient-Core.package/TCCAuthHandler.class/instance/client.st

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

packages/TelegramClient-Core.package/TCCAuthHandler.class/instance/handleEvent..st

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

packages/TelegramClient-Core.package/TCCAuthHandler.class/instance/isAwaitingDBEncryptionKey.st

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

packages/TelegramClient-Core.package/TCCAuthHandler.class/instance/isAwaitingTDLibParams.st

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

packages/TelegramClient-Core.package/TCCAuthHandler.class/instance/logout.st

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

packages/TelegramClient-Core.package/TCCAuthHandler.class/instance/sendPhoneNumber..st

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

packages/TelegramClient-Core.package/TCCAuthHandler.class/instance/setDBEncryptionKey..st

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

packages/TelegramClient-Core.package/TCCAuthHandler.class/instance/setTDLibParams.st

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

packages/TelegramClient-Core.package/TCCAuthHandler.class/instance/useTestDC.st

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

packages/TelegramClient-Core.package/TCCAuthHandler.class/methodProperties.json

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

packages/TelegramClient-Core.package/TCCAuthHandler.class/properties.json

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

0 commit comments

Comments
 (0)