-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit be70b37 Author: 92 <[email protected]> Date: Wed Jan 1 17:43:05 2025 +0900 +1 icon (#2488) * +1 icon `5ber.eSIM` `com.ifreegroup.moesim` |![old](https://github.com/user-attachments/assets/3d6322a4-b579-4670-89d0-6615b912c3d8)|![new](https://raw.githubusercontent.com/Twive/lawnicons/refs/heads/develop/svgs/_5ber_esim.svg)| |---|---| * Update _5ber_esim.svg * Add files via upload commit b20916c Author: Gleb <[email protected]> Date: Tue Dec 31 11:08:21 2024 +0300 Minor icon improvements (#2502) * Minor icon improvements * Update quizduel.svg commit 8e6fecc Author: 92 <[email protected]> Date: Tue Dec 31 16:49:47 2024 +0900 Update README.md (#2487) commit 3accd38 Author: Gleb <[email protected]> Date: Mon Dec 30 14:03:37 2024 +0300 Minor config.yml fix (#2501) commit 879bad0 Author: Gleb <[email protected]> Date: Mon Dec 30 13:56:53 2024 +0300 Suspension of icon requests (#2500) Added a hint to the issue template. commit 6289116 Author: SuperDragonXD <[email protected]> Date: Fri Dec 27 13:35:12 2024 +0800 Search improvements - Improve animations when opening search bar - Temporary fix to search bar showing on tall devices; fixes #2495 - Open first item when pressing search button in IME commit ddc8641 Author: SuperDragonXD <[email protected]> Date: Fri Dec 27 11:57:56 2024 +0800 Cleanup preferences handling commit 6b371f9 Author: SuperDragonXD <[email protected]> Date: Wed Dec 25 21:47:58 2024 +0800 feat: Allow enabling/disabling icon requests This can be done via the flag at the website repo, or via the local prefs override at the debug menu. TODO: Update link once new form is placed. commit fcc7be4 Author: Gleb <[email protected]> Date: Sat Dec 21 19:35:34 2024 +0300 Removed the deleted form (#2494) * Removed the deleted form * Update icon_rebrand.yml
- Loading branch information
1 parent
0181734
commit 436cb1e
Showing
52 changed files
with
371 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
app/src/main/kotlin/app/lawnchair/lawnicons/api/IconRequestSettingsAPI.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright 2024 Lawnchair Launcher | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package app.lawnchair.lawnicons.api | ||
|
||
import app.lawnchair.lawnicons.model.IconRequestSettings | ||
import retrofit2.http.GET | ||
|
||
interface IconRequestSettingsAPI { | ||
@GET("lawnicons-request/settings.json") | ||
suspend fun getIconRequestSettings(): IconRequestSettings | ||
} |
43 changes: 43 additions & 0 deletions
43
app/src/main/kotlin/app/lawnchair/lawnicons/api/WebsiteApiModule.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright 2024 Lawnchair Launcher | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package app.lawnchair.lawnicons.api | ||
|
||
import app.lawnchair.lawnicons.util.kotlinxJson | ||
import dagger.Module | ||
import dagger.Provides | ||
import dagger.hilt.InstallIn | ||
import dagger.hilt.components.SingletonComponent | ||
import javax.inject.Singleton | ||
import okhttp3.MediaType.Companion.toMediaType | ||
import retrofit2.Retrofit | ||
import retrofit2.converter.kotlinx.serialization.asConverterFactory | ||
import retrofit2.create | ||
|
||
@Module | ||
@InstallIn(SingletonComponent::class) | ||
class WebsiteApiModule { | ||
|
||
@Provides | ||
@Singleton | ||
fun providesWebsiteIconRequestApi(): IconRequestSettingsAPI { | ||
return Retrofit.Builder() | ||
.baseUrl("https://lawnchair.app/") | ||
.addConverterFactory(kotlinxJson.asConverterFactory("application/json".toMediaType())) | ||
.build() | ||
.create() | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
app/src/main/kotlin/app/lawnchair/lawnicons/model/IconRequestSettings.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Copyright 2024 Lawnchair Launcher | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package app.lawnchair.lawnicons.model | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class IconRequestSettings( | ||
val enabled: Boolean, | ||
) |
26 changes: 26 additions & 0 deletions
26
app/src/main/kotlin/app/lawnchair/lawnicons/repository/IconRequestSettingsRepository.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright 2024 Lawnchair Launcher | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package app.lawnchair.lawnicons.repository | ||
|
||
import app.lawnchair.lawnicons.api.IconRequestSettingsAPI | ||
import javax.inject.Inject | ||
|
||
class IconRequestSettingsRepository @Inject constructor( | ||
private val api: IconRequestSettingsAPI, | ||
) { | ||
suspend fun getEnabledState() = api.getIconRequestSettings().enabled | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.