Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@Library('jenkins-library' ) _
// Pipeline
new org.android.ShareFeature().call(
dockerImage: "build-tools/android-build-box-jdk17:latest",
lint: true,
test: true
)
25 changes: 12 additions & 13 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,16 @@ android {
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}

buildFeatures {
compose true
}

composeOptions {
kotlinCompilerExtensionVersion '1.4.3'
kotlinCompilerExtensionVersion '1.4.6'
}

buildTypes {
Expand All @@ -42,12 +41,12 @@ dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation project(':fearless-utils')
implementation "com.google.android.material:material:1.8.0"
implementation 'androidx.core:core-ktx:1.9.0'
implementation 'androidx.activity:activity-compose:1.6.1'
implementation 'androidx.core:core-ktx:1.10.0'
implementation 'androidx.activity:activity-compose:1.7.1'

implementation "androidx.compose.ui:ui:1.3.3"
implementation "androidx.compose.material:material:1.3.1"
implementation "androidx.compose.ui:ui-tooling-preview:1.3.3"
androidTestImplementation "androidx.compose.ui:ui-test-junit4:1.3.3"
debugImplementation "androidx.compose.ui:ui-tooling:1.3.3"
implementation "androidx.compose.ui:ui:1.4.2"
implementation "androidx.compose.material:material:1.4.2"
implementation "androidx.compose.ui:ui-tooling-preview:1.4.2"
androidTestImplementation "androidx.compose.ui:ui-test-junit4:1.4.2"
debugImplementation "androidx.compose.ui:ui-tooling:1.4.2"
}
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
buildscript {
ext {
// App version
versionName = '1.0.119'
versionName = '1.0.120'
versionCode = 1

// SDK and tools
Expand All @@ -17,10 +17,10 @@ buildscript {
}
}
dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'
classpath 'com.android.tools.build:gradle:8.0.0'
classpath 'org.mozilla.rust-android-gradle:plugin:0.9.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.10"
classpath "org.jetbrains.kotlin:kotlin-serialization:1.8.10"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.20"
classpath "org.jetbrains.kotlin:kotlin-serialization:1.8.20"
}
}

Expand Down
10 changes: 5 additions & 5 deletions fearless-utils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ android {

buildTypes {
release {
minifyEnabled false
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}


compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}

ndkVersion "21.3.6528147"
ndkVersion "25.2.9519653"
//ndkVersion "22.1.7171670"

sourceSets {
Expand Down Expand Up @@ -96,7 +96,7 @@ dependencies {
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0"

testImplementation "junit:junit:4.13.2"
testImplementation "org.mockito:mockito-inline:4.6.1"
testImplementation "org.mockito:mockito-inline:5.2.0"

androidTestImplementation "androidx.test:runner:1.5.2"
androidTestImplementation "org.mockito:mockito-android:4.5.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,7 @@ fun ByteArray.toHexString(withPrefix: Boolean = false): String {
return if (withPrefix) return HEX_PREFIX + encoded else encoded
}

fun String.fromHex(): ByteArray {
return if (startsWith(HEX_PREFIX)) {
val prefixLength = HEX_PREFIX.length
val charArray = this.toCharArray()
val relevantChars = CharArray(charArray.size - prefixLength)
System.arraycopy(charArray, prefixLength, relevantChars, 0, relevantChars.size)
val hexStringWithoutPrefix = String(relevantChars)
Hex.decode(hexStringWithoutPrefix)
} else {
Hex.decode(this)
}
}
fun String.fromHex(): ByteArray = Hex.decode(removePrefix(HEX_PREFIX))

fun String.requirePrefix(prefix: String) = if (startsWith(prefix)) this else prefix + this

Expand Down
9 changes: 6 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ org.gradle.jvmargs=-Xmx2048m
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true
android.enableJetifier=false
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official

RELEASE_REPOSITORY_URL https://nexus.iroha.tech/repository/maven-soramitsu/
SNAPSHOT_REPOSITORY_URL https://nexus.iroha.tech/repository/maven-soramitsu/
RELEASE_REPOSITORY_URL=https://nexus.iroha.tech/repository/maven-soramitsu/
SNAPSHOT_REPOSITORY_URL=https://nexus.iroha.tech/repository/maven-soramitsu/
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=true
android.nonFinalResIds=true

2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-all.zip