Skip to content

Commit

Permalink
Fixes #7213
Browse files Browse the repository at this point in the history
  • Loading branch information
nhachicha committed Nov 27, 2020
1 parent 1b2b57d commit 100d8d0
Show file tree
Hide file tree
Showing 5 changed files with 125 additions and 58 deletions.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
## 10.1.1 (2020-10-27)

### Breaking Changes
* None.

### Enhancements
* None.

### Fixes
* KAPT crash when processing a RealmObject referenced from another module (changed revealed after we started checking for embedded types). (Issue [#7213](https://github.com/realm/realm-java/issues/7213), since v10.0.0)

### Compatibility
* File format: Generates Realms with format v20. Unsynced Realms will be upgraded from Realm Java 2.0 and later. Synced Realms can only be read and upgraded if created with Realm Java v10.0.0-BETA.1.
* APIs are backwards compatible with all previous release of realm-java in the 10.x.y series.
* Realm Studio 10.0.0 or above is required to open Realms created by this version.

### Internal
* Updated to Realm Sync: 10.1.3.
* Updated to Realm Core: 10.1.3.
* Updated to Object Store commit: fc6daca61133aa9601e4cb34fbeb9ec7569e162e.


## 10.1.0 (2020-10-23)

### Breaking Changes
Expand Down
3 changes: 2 additions & 1 deletion realm/realm-annotations-processor/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,16 @@ dependencies {
implementation "io.realm:realm-annotations:${version}"
implementation "org.mongodb:bson:${properties.getProperty('BSON_DEPENDENCY')}"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation files(Jvm.current().toolsJar)
testImplementation files('../realm-library/build/intermediates/aar_main_jar/baseRelease/classes.jar') // Java projects cannot depend on AAR files
testImplementation files("${System.properties['java.home']}/../lib/tools.jar") // This is needed otherwise compile-testing won't be able to find it
testImplementation group:'junit', name:'junit', version:'4.12'
testImplementation group:'com.google.testing.compile', name:'compile-testing', version:'0.6'
testImplementation files(file("${System.env.ANDROID_HOME}/platforms/android-29/android.jar"))
}

// for Ant filter
import org.apache.tools.ant.filters.ReplaceTokens
import org.gradle.internal.jvm.Jvm

task generateVersionClass(type: Copy) {
from 'src/main/templates/Version.java'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ class ClassCollection {
?: throw IllegalArgumentException("Class $className was not found")
}

fun getClassFromQualifiedNameOrNull(className: QualifiedClassName): ClassMetaData? {
return qualifiedNameClassMap[className]
}

fun size(): Int {
return classSet.size
}
Expand Down
Loading

0 comments on commit 100d8d0

Please sign in to comment.