Skip to content

Commit

Permalink
Merge pull request #774 from tari-project/release/0.16.0
Browse files Browse the repository at this point in the history
feat: release/0.16.0 into master
  • Loading branch information
alexandrVakhtinTari committed Oct 18, 2022
2 parents 3b7c6ec + d2d9c00 commit 184cc6c
Show file tree
Hide file tree
Showing 261 changed files with 3,011 additions and 4,759 deletions.
31 changes: 14 additions & 17 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,16 @@ android {
}
privacy {
dimension "privacy-mode"
buildConfigField "String", "NOTIFICATIONS_API_KEY",
"\"${loadSecretProps().getProperty('service.notifications.api_key')}\""
}
}

applicationVariants.all { variant ->
if (variant.productFlavors.get(0).name == "regular") {
if (variant.buildType.name == "debug") {
variant.mergedFlavor.manifestPlaceholders.sentryPublicDSN = ''
} else {
variant.mergedFlavor.manifestPlaceholders.sentryPublicDSN =
loadSecretProps().getProperty('sentry.public_dsn')
}
if (variant.buildType.name == "debug") {
variant.mergedFlavor.manifestPlaceholders.sentryPublicDSN = ''
} else {
variant.mergedFlavor.manifestPlaceholders.sentryPublicDSN = loadSecretProps().getProperty('sentry.public_dsn')
}
}

Expand Down Expand Up @@ -126,10 +125,10 @@ android {
'META-INF/ASL2.0']
}
}

lintOptions {
disable("NewApi")
lint {
disable 'NewApi'
}

}

Properties loadSecretProps() {
Expand Down Expand Up @@ -265,18 +264,16 @@ dependencies {
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.0'

// Google services & Google drive
regularImplementation 'com.google.android.gms:play-services-auth:20.2.0'
regularImplementation 'com.google.http-client:google-http-client-gson:1.39.0'
regularImplementation('com.google.api-client:google-api-client-android:1.31.3') {
implementation 'com.google.android.gms:play-services-auth:20.2.0'
implementation 'com.google.http-client:google-http-client-gson:1.39.0'
implementation('com.google.api-client:google-api-client-android:1.31.3') {
exclude group: 'org.apache.httpcomponents'
}
regularImplementation('com.google.apis:google-api-services-drive:v3-rev197-1.25.0') {
implementation('com.google.apis:google-api-services-drive:v3-rev197-1.25.0') {
exclude group: 'org.apache.httpcomponents'
}
// matomo - tracking
regularImplementation 'org.matomo.sdk:tracker:4.1.2'
// sentry - crash analytics
regularImplementation 'io.sentry:sentry-android:5.0.1'
implementation 'io.sentry:sentry-android:5.0.1'

implementation 'net.yslibrary.keyboardvisibilityevent:keyboardvisibilityevent:2.2.0'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ class FFICommsConfigTests {
private companion object {
private const val DB_NAME = "tari_test_db"
private var walletDir = ""
private var network: Network = Network.DIBBLER
private val context = getApplicationContext<Context>()
private val resourceManager = ResourceManager(context)
private val prefs = context.getSharedPreferences(ApplicationModule.sharedPrefsFileName, Context.MODE_PRIVATE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class FFIPublicKeyTests {
publicKey.destroy()
}

@Test
// @Test
fun constructorFromEmojiId_assertThatValidPublicKeyInstanceWasCreated() {
val origin = FFIPublicKey(HexString(FFITestUtil.PUBLIC_KEY_HEX_STRING))
val publicKey = FFIPublicKey(FFITestUtil.PUBLIC_KEY_EMOJI_ID)
Expand Down
21 changes: 5 additions & 16 deletions app/src/androidTest/java/com/tari/android/wallet/FFITestUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
*/
package com.tari.android.wallet

import com.orhanobut.logger.Logger
import com.tari.android.wallet.ffi.NetAddressString
import java.io.File

Expand All @@ -44,12 +43,12 @@ import java.io.File
class FFITestUtil {

companion object {
internal const val WALLET_DB_NAME: String = "tari_test_db"
const val WALLET_DB_NAME: String = "tari_test_db"
// Matching pair of keys.
internal const val PUBLIC_KEY_HEX_STRING = "30E1DFA197794858BFDBF96CDCE5DC8637D4BD1202DC694991040DDECBF42D40"
internal const val PRIVATE_KEY_HEX_STRING = "6259C39F75E27140A652A5EE8AEFB3CF6C1686EF21D27793338D899380E8C801"
internal const val PUBLIC_KEY_EMOJI_ID = "๐Ÿฌ๐Ÿ˜‚๐Ÿ”ฑ๐Ÿ‘Ÿ๐Ÿ‘“๐Ÿ›๐ŸŽข๐ŸŽท๐Ÿ’ฏ๐Ÿ”ซ๐Ÿšจ๐Ÿ‰๐Ÿ”ฌ๐Ÿ˜๐Ÿ”ฌ๐Ÿฐ๐Ÿถ๐Ÿ””๐Ÿ’ฉ๐ŸŒฝ๐ŸŒˆ๐Ÿ”ฌ๐Ÿญ๐ŸŽฃ๐Ÿฝ๐ŸŒ‹๐ŸŒต๐Ÿ”ฎ๐Ÿ“๐Ÿš—๐Ÿฉ๐ŸŽƒ๐ŸŽท"
internal val address = NetAddressString("127.0.0.1",80)
const val PUBLIC_KEY_HEX_STRING = "30E1DFA197794858BFDBF96CDCE5DC8637D4BD1202DC694991040DDECBF42D40"
const val PRIVATE_KEY_HEX_STRING = "6259C39F75E27140A652A5EE8AEFB3CF6C1686EF21D27793338D899380E8C801"
const val PUBLIC_KEY_EMOJI_ID = "๐Ÿฌ๐Ÿ˜‚๐Ÿ”ฑ๐Ÿ‘Ÿ๐Ÿ‘“๐Ÿ›๐ŸŽข๐ŸŽท๐Ÿ’ฏ๐Ÿ”ซ๐Ÿšจ๐Ÿ‰๐Ÿ”ฌ๐Ÿ˜๐Ÿ”ฌ๐Ÿฐ๐Ÿถ๐Ÿ””๐Ÿ’ฉ๐ŸŒฝ๐ŸŒˆ๐Ÿ”ฌ๐Ÿญ๐ŸŽฃ๐Ÿฝ๐ŸŒ‹๐ŸŒต๐Ÿ”ฎ๐Ÿ“๐Ÿš—๐Ÿฉ๐ŸŽƒ๐ŸŽท"
val address = NetAddressString("127.0.0.1",80)

fun generateRandomAlphanumericString(len: Int): String {
val characters = ('0'..'z').toList().toTypedArray()
Expand All @@ -72,15 +71,5 @@ class FFITestUtil {
}
return false
}

fun printFFILogFile(path: String) {
var log = ""
File(path).forEachLine {
log += "\n" + it
}
Logger.d("FFI log file contents:\n$log")
}

}

}
Loading

0 comments on commit 184cc6c

Please sign in to comment.