{"action":"created","issue":{"url":"https://api.github.com/repos/hotchemi/PermissionsDispatcher/issues/234","repository_url":"https://api.github.com/repos/hotchemi/PermissionsDispatcher","labels_url":"https://api.github.com/repos/hotchemi/PermissionsDispatcher/issues/234/labels{/name}","comments_url":"https://api.github.com/repos/hotchemi/PermissionsDispatcher/issues/234/comments","events_url":"https://api.github.com/repos/hotchemi/PermissionsDispatcher/issues/234/events","html_url":"https://github.com/hotchemi/PermissionsDispatcher/issues/234","id":194839253,"number":234,"title":"Not Found Generate Class","user":{"login":"thanawatSuj","id":7655591,"avatar_url":"https://avatars.githubusercontent.com/u/7655591?v=3","gravatar_id":"","url":"https://api.github.com/users/thanawatSuj","html_url":"https://github.com/thanawatSuj","followers_url":"https://api.github.com/users/thanawatSuj/followers","following_url":"https://api.github.com/users/thanawatSuj/following{/other_user}","gists_url":"https://api.github.com/users/thanawatSuj/gists{/gist_id}","starred_url":"https://api.github.com/users/thanawatSuj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thanawatSuj/subscriptions","organizations_url":"https://api.github.com/users/thanawatSuj/orgs","repos_url":"https://api.github.com/users/thanawatSuj/repos","events_url":"https://api.github.com/users/thanawatSuj/events{/privacy}","received_events_url":"https://api.github.com/users/thanawatSuj/received_events","type":"User","site_admin":false},"labels":[{"id":346811316,"url":"https://api.github.com/repos/hotchemi/PermissionsDispatcher/labels/question","name":"question","color":"5319e7","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-11T15:58:45Z","updated_at":"2016-12-14T10:33:37Z","closed_at":"2016-12-12T14:06:47Z","body":"\r\nNot Found ContactActivityPermissionsDispatcher (Generate Class)\r\n\r\n# **Project gradle** \r\n`buildscript {\r\n    repositories {\r\n        jcenter()\r\n    }\r\n    dependencies {\r\n        classpath 'com.android.tools.build:gradle:2.2.2'\r\n        classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'\r\n\r\n    }\r\n}\r\n\r\nallprojects {\r\n    repositories {\r\n        jcenter()\r\n        maven { url \"https://jitpack.io\" }\r\n    }\r\n}\r\n\r\ntask clean(type: Delete) {\r\n    delete rootProject.buildDir\r\n}\r\n`\r\n\r\n# **App Gradle**\r\n`apply plugin: 'com.android.library'\r\napply plugin: 'android-apt'\r\nandroid {\r\n    compileSdkVersion 25\r\n    buildToolsVersion \"25.0.1\"\r\n\r\n    defaultConfig {\r\n        minSdkVersion 17\r\n        targetSdkVersion 25\r\n        versionCode 1\r\n        versionName \"1.0\"\r\n\r\n        testInstrumentationRunner \"android.support.test.runner.AndroidJUnitRunner\"\r\n\r\n    }\r\n    buildTypes {\r\n        release {\r\n            minifyEnabled false\r\n            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'\r\n        }\r\n    }\r\n}\r\n\r\ndependencies {\r\n    compile fileTree(include: ['*.jar'], dir: 'libs')\r\n    compile 'com.android.support:appcompat-v7:25.0.1'\r\n    compile 'com.android.support:design:25.0.1'\r\n    compile 'com.android.support:recyclerview-v7:25.0.1'\r\n\r\n    compile files('libs/streamsupport-1.5.2.jar')\r\n    compile 'com.annimon:stream:1.1.4'\r\n\r\n    compile 'io.reactivex:rxandroid:1.2.1'\r\n    compile 'io.reactivex:rxjava:1.1.6'\r\n\r\n    compile 'uk.co.chrisjenx:calligraphy:2.2.0'\r\n    compile 'com.github.JakeWharton:ViewPagerIndicator:2.4.1'\r\n\r\n    compile 'com.github.hotchemi:permissionsdispatcher:2.2.1'\r\n    apt 'com.github.hotchemi:permissionsdispatcher-processor:2.2.1'\r\n}`\r\n\r\n# **Class Activity**\r\n`@RuntimePermissions\r\npublic class ContactActivity extends BaseAppActivity {\r\n\r\n    @BindView(R.id.btn_call)\r\n    TextView btnCall;\r\n\r\n    @Override\r\n    protected void onCreate(@Nullable Bundle savedInstanceState) {\r\n        super.onCreate(savedInstanceState);\r\n        setContentView(R.layout.activity_contact);\r\n        ButterKnife.bind(this);\r\n        iniTtitleBar(getString(R.string.text_contact_support));\r\n\r\n        btnCall.setOnClickListener(new OnSingleClickListener() {\r\n            @Override\r\n            public void onSingleClick(View v) {\r\n                \r\n            }\r\n        });\r\n\r\n    }\r\n\r\n    @NeedsPermission({Manifest.permission.CALL_PHONE})\r\n    public void callPhone() {\r\n        Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(\"tel:\" + \"02\"));\r\n        startActivity(intent);\r\n    }\r\n\r\n    @Override\r\n    public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\r\n        super.onRequestPermissionsResult(requestCode, permissions, grantResults);\r\n\r\n    }`"},"comment":{"url":"https://api.github.com/repos/hotchemi/PermissionsDispatcher/issues/comments/267000175","html_url":"https://github.com/hotchemi/PermissionsDispatcher/issues/234#issuecomment-267000175","issue_url":"https://api.github.com/repos/hotchemi/PermissionsDispatcher/issues/234","id":267000175,"user":{"login":"Napsters","id":16322897,"avatar_url":"https://avatars.githubusercontent.com/u/16322897?v=3","gravatar_id":"","url":"https://api.github.com/users/Napsters","html_url":"https://github.com/Napsters","followers_url":"https://api.github.com/users/Napsters/followers","following_url":"https://api.github.com/users/Napsters/following{/other_user}","gists_url":"https://api.github.com/users/Napsters/gists{/gist_id}","starred_url":"https://api.github.com/users/Napsters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Napsters/subscriptions","organizations_url":"https://api.github.com/users/Napsters/orgs","repos_url":"https://api.github.com/users/Napsters/repos","events_url":"https://api.github.com/users/Napsters/events{/privacy}","received_events_url":"https://api.github.com/users/Napsters/received_events","type":"User","site_admin":false},"created_at":"2016-12-14T10:33:37Z","updated_at":"2016-12-14T10:33:37Z","body":"You need to add `@RuntimePermissions` Annotation to your above main activity and please make sure your build.gradle is set. \r\n\r\n![screen shot 2016-12-14 at 6 27 57 pm](https://cloud.githubusercontent.com/assets/16322897/21178712/c3dc403a-c22b-11e6-8b4a-d608dbc17c48.png)\r\n"}}
{"actor":{"display_login":"Napsters"}}