{"action":"created","issue":{"url":"https://api.github.com/repos/ACRA/acra/issues/678","repository_url":"https://api.github.com/repos/ACRA/acra","labels_url":"https://api.github.com/repos/ACRA/acra/issues/678/labels{/name}","comments_url":"https://api.github.com/repos/ACRA/acra/issues/678/comments","events_url":"https://api.github.com/repos/ACRA/acra/issues/678/events","html_url":"https://github.com/ACRA/acra/issues/678","id":337223453,"node_id":"MDU6SXNzdWUzMzcyMjM0NTM=","number":678,"title":"Implementing your own sender ","user":{"login":"vahidarr","id":12702190,"node_id":"MDQ6VXNlcjEyNzAyMTkw","avatar_url":"https://avatars2.githubusercontent.com/u/12702190?v=4","gravatar_id":"","url":"https://api.github.com/users/vahidarr","html_url":"https://github.com/vahidarr","followers_url":"https://api.github.com/users/vahidarr/followers","following_url":"https://api.github.com/users/vahidarr/following{/other_user}","gists_url":"https://api.github.com/users/vahidarr/gists{/gist_id}","starred_url":"https://api.github.com/users/vahidarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vahidarr/subscriptions","organizations_url":"https://api.github.com/users/vahidarr/orgs","repos_url":"https://api.github.com/users/vahidarr/repos","events_url":"https://api.github.com/users/vahidarr/events{/privacy}","received_events_url":"https://api.github.com/users/vahidarr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2018-06-30T15:43:18Z","updated_at":"2018-08-09T21:25:10Z","closed_at":"2018-07-01T19:44:44Z","author_association":"NONE","body":"I write my own implementation base on this page : [ACRA Document](https://github.com/ACRA/acra/wiki/report-destinations)\r\nthis is what i do  but not work in debug and Logcat why? plz help\r\n\r\n```\r\n@AcraCore(reportSenderFactoryClasses = YourOwnSenderfactory.class)\r\npublic class MyApplication extends Application {\r\n    @Override\r\n    protected void attachBaseContext(Context base) {\r\n        super.attachBaseContext(base);\r\n\r\n        ACRA.init(this);\r\n    }\r\n}\r\n```\r\n\r\n```\r\npublic class YourOwnSender implements ReportSender {\r\n    @Override\r\n    public void send(Context context, CrashReportData report) throws ReportSenderException {\r\n        Log.e(\"logerrr\", \"testttttt\");\r\n    }\r\n}\r\n```\r\n\r\n```\r\npublic class YourOwnSenderfactory implements ReportSenderFactory {\r\n    @NonNull\r\n    @Override\r\n    public ReportSender create(@NonNull Context context, @NonNull CoreConfiguration config) {\r\n        return null;\r\n    }\r\n    @Override\r\n    public boolean enabled(@NonNull CoreConfiguration config) {\r\n        return false;\r\n    }\r\n}\r\n```\r\n\r\nbuild.gradle file\r\n```\r\nandroid {\r\n    compileSdkVersion 27\r\n    defaultConfig {\r\n        applicationId \"app.vahid.testlogsender\"\r\n        minSdkVersion 17\r\n        targetSdkVersion 27\r\n        versionCode 1\r\n        versionName \"1.0\"\r\n        testInstrumentationRunner \"android.support.test.runner.AndroidJUnitRunner\"\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    compileOptions {\r\n        sourceCompatibility JavaVersion.VERSION_1_8\r\n        targetCompatibility JavaVersion.VERSION_1_8\r\n    }\r\n}\r\n\r\ndependencies {\r\n    implementation fileTree(dir: 'libs', include: ['*.jar'])\r\n    implementation 'com.android.support.constraint:constraint-layout:1.0.2'\r\n    implementation \"ch.acra:acra-toast:5.1.3\"\r\n    implementation \"ch.acra:acra-core:5.1.3\"\r\n    implementation 'com.android.support:support-v4:27.0.2'\r\n}\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ACRA/acra/issues/comments/411902497","html_url":"https://github.com/ACRA/acra/issues/678#issuecomment-411902497","issue_url":"https://api.github.com/repos/ACRA/acra/issues/678","id":411902497,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTkwMjQ5Nw==","user":{"login":"bhavadeepk","id":24377762,"node_id":"MDQ6VXNlcjI0Mzc3NzYy","avatar_url":"https://avatars1.githubusercontent.com/u/24377762?v=4","gravatar_id":"","url":"https://api.github.com/users/bhavadeepk","html_url":"https://github.com/bhavadeepk","followers_url":"https://api.github.com/users/bhavadeepk/followers","following_url":"https://api.github.com/users/bhavadeepk/following{/other_user}","gists_url":"https://api.github.com/users/bhavadeepk/gists{/gist_id}","starred_url":"https://api.github.com/users/bhavadeepk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhavadeepk/subscriptions","organizations_url":"https://api.github.com/users/bhavadeepk/orgs","repos_url":"https://api.github.com/users/bhavadeepk/repos","events_url":"https://api.github.com/users/bhavadeepk/events{/privacy}","received_events_url":"https://api.github.com/users/bhavadeepk/received_events","type":"User","site_admin":false},"created_at":"2018-08-09T21:25:10Z","updated_at":"2018-08-09T21:25:10Z","author_association":"NONE","body":"I just had to change compile sdk version to 27. I wonder how it compiles with acra version 4.x.\r\nHowever I encountered another error with the java version.\r\n```\r\nError:Error converting bytecode to dex:\r\nCause: Dex cannot parse version 52 byte code.\r\nThis is caused by library dependencies that have been compiled using Java 8 or above.\r\nIf you are using the 'java' gradle plugin in a library submodule add \r\ntargetCompatibility = '1.7'\r\nsourceCompatibility = '1.7'\r\nto that submodule's build.gradle file.\r\n...while parsing org/acra/ACRA.class\r\n```\r\n"}}
{"actor":{"display_login":"bhavadeepk"}}