Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Android builds for CI machines & drop for support macOS video player #241

Merged
merged 4 commits into from
May 18, 2022

Conversation

nilsreichardt
Copy link
Member

@nilsreichardt nilsreichardt commented May 18, 2022

Description

As in #237 described were we unable to build for Android. This PR fixes this problem. There were several problems:

  • We needed to upgrade com.android.tools.build:gradle to 4.1.0
  • But this introduced a new issue: Could not determine artifacts for com.google.android.exoplayer:exoplayer-hls:2.12.1: Skipped due to earlier error.
    • To fix this issue, I needed to remove the dependency overwrite for the video_player package.
    • This fix drops the macOS support the video player. Therefore, macOS users can't view a video inside the Sharezone App anymore. Sharezone will automatically download the video and open it with the video player installed on the machine.

Builds with check the fix:

This unblocks:

Fixes #237

@nilsreichardt nilsreichardt added the feature: file-sharing Files can be shared inside Sharezone e.g. by uploading them in a file-sharing folder of a course. label May 18, 2022
@github-actions
Copy link

Visit the preview URL for this PR (updated for commit bdf8d2e):

https://sharezone-test--pr241-fix-android-build-fo-cpkhgxbu.web.app

(expires Wed, 25 May 2022 13:09:28 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Comment on lines +39 to +50
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

kotlinOptions {
jvmTarget = '1.8'
}

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
Copy link
Member Author

@nilsreichardt nilsreichardt May 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're wondering where I get this from: I copied this from the Flutter counter app when you create a new Flutter app with flutter create app (I used Flutter 2.10.5).

Copy link
Collaborator

@Jonas-Sander Jonas-Sander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

R.I.P macOS video player 🪦😭

@nilsreichardt nilsreichardt changed the title Fix Android builds for CI machines Fix Android builds for CI machines & drop support macOS video player May 18, 2022
@nilsreichardt nilsreichardt changed the title Fix Android builds for CI machines & drop support macOS video player Fix Android builds for CI machines & drop for support macOS video player May 18, 2022
@nilsreichardt nilsreichardt merged commit 4c28345 into main May 18, 2022
@nilsreichardt nilsreichardt deleted the fix-android-build-for-ci branch May 18, 2022 14:10
nilsreichardt added a commit that referenced this pull request May 18, 2022
## Description
This PR adds an Alpha track for Android, like we already have for web with https://alpha.web.sharezone.net. On every commit on the `main`, we build a new Android version. Because Firebase Distribution doesn't care about versioning, we don't need a complicated system for increasing the version number.

As release note we are using the last commit message.

Users can join the Alpha track via this link: https://appdistribution.firebase.dev/i/9c4942a1c01a5496. Just follow the introductions by Google. But I think we should also add our own docs later (How to join the alpha program, how to leave, etc.). Would be good to do #166 first.

We should first merge the following PR before merging this PR:
* #241 

Closes #215
nilsreichardt added a commit that referenced this pull request May 19, 2022
## Description
In #241 I updated the `video_player` package and should have also run an iOS build to update the iOS files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: file-sharing Files can be shared inside Sharezone e.g. by uploading them in a file-sharing folder of a course. platform: android
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Android builds are failing in CI environments
2 participants