File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
app/src/main/java/ai/elimu/content_provider/room/dao Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ See https://jitpack.io/#ai.elimu/content-provider/ for the latest version availa
48
48
49
49
1 . Publish the library to your local Maven repository:
50
50
``` sh
51
- ./gradlew clean utils:publishReleasePublicationToMavenLocal
51
+ ./gradlew clean build utils:publishAarPublicationToMavenLocal
52
52
```
53
53
2. In the app that will be testing the ` -SNAPSHOT` version of the library, add `mavenLocal ()` :
54
54
` ` ` diff
Original file line number Diff line number Diff line change @@ -24,7 +24,10 @@ interface LetterDao {
24
24
@Query(" SELECT * FROM Letter ORDER BY usageCount DESC" )
25
25
fun loadAllOrderedByUsageCountCursor (): Cursor
26
26
27
- @Query(" SELECT * FROM Letter l WHERE l.id IN (SELECT letters_id FROM LetterSound_Letter WHERE LetterSound_id = :letterSoundId)" )
27
+ @Query(" SELECT * FROM Letter l " +
28
+ " INNER JOIN LetterSound_Letter lsl ON l.id = lsl.letters_id " +
29
+ " WHERE lsl.LetterSound_id = :letterSoundId " +
30
+ " ORDER BY lsl.letters_ORDER" )
28
31
fun loadAllByLetterSound (letterSoundId : Long? ): Cursor
29
32
30
33
@Update
Original file line number Diff line number Diff line change @@ -24,7 +24,10 @@ interface SoundDao {
24
24
@Query(" SELECT * FROM Sound ORDER BY usageCount DESC" )
25
25
fun loadAllOrderedByUsageCountCursor (): Cursor
26
26
27
- @Query(" SELECT * FROM Sound s WHERE s.id IN (SELECT sounds_id FROM LetterSound_Sound WHERE LetterSound_id = :letterSoundId)" )
27
+ @Query(" SELECT * FROM Sound s " +
28
+ " INNER JOIN LetterSound_Sound lss ON s.id = lss.sounds_id " +
29
+ " WHERE lss.LetterSound_id = :letterSoundId " +
30
+ " ORDER BY lss.sounds_ORDER" )
28
31
fun loadAllByLetterSound (letterSoundId : Long? ): Cursor
29
32
30
33
@Update
You can’t perform that action at this time.
0 commit comments