Skip to content

Commit

Permalink
[#21] Build error with version 0.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
matrixdev committed Mar 15, 2021
1 parent a8a801c commit bd8926f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ dependencies {
kapt 'androidx.room:room-compiler:2.2.5'
// Roomigrant
implementation 'com.github.MatrixDev.Roomigrant:RoomigrantLib:0.3.3'
kapt 'com.github.MatrixDev.Roomigrant:RoomigrantCompiler:0.3.3'
implementation 'com.github.MatrixDev.Roomigrant:RoomigrantLib:0.3.4'
kapt 'com.github.MatrixDev.Roomigrant:RoomigrantCompiler:0.3.4'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@ class Database(val environment: ProcessingEnvironment, element: TypeElement) {
code.addComment("Table %S", table.name)

code.addStatement("%L = %T()", indices, indicesType)
code.addStatement("%L = %T(%L, %S, %S, %L)", tableInfo, tableInfoType, schemeInfo, table.name, table.createSql(), indices)

code.addStatement("%L.put(%S, %L)", tablesMap, table.name, tableInfo)
for (index in table.indices) {
code.addStatement("%L[%S] = %T(%L, %S, %S)", indices, index.name, IndexInfo::class, tableInfo, index.name, index.createSql(table.name))
code.addStatement("%L.put(%S, %T(%L, %S, %S))", indices, index.name, IndexInfo::class, tableInfo, index.name, index.createSql(table.name))
}

code.addStatement("%L = %T(%L, %S, %S, %L)", tableInfo, tableInfoType, schemeInfo, table.name, table.createSql(), indices)
code.addStatement("%L[%S] = %L", tablesMap, table.name, tableInfo)

code.addStatement("")
}

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

buildscript {
ext.kotlin_version = '1.4.10'
ext.roomigrant_version = '0.3.3'
ext.roomigrant_version = '0.3.4'

repositories {
google()
Expand Down

0 comments on commit bd8926f

Please sign in to comment.