-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a41766e
commit 3b2f61f
Showing
40 changed files
with
152 additions
and
2 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
...rimental/market/src/commonMain/kotlin/org/mobilenativefoundation/market/MarketSupplier.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 |
---|---|---|
@@ -1,5 +1,21 @@ | ||
package org.mobilenativefoundation.market | ||
|
||
import kotlinx.coroutines.CoroutineDispatcher | ||
import org.mobilenativefoundation.market.impl.MarketActionFactory | ||
import org.mobilenativefoundation.market.impl.RealMarketSupplier | ||
import org.mobilenativefoundation.store.store5.Store | ||
|
||
interface MarketSupplier<K : Any> { | ||
fun supply(key: K) | ||
|
||
companion object { | ||
fun <K : Any, O : Any, A : Market.Action, D : Market.Dispatcher<A>> from( | ||
coroutineDispatcher: CoroutineDispatcher, | ||
store: Store<K, O>, | ||
marketDispatcher: D, | ||
marketActionFactory: MarketActionFactory<O, A> | ||
): MarketSupplier<K> { | ||
return RealMarketSupplier(coroutineDispatcher, store, marketDispatcher, marketActionFactory) | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
plugins { | ||
id("plugin.scoop.android.application") | ||
alias(libs.plugins.ksp) | ||
alias(libs.plugins.compose) | ||
} | ||
|
||
android { | ||
namespace = "monster.scoop.android.app" | ||
|
||
defaultConfig { | ||
applicationId = "monster.scoop" | ||
versionCode = 1 | ||
versionName = "1.0" | ||
} | ||
|
||
packaging { | ||
resources { | ||
excludes.add("/META-INF/{AL2.0,LGPL2.1}") | ||
excludes.add("/META-INF/versions/9/previous-compilation-data.bin") | ||
} | ||
} | ||
} | ||
|
||
|
||
dependencies { | ||
|
||
implementation(compose.runtime) | ||
implementation(compose.material3) | ||
implementation(libs.androidx.appCompat) | ||
implementation(libs.androidx.compose.activity) | ||
implementation(libs.androidx.core) | ||
implementation(libs.kotlinx.coroutines.android) | ||
implementation(libs.kotlinInject.runtime) | ||
implementation(libs.kotlinx.serialization.core) | ||
implementation(libs.kotlinx.serialization.json) | ||
api(libs.circuit.foundation) | ||
|
||
ksp(libs.kotlinInject.compiler) | ||
implementation(libs.coil.compose) | ||
implementation(libs.coil.network) | ||
implementation(libs.ktor.client.android) | ||
implementation(libs.ktor.serialization.json) | ||
implementation(libs.ktor.negotiation) | ||
|
||
implementation(libs.compose.webview.multiplatform) | ||
} | ||
|
||
ksp { | ||
arg("me.tatarka.inject.generateCompanionExtensions", "true") | ||
} |
29 changes: 29 additions & 0 deletions
29
experimental/sample/scoop/android/app/src/main/AndroidManifest.xml
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,29 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest | ||
|
||
xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
<uses-permission android:name="android.permission.INTERNET"/> | ||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> | ||
|
||
<application | ||
android:name=".ScoopApp" | ||
android:exported="true" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="Scoop" | ||
android:supportsRtl="true" | ||
android:theme="@style/Theme.Scoop" | ||
android:usesCleartextTraffic="true"> | ||
|
||
<activity | ||
android:name=".MainActivity" | ||
android:exported="true"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN"/> | ||
|
||
<category android:name="android.intent.category.DEFAULT"/> | ||
<category android:name="android.intent.category.LAUNCHER"/> | ||
</intent-filter> | ||
</activity> | ||
</application> | ||
</manifest> |
Binary file added
BIN
+93.4 KB
experimental/sample/scoop/android/app/src/main/ic_launcher-playstore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions
22
...mental/sample/scoop/android/app/src/main/kotlin/monster/scoop/android/app/MainActivity.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,22 @@ | ||
package monster.scoop.android.app | ||
|
||
import android.os.Bundle | ||
import androidx.activity.ComponentActivity | ||
import androidx.activity.compose.setContent | ||
import androidx.compose.material3.ExperimentalMaterial3Api | ||
import coil3.annotation.ExperimentalCoilApi | ||
import me.tatarka.inject.annotations.Inject | ||
|
||
|
||
@OptIn(ExperimentalCoilApi::class, ExperimentalMaterial3Api::class) | ||
@Inject | ||
class MainActivity : ComponentActivity() { | ||
|
||
|
||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
|
||
setContent { | ||
} | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
experimental/sample/scoop/android/app/src/main/kotlin/monster/scoop/android/app/ScoopApp.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,6 @@ | ||
package monster.scoop.android.app | ||
|
||
import android.app.Application | ||
|
||
|
||
class ScoopApp : Application() |
Binary file added
BIN
+164 KB
experimental/sample/scoop/android/app/src/main/res/font/roboto_black.ttf
Binary file not shown.
Binary file added
BIN
+170 KB
experimental/sample/scoop/android/app/src/main/res/font/roboto_black_italic.ttf
Binary file not shown.
Binary file added
BIN
+163 KB
experimental/sample/scoop/android/app/src/main/res/font/roboto_bold.ttf
Binary file not shown.
Binary file added
BIN
+167 KB
experimental/sample/scoop/android/app/src/main/res/font/roboto_bold_italic.ttf
Binary file not shown.
Binary file added
BIN
+167 KB
experimental/sample/scoop/android/app/src/main/res/font/roboto_italic.ttf
Binary file not shown.
Binary file added
BIN
+163 KB
experimental/sample/scoop/android/app/src/main/res/font/roboto_light.ttf
Binary file not shown.
Binary file added
BIN
+169 KB
experimental/sample/scoop/android/app/src/main/res/font/roboto_light_italic.ttf
Binary file not shown.
Binary file added
BIN
+165 KB
experimental/sample/scoop/android/app/src/main/res/font/roboto_medium.ttf
Binary file not shown.
Binary file added
BIN
+169 KB
experimental/sample/scoop/android/app/src/main/res/font/roboto_medium_italic.ttf
Binary file not shown.
Binary file added
BIN
+164 KB
experimental/sample/scoop/android/app/src/main/res/font/roboto_regular.ttf
Binary file not shown.
Binary file added
BIN
+165 KB
experimental/sample/scoop/android/app/src/main/res/font/roboto_thin.ttf
Binary file not shown.
Binary file added
BIN
+169 KB
experimental/sample/scoop/android/app/src/main/res/font/roboto_thin_italic.ttf
Binary file not shown.
5 changes: 5 additions & 0 deletions
5
experimental/sample/scoop/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
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,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background android:drawable="@color/ic_launcher_background"/> | ||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/> | ||
</adaptive-icon> |
5 changes: 5 additions & 0 deletions
5
experimental/sample/scoop/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
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,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background android:drawable="@color/ic_launcher_background"/> | ||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/> | ||
</adaptive-icon> |
Binary file added
BIN
+2.01 KB
experimental/sample/scoop/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp
Binary file not shown.
Binary file added
BIN
+4.25 KB
experimental/sample/scoop/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp
Binary file not shown.
Binary file added
BIN
+3.59 KB
experimental/sample/scoop/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
Binary file not shown.
Binary file added
BIN
+1.34 KB
experimental/sample/scoop/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp
Binary file not shown.
Binary file added
BIN
+2.46 KB
experimental/sample/scoop/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp
Binary file not shown.
Binary file added
BIN
+2.29 KB
experimental/sample/scoop/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
Binary file not shown.
Binary file added
BIN
+2.91 KB
experimental/sample/scoop/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp
Binary file not shown.
Binary file added
BIN
+6.49 KB
experimental/sample/scoop/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp
Binary file not shown.
Binary file added
BIN
+5.15 KB
experimental/sample/scoop/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
Binary file not shown.
Binary file added
BIN
+4.91 KB
experimental/sample/scoop/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
Binary file not shown.
Binary file added
BIN
+12 KB
experimental/sample/scoop/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp
Binary file not shown.
Binary file added
BIN
+8.6 KB
experimental/sample/scoop/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
Binary file not shown.
Binary file added
BIN
+7.29 KB
experimental/sample/scoop/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
Binary file not shown.
Binary file added
BIN
+18.8 KB
...rimental/sample/scoop/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp
Binary file not shown.
Binary file added
BIN
+12.6 KB
experimental/sample/scoop/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
Binary file not shown.
6 changes: 6 additions & 0 deletions
6
experimental/sample/scoop/android/app/src/main/res/values-v31/themes.xml
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,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<style name="Theme.Scoop" parent="Theme.AppCompat.NoActionBar"> | ||
<item name="android:windowSplashScreenBackground">@color/ic_launcher_background</item> | ||
</style> | ||
</resources> |
4 changes: 4 additions & 0 deletions
4
experimental/sample/scoop/android/app/src/main/res/values/ic_launcher_background.xml
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,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="ic_launcher_background">#232428</color> | ||
</resources> |
6 changes: 6 additions & 0 deletions
6
experimental/sample/scoop/android/app/src/main/res/values/themes.xml
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,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<style name="Theme.Scoop" parent="Theme.AppCompat.NoActionBar"> | ||
<item name="android:windowSplashScreenBackground">@color/ic_launcher_background</item> | ||
</style> | ||
</resources> |
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