Compare commits
6 Commits
2fb4c91ffd
...
38091fef93
Author | SHA1 | Date |
---|---|---|
Alexandre NICOLADIE | 38091fef93 | |
Matthieu | 04324577ea | |
Matthieu | 73f08e5a5f | |
Matthieu | a7feab380b | |
Matthieu | 1a4e023091 | |
Matthieu | 018f893388 |
|
@ -223,21 +223,21 @@ dependencies {
|
|||
implementation 'com.google.android.material:material:1.11.0'
|
||||
|
||||
//Dagger (dependency injection)
|
||||
implementation 'com.google.dagger:dagger:2.50'
|
||||
ksp 'com.google.dagger:dagger-compiler:2.50'
|
||||
implementation 'com.google.dagger:dagger:2.51'
|
||||
ksp 'com.google.dagger:dagger-compiler:2.51'
|
||||
|
||||
implementation("com.google.dagger:hilt-android:2.50")
|
||||
ksp "com.google.dagger:hilt-compiler:2.50"
|
||||
implementation('com.google.dagger:hilt-android:2.51')
|
||||
ksp 'com.google.dagger:hilt-compiler:2.51'
|
||||
|
||||
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
|
||||
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
|
||||
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
|
||||
implementation 'com.squareup.retrofit2:adapter-rxjava3:2.9.0'
|
||||
implementation 'com.squareup.retrofit2:retrofit:2.10.0'
|
||||
implementation 'com.squareup.retrofit2:converter-gson:2.10.0'
|
||||
implementation 'com.squareup.retrofit2:adapter-rxjava3:2.10.0'
|
||||
implementation 'io.reactivex.rxjava3:rxjava:3.1.8'
|
||||
implementation 'io.reactivex.rxjava3:rxandroid:3.0.2'
|
||||
implementation 'com.github.connyduck:sparkbutton:4.1.0'
|
||||
|
||||
implementation 'org.pixeldroid.pixeldroid:android-media-editor:1.7'
|
||||
implementation 'org.pixeldroid.pixeldroid:android-media-editor:2.0'
|
||||
implementation project(path: ':scrambler')
|
||||
implementation project(path: ':pixel_common')
|
||||
|
||||
|
|
|
@ -39,6 +39,8 @@ import org.pixeldroid.app.utils.bindingLifecycleAware
|
|||
import org.pixeldroid.app.utils.db.entities.InstanceDatabaseEntity
|
||||
import org.pixeldroid.app.utils.fileExtension
|
||||
import org.pixeldroid.app.utils.getMimeType
|
||||
import org.pixeldroid.media_editor.common.PICTURE_POSITION
|
||||
import org.pixeldroid.media_editor.common.PICTURE_URI
|
||||
import org.pixeldroid.media_editor.photoEdit.PhotoEditActivity
|
||||
import org.pixeldroid.media_editor.videoEdit.VideoEditActivity
|
||||
import java.io.File
|
||||
|
@ -47,7 +49,6 @@ import java.text.SimpleDateFormat
|
|||
import java.util.Locale
|
||||
|
||||
class PostCreationFragment : BaseFragment() {
|
||||
|
||||
private var binding: FragmentPostCreationBinding by bindingLifecycleAware()
|
||||
private val model: PostCreationViewModel by activityViewModels()
|
||||
|
||||
|
@ -307,7 +308,7 @@ class PostCreationFragment : BaseFragment() {
|
|||
ActivityResultContracts.StartActivityForResult()){
|
||||
result: ActivityResult? ->
|
||||
if (result?.resultCode == Activity.RESULT_OK && result.data != null) {
|
||||
val position: Int = result.data!!.getIntExtra(PhotoEditActivity.PICTURE_POSITION, 0)
|
||||
val position: Int = result.data!!.getIntExtra(PICTURE_POSITION, 0)
|
||||
model.modifyAt(position, result.data!!)
|
||||
?: Toast.makeText(requireActivity(), R.string.error_editing, Toast.LENGTH_SHORT).show()
|
||||
} else if(result?.resultCode != Activity.RESULT_CANCELED){
|
||||
|
@ -320,8 +321,8 @@ class PostCreationFragment : BaseFragment() {
|
|||
requireActivity(),
|
||||
if (model.getPhotoData().value!![position].video) VideoEditActivity::class.java else PhotoEditActivity::class.java
|
||||
)
|
||||
.putExtra(PhotoEditActivity.PICTURE_URI, model.getPhotoData().value!![position].imageUri)
|
||||
.putExtra(PhotoEditActivity.PICTURE_POSITION, position)
|
||||
.putExtra(PICTURE_URI, model.getPhotoData().value!![position].imageUri)
|
||||
.putExtra(PICTURE_POSITION, position)
|
||||
|
||||
editResultContract.launch(intent)
|
||||
}
|
||||
|
|
|
@ -40,6 +40,7 @@ import org.pixeldroid.app.utils.db.entities.UserDatabaseEntity
|
|||
import org.pixeldroid.app.utils.di.PixelfedAPIHolder
|
||||
import org.pixeldroid.app.utils.fileExtension
|
||||
import org.pixeldroid.app.utils.getMimeType
|
||||
import org.pixeldroid.media_editor.common.PICTURE_URI
|
||||
import org.pixeldroid.media_editor.videoEdit.VideoEditActivity
|
||||
import retrofit2.HttpException
|
||||
import java.io.File
|
||||
|
@ -299,7 +300,7 @@ class PostCreationViewModel @Inject constructor(
|
|||
}
|
||||
}
|
||||
} else {
|
||||
imageUri = data.getStringExtra(org.pixeldroid.media_editor.photoEdit.PhotoEditActivity.PICTURE_URI)!!.toUri()
|
||||
imageUri = data.getStringExtra(PICTURE_URI)!!.toUri()
|
||||
val (imageSize, imageVideo) = getSizeAndVideoValidate(imageUri, position)
|
||||
size = imageSize
|
||||
video = imageVideo
|
||||
|
|
|
@ -184,7 +184,7 @@
|
|||
<string name="followed_notification_channel">Nouveaux·elles abonné·e·s</string>
|
||||
<string name="mention_notification_channel">Mentions</string>
|
||||
<string name="shared_notification_channel">Partages</string>
|
||||
<string name="liked_notification_channel">Favoris</string>
|
||||
<string name="liked_notification_channel">J\'aime</string>
|
||||
<string name="comment_notification_channel">Commentaires</string>
|
||||
<string name="poll_notification_channel">Sondages</string>
|
||||
<string name="other_notification_channel">Autre</string>
|
||||
|
@ -225,4 +225,33 @@
|
|||
<string name="switch_accounts">Permutation de comptes</string>
|
||||
<string name="edit_link_failed">Échec de l\'ouverture de la page de modifications</string>
|
||||
<string name="follow_requested">Abonnement demandé</string>
|
||||
<string name="comment_noun">Commentaire</string>
|
||||
<string name="redraft_dialog_launch">La reformulation de cet article vous permettra de modifier la photo et sa description, mais supprimera tous les commentaires et les mentions \"J\'aime\". Poursuivre ?</string>
|
||||
<string name="notification_thumbnail">Vignette de l\'image dans ce message</string>
|
||||
<string name="always_show_nsfw">Toujours afficher les contenus sensibles</string>
|
||||
<string name="post_preview">Aperçu d\'un message</string>
|
||||
<plurals name="notification_title_summary">
|
||||
<item quantity="one">%d nouvelle notification</item>
|
||||
<item quantity="many">%d nouvelles notifications</item>
|
||||
<item quantity="other">%d nouvelles notifications</item>
|
||||
</plurals>
|
||||
<plurals name="items_load_success">
|
||||
<item quantity="one">%d article chargé avec succès</item>
|
||||
<item quantity="many">%d articles chargés avec succès</item>
|
||||
<item quantity="other">%d articles chargés avec succès</item>
|
||||
</plurals>
|
||||
<string name="notification_summary_large">%1$s, %2$s, %3$s et %4$d autres</string>
|
||||
<string name="notification_summary_medium">%1$s, %2$s, et %3$s</string>
|
||||
<string name="video_not_supported">Le serveur que vous utilisez ne prend pas en charge les téléchargements de vidéos, il se peut que vous ne puissiez pas télécharger les vidéos incluses dans cet article</string>
|
||||
<string name="new_collection_link_failed">Échec de l\'ouverture de la page de création d\'une collection</string>
|
||||
<string name="bookmark">Favoris</string>
|
||||
<string name="unknown_error_in_error">Erreur inconnue, vérifiez si le serveur est en panne : %1$s</string>
|
||||
<string name="profile_error">Impossible de charger le profil</string>
|
||||
<string name="add_images_error">Erreur lors de l\'ajout des images</string>
|
||||
<string name="description_template_summary">Remplir la description des nouveaux messages avec ceci</string>
|
||||
<string name="description_template">Modèle de description</string>
|
||||
<string name="explore_accounts">Explorer les comptes populaires de cette instance</string>
|
||||
<string name="explore_hashtags">Explorer les hashtags en vogue sur cette instance</string>
|
||||
<string name="daily_trending">Voir les messages populaires de la journée</string>
|
||||
<string name="notification_summary_small">%1$s et %2$s</string>
|
||||
</resources>
|
|
@ -6,7 +6,7 @@ buildscript {
|
|||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:8.2.2'
|
||||
classpath 'com.android.tools.build:gradle:8.3.1'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
* Montage vidéo ! Supprimez le son, découper les vidéos
|
||||
* Ouvrez les images en plein écran et zoomez dessus :)
|
||||
* Mises à jour des traductions
|
|
@ -0,0 +1 @@
|
|||
Correctif pour les plantages dans l'activité d'édition qui ne se produisaient qu'en mode release
|
|
@ -0,0 +1 @@
|
|||
Ajout de la traduction en hongrois (Magyar) à l'application. Merci à Balázs :)
|
|
@ -0,0 +1,4 @@
|
|||
* Ajout de règles gson proguard pour corriger les crashs sur les instances Mastodon
|
||||
* Ajout de thèmes de couleur avec 4 thèmes différents
|
||||
* Passage à Material 3
|
||||
* Améliorer la cohérence de l'interface utilisateur
|
|
@ -0,0 +1,11 @@
|
|||
PixelDroid est un client Android libre et open source pour Pixelfed, la plateforme fédérée de partage d'images.
|
||||
|
||||
Parcourez les flux et les profils, envoyez de nouveaux messages, découvrez des messages, interagissez avec d'autres personnes sur le fediverse.
|
||||
|
||||
- Support multi-compte
|
||||
- Thèmes sombres et clairs
|
||||
- Appliquez des filtres, recadrez, modifiez la luminosité/contraste/saturation
|
||||
- Prend en compte la configuration de votre serveur Pixelfed
|
||||
- Logiciel 100% libre et open source. Aucune dépendances propriétaires.
|
||||
|
||||
Visitez https://pixelfed.org pour en savoir plus sur Pixelfed.
|
|
@ -0,0 +1 @@
|
|||
Client pour Pixelfed, la plateforme fédérée de partage d'images
|
|
@ -0,0 +1 @@
|
|||
PixelDroid
|
|
@ -1 +1 @@
|
|||
Subproject commit 956bd5f88d6189009f2ba0a8cb2860a1bfee0ee6
|
||||
Subproject commit 702d14fe701343958337efa1b4eb31f0250849f6
|
|
@ -1 +1 @@
|
|||
Subproject commit 7c67b911930b4344a2917f2944493e08fdd04b57
|
||||
Subproject commit 23d4d94b45a848f0c64a042985eb03d0acc2f18b
|
Loading…
Reference in New Issue