Skip to content

Commit

Permalink
Fixed suffix bug (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmeissner authored Dec 11, 2017
1 parent 137068d commit a6600ef
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class BivrostPlugin : Plugin<Project> {
inputs.files(abiFolder.listFiles())

doLast {
val packageName = variant.applicationId
val packageName = variant.applicationId.removeSuffix(variant.buildType.applicationIdSuffix ?: "")
// We can reuse arrays for all ABIs
val arraysMap = AbiParser.ArraysMap(packageName)

Expand Down
2 changes: 1 addition & 1 deletion bivrost-solidity-types-generator/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apply plugin: 'maven'
sourceCompatibility = 1.8

task runSolidityTypeGenerator(type: JavaExec) {
def targetProject = project.parent.childProjects.get("bivrost-solidity-types") ?: this
def targetProject = project.parent.childProjects.get("bivrost-solidity-types") ?: project
def srcDirs = targetProject.sourceSets.main.kotlin.getSrcDirs()
if (srcDirs.isEmpty()) {
logger.error("Couldn't find kotlin main source sets")
Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ buildscript {
ext.versions = [
'minSdk' : 14,
'compileSdk' : 27,
'buildTools' : '27.0.1',
'buildTools' : '27.0.2',

'kotlin' : '1.1.60',
'kotlin' : '1.2.0',
'kotlinPoet' : '0.6.0',
'moshi' : '1.5.0',
'androidPlugin': '3.1.0-alpha03',
'androidPlugin': '3.1.0-alpha05',
]

ext.deps = [
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Fri Aug 18 21:20:02 CEST 2017
#Mon Dec 11 12:02:10 CET 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions-snapshots/gradle-4.4-20171031235950+0000-all.zip
2 changes: 2 additions & 0 deletions sample/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ android {

buildTypes {
debug {
applicationIdSuffix ".debug"
versionNameSuffix "-debug"
minifyEnabled false
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ import android.os.Bundle
class MainActivity: Activity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
EtherToken.Name.encode()
}
}

0 comments on commit a6600ef

Please sign in to comment.