Skip to content

Commit d4bf6f8

Browse files
authored
Merge pull request #273 from soramitsu/rc/1.7.0
Rc/1.7.0
2 parents 4482cc8 + 1c72e16 commit d4bf6f8

File tree

1,012 files changed

+37641
-2932
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,012 files changed

+37641
-2932
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[{*.kt, *.kts}]
5+
#Ktlint configuration
6+
max_line_length = 160
7+
insert_final_newline = true
8+
indent_size = 4
9+
disabled_rules = import-ordering

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ app/*.apk
1010
/.idea/
1111

1212
# ignore jacoco coverage reports
13-
/coverage
13+
/coverage
14+
15+
fearless.jks

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,22 @@ Fearless Wallet is a mobile wallet designed for the decentralized future on the
88

99
[![](https://img.shields.io/twitter/follow/FearlessWallet?label=Follow&style=social)](https://twitter.com/FearlessWallet)
1010

11-
1211
## Roadmap
1312
Fearless Wallet roadmap is available for everyone: [roadmap link](https://soramitsucoltd.aha.io/shared/97bc3006ee3c1baa0598863615cf8d14)
1413

1514
## Dev Status
1615
Track features development: [board link](https://soramitsucoltd.aha.io/shared/343e5db57d53398e3f26d0048158c4a2)
1716

17+
## How to build
18+
19+
To build Fearless Wallet Android project, you need to provide several keys either in enviroment variables or in `local.properties` file:
20+
21+
``` properties
22+
MOONPAY_TEST_SECRET=stub
23+
MOONPAY_PRODUCTION_SECRET=stub
24+
```
25+
26+
Note, that with stub keys buy via moonpay will not work correctly. However, other parts of application will not be affected.
27+
1828
## License
1929
Fearless Wallet Android is available under the Apache 2.0 license. See the LICENSE file for more info.

app/build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ android {
6262
}
6363
}
6464
}
65+
66+
kotlinOptions {
67+
freeCompilerArgs = ["-Xallow-result-return-type"]
68+
}
6569
}
6670

6771
play {
@@ -85,6 +89,11 @@ dependencies {
8589
implementation project(':feature-wallet-api')
8690
implementation project(':feature-wallet-impl')
8791

92+
implementation project(':runtime')
93+
94+
implementation project(':feature-staking-api')
95+
implementation project(':feature-staking-impl')
96+
8897
implementation kotlinDep
8998

9099
implementation androidDep
@@ -113,6 +122,10 @@ dependencies {
113122
compileOnly wsDep
114123

115124
implementation coroutinesDep
125+
126+
testImplementation project(':test-shared')
127+
128+
implementation insetterDep
116129
}
117130

118131
task printVersion {

app/src/main/java/jp/co/soramitsu/app/App.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ open class App : Application(), FeatureContainer {
5555
override fun commonApi(): CommonApi {
5656
return appComponent
5757
}
58-
}
58+
}

app/src/main/java/jp/co/soramitsu/app/di/app/AppComponent.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ interface AppComponent : CommonApi {
3636
}
3737

3838
fun inject(app: App)
39-
}
39+
}

app/src/main/java/jp/co/soramitsu/app/di/app/AppModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ class AppModule {
1414
fun provideContext(application: App): Context {
1515
return application
1616
}
17-
}
17+
}

app/src/main/java/jp/co/soramitsu/app/di/app/FeatureManagerModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ class FeatureManagerModule {
1414
fun provideFeatureHolderManager(featureApiHolderMap: @JvmSuppressWildcards Map<Class<*>, FeatureApiHolder>): FeatureHolderManager {
1515
return FeatureHolderManager(featureApiHolderMap)
1616
}
17-
}
17+
}

app/src/main/java/jp/co/soramitsu/app/di/app/NavigationModule.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import jp.co.soramitsu.app.root.navigation.Navigator
66
import jp.co.soramitsu.common.di.scope.ApplicationScope
77
import jp.co.soramitsu.feature_account_impl.presentation.AccountRouter
88
import jp.co.soramitsu.feature_onboarding_impl.OnboardingRouter
9+
import jp.co.soramitsu.feature_staking_impl.presentation.StakingRouter
910
import jp.co.soramitsu.feature_wallet_impl.presentation.WalletRouter
1011
import jp.co.soramitsu.splash.SplashRouter
1112

@@ -31,4 +32,8 @@ class NavigationModule {
3132
@ApplicationScope
3233
@Provides
3334
fun provideWalletRouter(navigator: Navigator): WalletRouter = navigator
34-
}
35+
36+
@ApplicationScope
37+
@Provides
38+
fun provideStakingRouter(navigator: Navigator): StakingRouter = navigator
39+
}

app/src/main/java/jp/co/soramitsu/app/di/deps/ComponentHolderModule.kt

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@ import jp.co.soramitsu.feature_account_api.di.AccountFeatureApi
1616
import jp.co.soramitsu.feature_account_impl.di.AccountFeatureHolder
1717
import jp.co.soramitsu.feature_onboarding_api.di.OnboardingFeatureApi
1818
import jp.co.soramitsu.feature_onboarding_impl.di.OnboardingFeatureHolder
19+
import jp.co.soramitsu.feature_staking_api.di.StakingFeatureApi
20+
import jp.co.soramitsu.feature_staking_impl.di.StakingFeatureHolder
1921
import jp.co.soramitsu.feature_wallet_api.di.WalletFeatureApi
2022
import jp.co.soramitsu.feature_wallet_impl.di.WalletFeatureHolder
23+
import jp.co.soramitsu.runtime.di.RuntimeApi
24+
import jp.co.soramitsu.runtime.di.RuntimeHolder
2125
import jp.co.soramitsu.splash.di.SplashFeatureApi
2226
import jp.co.soramitsu.splash.di.SplashFeatureHolder
2327

@@ -63,4 +67,16 @@ interface ComponentHolderModule {
6367
@ClassKey(RootApi::class)
6468
@IntoMap
6569
fun provideMainFeature(accountFeatureHolder: RootFeatureHolder): FeatureApiHolder
66-
}
70+
71+
@ApplicationScope
72+
@Binds
73+
@ClassKey(StakingFeatureApi::class)
74+
@IntoMap
75+
fun provideStakingFeature(holder: StakingFeatureHolder): FeatureApiHolder
76+
77+
@ApplicationScope
78+
@Binds
79+
@ClassKey(RuntimeApi::class)
80+
@IntoMap
81+
fun provideARuntimeFeature(runtimeHolder: RuntimeHolder): FeatureApiHolder
82+
}

0 commit comments

Comments
 (0)