-
Notifications
You must be signed in to change notification settings - Fork 52
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
update to support Android 14 #27
base: master
Are you sure you want to change the base?
Conversation
Hi and thanks for contributing. Once you're done let me know so I could do some testing. It would also be helpful if you mention what device/emulator you are testing on. |
Hi @ditek , I will make rework to support API33 and above and run few tests to check if there're no a side effects after update. |
I made quick tests and didn't notice any critical issues. |
The one published is from an old version before I took over the project, so I don't have the sign key for that and therefore I will be publishing this as a new app. I'll try to look into it in the weekend.
Sounds like a good idea. But can we do that in a separate PR? Let's try to keep this one just for compatibility with latest Android Studio.
I have started using Kotlin for all new files, but still use Java for changes on existing files. I feel that the amount of work migrating and potential for breaking things is not really worth it. |
Hi @ditek , thanks for quick response.
I made a quick fastline template for F-Droid in my repo. NOTE: short description must not exceed 80 characters. If you want to pass all steps of publishing, I can save your time and give tips directly:
Good luck! 🥳🥳🥳 |
Great! Thanks for your input. I'll look into it 😊 |
Today I also verified MIDI input on my phone with Android 13 after update and it works! |
As I was pinged, let me amend step 7 with a link to my own short instructions 😉 |
Hehe, looks like original author Madhav Vaidy made a new version on Google Play recently - https://play.google.com/store/apps/details?id=com.midisheetmusic |
Interesting. That's a good thing. The more open source projects out there the better 🙂 |
seems original app will stay Freeware, I didn't find any new source code that had published since 2013, but anyway it's better to have ad-free app at least 😃
Yes, no more updates from my side. And I left my branch "f-droid" as separated.
I tested on all emulators from 21 up to 34, based on Pixel 2 template 1080x1920, 420dpi and Google Play/Google API arm64 images. Ah, and another little annoying bug, switching left/right notes sheet doesn't resize properly, but after scrolling it disappears. Anyway, thank you for this project, my goal was to create MIDI keyboard trainer app, based on your app. Like these, but open-source:
And the rest of apps on Google Play and F-Droid don't support MIDI keyboard, and it's really strange to pay 5-10$ for them 🙅 |
I have noticed several visual glitches, but haven't gotten the chance to look into them. It would be great if you could document them and add them as issues.
You're welcome. I've had similar ideas as well like adding a training mode that one can toggle. Even in the paid apps, I didn't find one that would allow you to add your own sheets. Probably for intellectual property reasons. |
Hi @ditek , no worries, take your time, health is more important ❤️
Yes, I already mentioned about that (#27 (comment)) and you asked about new PR for that (#27 (comment)).
I think it relates to migrate on materialdrawer v9.0.1 and |
We can change it later to request the permission from within the FileBrowser as you suggested, but in the meantime the way it works now is worse in my opinion. I like the idea of keeping every commit in history as stable as possible, so let's keep the current way until we do it properly.
Yes. |
I also noticed that you added the whole
This is mentioned here along with examples of files to ignore: So definitely feel free to suggest specific files to ignore :) |
useColors.setChecked(options.useColors); | ||
useColors.setOnCheckedChangeListener((iDrawerItem, compoundButton, isChecked) -> { | ||
if (isChecked) | ||
options.colorAccidentals = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep the parenthesis even for one-line if statements and loops. I know this might sound redundant if you're a Java/C++ developer, but at my work we have a strict policy to keep them as we have had bugs especially by Python programmers who are used to using indentations for inner code
I might be mistaken about this. I tested again, and this even happen with Master on API 34. It is not a problem on API 29 with Master or PR. Do you know if they changed something in the latest Android version to cause this? |
The official release from Google is scheduled for the end of August, so we might have to wait until then and exclude API34 until it is available. 👀 |
I did rebase of my master branch, squash reformat code and revert back IDEA code-style files, but ignore rest of working and temporary files. Anyway, about Storage permission, I suggest to move this PR into develop branch and fix permission request in File Browser, otherwise without that permission app will crash if user disable storage access in App Info. |
I found solution, it's a bug in MaterialDrawer, I made PR to fix it -> mikepenz/MaterialDrawer#2797 |
I tested fix with my aar from jetpack.io and it works fine: dependencies {
//implementation 'com.mikepenz:materialdrawer:9.0.1'
implementation files('src/main/libs/materialdrawer-develop-fab6ef6b5c-1.aar')
implementation "com.mikepenz:fastadapter:5.7.0"
implementation('com.mikepenz:materialdrawer-iconics:9.0.1') {
exclude group: 'com.mikepenz', module: 'materialdrawer'
}
implementation('com.mikepenz:materialdrawer-nav:9.0.1') {
exclude group: 'com.mikepenz', module: 'materialdrawer'
}
}
|
- update Java v17 - update Gradle v8.1.1 - update Android Gradle v8.0.2 - migrate on AndroidX SplashScreen - update MIDI Driver v0.1.5.2 - update Android libraries - update build gradle scripts - does not work on Android API33 and above
- manage external storage for Android API30 and above - open App Details Settings if permission has been denied by user for Android API29 and below - add requestLegacyExternalStorage for Android 10 to allow access external storage
Hi @ditek I rebased my master to include fixed materialdrawer v9.0.2 |
Wow, that's such a good effort! Sorry again for not being very active. I'll try to take a look again soon and get back to you 🙂 |
There is only one change since the last update - I updated just numbers from 9.0.1 to 9.0.2, I didn't touch a source code at all 😉 |
Hi @ditek , I finished migration on the latest Android Studio Flamingo to support your app on Android 12 and below. I faced with an issue on Android 13 to support Scoped Storage. I am still working on it.
Do you plan to maintain this repository and publish the app on F-Droid?