Skip to content

Commit fcb87c4

Browse files
authored
Prepare repo for v2 (safe-global#547)
* Cleaned up most files, left only SplashActivity * Modified base of the package name * Renamed last segment of the package name * Removed some dependencies, mostly rx related stuff * Added data and contracts module and moved abi files accordingly * Removed unnecessary full path to class and added build types for all sub modules * Killed fabric with fire * Removed traces of tests
1 parent b53cf04 commit fcb87c4

File tree

969 files changed

+659
-69979
lines changed

Some content is hidden

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

969 files changed

+659
-69979
lines changed

.gitignore

-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ build/
2020
# Local configuration file (sdk path, etc)
2121
local.properties
2222

23-
# Fabric plugin
24-
fabric.properties
25-
2623
# Proguard folder generated by Eclipse
2724
proguard/
2825

README.md

+1-11
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,6 @@ INFURA_API_KEY=<YOUR_API_KEY>
1414

1515
Replace `<YOUR_API_KEY>` with the key that you get from Infura.
1616

17-
### Fabric
18-
This project is integrated with Fabric by default so you need to create a file named `fabric.properties` inside the `app` module with the following contents:
19-
```
20-
apiSecret=<YOUR_FABRIC_API_SECRET>
21-
apiKey=<YOUR_FABRIC_API_KEY>
22-
```
23-
Replace each field with the respective information (found in Fabric).
24-
25-
**If you don't want to setup Fabric for this project you can follow the steps present in this [page](https://docs.fabric.io/android/crashlytics/build-tools.html) to disable the integration. We will improve this integration in the future so it can be easily enabled/disabled**
26-
2717
### Firebase
2818
The Gnosis Safe Android App uses Firebase and your build will fail if you don't have the `google-services.json` file.
2919

@@ -50,4 +40,4 @@ travis encrypt-file secrets.tar
5040

5141
### Release Process
5242

53-
See our [Release steps](docs/RELEASE.md) on how to prepare a release.
43+
See our [Release steps](docs/RELEASE.md) on how to prepare a release.

app/build.gradle

+11-68
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,27 @@ apply plugin: 'com.android.application'
22
apply plugin: 'kotlin-android'
33
apply plugin: 'kotlin-android-extensions'
44
apply plugin: 'kotlin-kapt'
5-
apply plugin: 'bivrost'
6-
apply plugin: 'io.fabric'
75
apply from: '../buildsystem/coverageReport.gradle'
86

9-
repositories {
10-
maven { url 'https://maven.fabric.io/public' }
11-
}
12-
137
android {
148
defaultConfig {
15-
applicationId "pm.gnosis.heimdall"
9+
applicationId "io.gnosis.safe"
1610
versionCode getInt("APP_VERSION_CODE", 703)
1711
versionName getKey("APP_VERSION_NAME", "0.4.2-alpha")
18-
testInstrumentationRunner "pm.gnosis.tests.MockTestRunner"
12+
testInstrumentationRunner "io.gnosis.tests.MockTestRunner"
1913

2014
// Debug Settings
2115
buildConfigField javaTypes.BOOLEAN, "VERBOSE_EXCEPTIONS", getKey("VERBOSE_EXCEPTIONS", "false")
2216
buildConfigField javaTypes.BOOLEAN, "ALLOW_RESTRICTED_TX", getKey("ALLOW_RESTRICTED_TX", "false")
2317
// Contracts
24-
buildConfigField javaTypes.STRING, "SAFE_MASTER_COPY_0_0_2", asString(getKey("SAFE_MASTER_COPY_0_0_2", "0xAC6072986E985aaBE7804695EC2d8970Cf7541A2")) // Version 0.0.2-alpha (Mainnet)
25-
buildConfigField javaTypes.STRING, "SAFE_MASTER_COPY_0_1_0", asString(getKey("SAFE_MASTER_COPY_0_1_0", "0x8942595A2dC5181Df0465AF0D7be08c8f23C93af")) // Version 0.1.0 (All networks)
26-
buildConfigField javaTypes.STRING, "SAFE_MASTER_COPY_1_0_0", asString(getKey("SAFE_MASTER_COPY_1_0_0", "0xb6029EA3B2c51D09a50B53CA8012FeEB05bDa35A")) // Version 1.0.0 (All networks)
27-
buildConfigField javaTypes.STRING, "SAFE_MASTER_COPY_1_1_1", asString(getKey("SAFE_MASTER_COPY_1_1_1", "0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F")) // Version 1.1.1 (All networks)
18+
buildConfigField javaTypes.STRING, "SAFE_MASTER_COPY_0_0_2", asString(getKey("SAFE_MASTER_COPY_0_0_2", "0xAC6072986E985aaBE7804695EC2d8970Cf7541A2"))
19+
// Version 0.0.2-alpha (Mainnet)
20+
buildConfigField javaTypes.STRING, "SAFE_MASTER_COPY_0_1_0", asString(getKey("SAFE_MASTER_COPY_0_1_0", "0x8942595A2dC5181Df0465AF0D7be08c8f23C93af"))
21+
// Version 0.1.0 (All networks)
22+
buildConfigField javaTypes.STRING, "SAFE_MASTER_COPY_1_0_0", asString(getKey("SAFE_MASTER_COPY_1_0_0", "0xb6029EA3B2c51D09a50B53CA8012FeEB05bDa35A"))
23+
// Version 1.0.0 (All networks)
24+
buildConfigField javaTypes.STRING, "SAFE_MASTER_COPY_1_1_1", asString(getKey("SAFE_MASTER_COPY_1_1_1", "0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F"))
25+
// Version 1.1.1 (All networks)
2826
buildConfigField javaTypes.STRING, "PROXY_FACTORY_ADDRESS", asString(getKey("PROXY_FACTORY_ADDRESS", "0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B"))
2927
buildConfigField javaTypes.STRING, "MULTI_SEND_OLD_ADDRESS", asString(getKey("MULTI_SEND_ADDRESS", "0xe74d6af1670fb6560dd61ee29eb57c7bc027ce4e"))
3028
buildConfigField javaTypes.STRING, "MULTI_SEND_ADDRESS", asString(getKey("MULTI_SEND_ADDRESS", "0x8D29bE29923b68abfDD21e541b9374737B49cdAD"))
@@ -56,7 +54,6 @@ android {
5654

5755
project.ext.set("archivesBaseName", String.format("gnosis-safe-%s", defaultConfig.versionCode))
5856

59-
ext.betaDistributionGroupAliases = System.getenv("FABRIC_GROUP_INTERNAL_BETA")
6057
ext.betaDistributionReleaseNotes = System.getenv("APP_RELEASE_NOTES")
6158

6259
javaCompileOptions {
@@ -130,7 +127,6 @@ android {
130127
}
131128

132129
packagingOptions {
133-
exclude 'META-INF/rxjava.properties'
134130
exclude 'META-INF/extensions.kotlin_module'
135131
exclude 'META-INF/LICENSE'
136132
}
@@ -166,6 +162,7 @@ dependencies {
166162
testImplementation "junit:junit:$versions.junit"
167163

168164
implementation fileTree(include: ['*.jar'], dir: 'libs')
165+
implementation project(":data")
169166

170167
// Gnosis Svalinn
171168
implementation "com.github.gnosis.svalinn-kotlin:accounts-base:$versions.svalinn"
@@ -187,46 +184,19 @@ dependencies {
187184
implementation "com.github.gnosis.svalinn-kotlin:security:$versions.svalinn"
188185
implementation "com.github.gnosis.svalinn-kotlin:utils:$versions.svalinn"
189186

190-
// Gnosis Bivrost
191-
implementation "com.github.gnosis.bivrost-kotlin:bivrost-solidity-types:$versions.bivrost"
192-
193-
// Fabric
194-
implementation("com.crashlytics.sdk.android:crashlytics:$versions.crashlytics@aar") {
195-
transitive = true
196-
}
197-
198-
// Kethereum RLP
199-
implementation "com.github.walleth.kethereum:rlp:$versions.kethereum"
200-
201-
// Wallet Connect
202-
implementation "com.github.WalletConnect:kotlin-walletconnect-lib:$versions.wallet_connect"
203-
204187
// AndroidX
205188
implementation "androidx.appcompat:appcompat:$versions.androidx_app_compat"
206-
implementation "androidx.cardview:cardview:$versions.androidx_card_view"
207189
implementation "androidx.recyclerview:recyclerview:$versions.androidx_recycler_view"
208190
implementation "androidx.constraintlayout:constraintlayout:$versions.androidx_constraint_layout"
209191
implementation "androidx.lifecycle:lifecycle-common-java8:$versions.androidx_lifecycle"
210192
implementation "androidx.lifecycle:lifecycle-extensions:$versions.androidx_lifecycle"
211193
kapt "androidx.room:room-compiler:$versions.androidx_room"
212194
implementation "androidx.room:room-runtime:$versions.androidx_room"
213-
implementation "androidx.room:room-rxjava2:$versions.androidx_room"
214195
implementation "androidx.multidex:multidex:$versions.multidex"
215196

216197
// Google Material
217198
implementation "com.google.android.material:material:$versions.material"
218199

219-
// Rx
220-
implementation "io.reactivex.rxjava2:rxjava:$versions.rxjava"
221-
implementation "io.reactivex.rxjava2:rxkotlin:$versions.rxkotlin"
222-
implementation "com.gojuno.koptional:koptional:$versions.koptional"
223-
implementation "io.reactivex.rxjava2:rxandroid:$versions.rxandroid"
224-
225-
// Firebase
226-
implementation "com.google.firebase:firebase-analytics:$versions.firebase_analytics"
227-
implementation "com.google.firebase:firebase-messaging:$versions.firebase_messaging"
228-
implementation "com.google.android.gms:play-services-auth:$versions.play_services_auth"
229-
230200
// String formatting
231201
implementation "com.squareup.phrase:phrase:$versions.phrase"
232202

@@ -243,46 +213,21 @@ dependencies {
243213
implementation("com.squareup.retrofit2:converter-moshi:$versions.retrofit") {
244214
exclude group: "com.squareup.moshi", module: "moshi"
245215
}
246-
implementation "com.squareup.retrofit2:adapter-rxjava2:$versions.retrofit"
247216

248217
// Logging
249218
implementation "com.jakewharton.timber:timber:$versions.timber"
250219
implementation "com.squareup.okhttp3:logging-interceptor:$versions.okhttp"
251220

252-
// RxBinding
253-
implementation("com.jakewharton.rxbinding2:rxbinding-kotlin:$versions.rxbinding") {
254-
exclude group: "io.reactivex.rxjava2", module: "rxandroid"
255-
}
256-
implementation("com.jakewharton.rxbinding2:rxbinding-support-v4-kotlin:$versions.rxbinding") {
257-
exclude group: "io.reactivex.rxjava2", module: "rxandroid"
258-
}
259-
implementation("com.jakewharton.rxbinding2:rxbinding-recyclerview-v7-kotlin:$versions.rxbinding") {
260-
exclude group: "io.reactivex.rxjava2", module: "rxandroid"
261-
}
262-
implementation("com.jakewharton.rxbinding2:rxbinding-appcompat-v7-kotlin:$versions.rxbinding") {
263-
exclude group: "io.reactivex.rxjava2", module: "rxandroid"
264-
}
265-
implementation("com.jakewharton.rxbinding2:rxbinding-design-kotlin:$versions.rxbinding") {
266-
exclude group: "io.reactivex.rxjava2", module: "rxandroid"
267-
}
268-
269221
implementation "com.squareup.picasso:picasso:$versions.picasso"
270222

271223
// More
272-
implementation "com.github.status-im.status-keycard-java:android:$versions.status_keycard"
273-
implementation "com.google.zxing:core:$versions.zxing"
274-
implementation "com.github.clans:fab:$versions.floating_action_button"
275-
implementation("me.zhanghai.android.materialprogressbar:library:$versions.material_progressbar") {
276-
exclude group: 'com.android.support', module: 'appcompat-v7'
277-
}
278224
implementation("org.bouncycastle:bcprov-jdk15on:$versions.bouncycastle", {
279225
exclude group: 'junit', module: 'junit'
280226
})
281227

282228
// Coroutines
283229
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$versions.kotlinx_coroutines"
284230
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$versions.kotlinx_coroutines"
285-
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-rx2:$versions.kotlinx_coroutines"
286231
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$versions.androidx_lifecycle"
287232
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$versions.androidx_lifecycle"
288233
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$versions.androidx_lifecycle"
@@ -316,5 +261,3 @@ dependencies {
316261
tasks.withType(org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile).all {
317262
kotlinOptions.freeCompilerArgs += ["-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi"]
318263
}
319-
320-
apply plugin: 'com.google.gms.google-services'

0 commit comments

Comments
 (0)