{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-java/issues/2196","repository_url":"https://api.github.com/repos/realm/realm-java","labels_url":"https://api.github.com/repos/realm/realm-java/issues/2196/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-java/issues/2196/comments","events_url":"https://api.github.com/repos/realm/realm-java/issues/2196/events","html_url":"https://github.com/realm/realm-java/pull/2196","id":129726859,"number":2196,"title":"Allow custom methods and public fields","user":{"login":"emanuelez","id":473050,"avatar_url":"https://avatars.githubusercontent.com/u/473050?v=3","gravatar_id":"","url":"https://api.github.com/users/emanuelez","html_url":"https://github.com/emanuelez","followers_url":"https://api.github.com/users/emanuelez/followers","following_url":"https://api.github.com/users/emanuelez/following{/other_user}","gists_url":"https://api.github.com/users/emanuelez/gists{/gist_id}","starred_url":"https://api.github.com/users/emanuelez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emanuelez/subscriptions","organizations_url":"https://api.github.com/users/emanuelez/orgs","repos_url":"https://api.github.com/users/emanuelez/repos","events_url":"https://api.github.com/users/emanuelez/events{/privacy}","received_events_url":"https://api.github.com/users/emanuelez/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-java/labels/S:Review","name":"S:Review","color":"ededed"},{"url":"https://api.github.com/repos/realm/realm-java/labels/T:Feature","name":"T:Feature","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"emanuelez","id":473050,"avatar_url":"https://avatars.githubusercontent.com/u/473050?v=3","gravatar_id":"","url":"https://api.github.com/users/emanuelez","html_url":"https://github.com/emanuelez","followers_url":"https://api.github.com/users/emanuelez/followers","following_url":"https://api.github.com/users/emanuelez/following{/other_user}","gists_url":"https://api.github.com/users/emanuelez/gists{/gist_id}","starred_url":"https://api.github.com/users/emanuelez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emanuelez/subscriptions","organizations_url":"https://api.github.com/users/emanuelez/orgs","repos_url":"https://api.github.com/users/emanuelez/repos","events_url":"https://api.github.com/users/emanuelez/events{/privacy}","received_events_url":"https://api.github.com/users/emanuelez/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2016-01-29T10:32:31Z","updated_at":"2016-02-03T06:41:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/realm/realm-java/pulls/2196","html_url":"https://github.com/realm/realm-java/pull/2196","diff_url":"https://github.com/realm/realm-java/pull/2196.diff","patch_url":"https://github.com/realm/realm-java/pull/2196.patch"},"body":"This PR introduces the support for custom methods and public fields. This is achieved with bytecode manipulation which will perform two tasks:\r\n\r\n * For every field add accessors named `<fieldName>$realmGetter()` and `<fieldName>$realmSetter()`\r\n * Substitute all field accesses (apart from those in the new accessors) with the invocation of the new accessors\r\n\r\nSince the bytecode manipulation step need to happen after the annotation processor execution, the new accessors have been added to the model classes of the unit tests of `realm/realm-library`.\r\n\r\nAlso, the annotation processor has been modified to generate accessors with the new name, instad of having to guess what the user did."},"comment":{"url":"https://api.github.com/repos/realm/realm-java/issues/comments/179041323","html_url":"https://github.com/realm/realm-java/pull/2196#issuecomment-179041323","issue_url":"https://api.github.com/repos/realm/realm-java/issues/2196","id":179041323,"user":{"login":"beeender","id":449296,"avatar_url":"https://avatars.githubusercontent.com/u/449296?v=3","gravatar_id":"","url":"https://api.github.com/users/beeender","html_url":"https://github.com/beeender","followers_url":"https://api.github.com/users/beeender/followers","following_url":"https://api.github.com/users/beeender/following{/other_user}","gists_url":"https://api.github.com/users/beeender/gists{/gist_id}","starred_url":"https://api.github.com/users/beeender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beeender/subscriptions","organizations_url":"https://api.github.com/users/beeender/orgs","repos_url":"https://api.github.com/users/beeender/repos","events_url":"https://api.github.com/users/beeender/events{/privacy}","received_events_url":"https://api.github.com/users/beeender/received_events","type":"User","site_admin":false},"created_at":"2016-02-03T06:41:23Z","updated_at":"2016-02-03T06:41:23Z","body":"After adding `mavenLocal()` to `allprojects.repositories`, and `classpath \"io.realm:realm-gradle-plugin:0.88.0-SNAPSHOT\"` `buildscript.dependencies`, the `realm-android` plugin can be found.\r\nThen it complains about `Could not find io.realm:realm-gradle-plugin:0.88.0-SNAPSHOT.`\r\n\r\n```\r\n* What went wrong:\r\nA problem occurred configuring root project 'BetterObjectTest'.\r\n> Could not resolve all dependencies for configuration ':classpath'.\r\n   > Could not find io.realm:realm-gradle-plugin:0.88.0-SNAPSHOT.\r\n     Searched in the following locations:\r\n         https://jcenter.bintray.com/io/realm/realm-gradle-plugin/0.88.0-SNAPSHOT/maven-metadata.xml\r\n         https://jcenter.bintray.com/io/realm/realm-gradle-plugin/0.88.0-SNAPSHOT/realm-gradle-plugin-0.88.0-SNAPSHOT.pom\r\n         https://jcenter.bintray.com/io/realm/realm-gradle-plugin/0.88.0-SNAPSHOT/realm-gradle-plugin-0.88.0-SNAPSHOT.jar\r\n     Required by:\r\n         :BetterObjectTest:unspecified\r\n   > Could not find io.realm:realm-annotations-processor:0.88.0-SNAPSHOT.\r\n     Searched in the following locations:\r\n         https://jcenter.bintray.com/io/realm/realm-annotations-processor/0.88.0-SNAPSHOT/maven-metadata.xml\r\n         https://jcenter.bintray.com/io/realm/realm-annotations-processor/0.88.0-SNAPSHOT/realm-annotations-processor-0.88.0-SNAPSHOT.pom\r\n         https://jcenter.bintray.com/io/realm/realm-annotations-processor/0.88.0-SNAPSHOT/realm-annotations-processor-0.88.0-SNAPSHOT.jar\r\n     Required by:\r\n         :BetterObjectTest:unspecified\r\n```"}}