{"id":16347064,"url":"https://github.com/ospoon/leakcanaryforeclipse","last_synced_at":"2025-11-09T02:30:26.392Z","repository":{"id":105557113,"uuid":"91541827","full_name":"OSpoon/LeakcanaryForEclipse","owner":"OSpoon","description":"Leakcanary1.5.1整合的Eclipse版本","archived":false,"fork":false,"pushed_at":"2017-05-17T08:32:41.000Z","size":297,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-28T06:09:38.426Z","etag":null,"topics":["eclipse","leakcanary"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OSpoon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-17T06:35:03.000Z","updated_at":"2017-05-17T07:02:28.000Z","dependencies_parsed_at":"2024-03-25T07:00:11.709Z","dependency_job_id":null,"html_url":"https://github.com/OSpoon/LeakcanaryForEclipse","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSpoon%2FLeakcanaryForEclipse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSpoon%2FLeakcanaryForEclipse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSpoon%2FLeakcanaryForEclipse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSpoon%2FLeakcanaryForEclipse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OSpoon","download_url":"https://codeload.github.com/OSpoon/LeakcanaryForEclipse/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239565664,"owners_count":19660158,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["eclipse","leakcanary"],"created_at":"2024-10-11T00:39:29.314Z","updated_at":"2025-11-09T02:30:26.329Z","avatar_url":"https://github.com/OSpoon.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"### LeakcanaryForEclipse集成\n#### 1.克隆本项目与需要集成的项目放置同意路径,并eclipse加载此项目\n#### 2.AndroidManifest.xml配置\n\t\n\t\u003c!-- To store the heap dumps and leak analysis results. --\u003e\n    \u003cuses-permission android:name=\"android.permission.READ_EXTERNAL_STORAGE\" /\u003e\n    \u003cuses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\" /\u003e\n\n\t\u003cservice\n        android:name=\"com.squareup.leakcanary.DisplayLeakService\"\n        android:enabled=\"false\" /\u003e\n    \n    \u003cservice\n        android:name=\"com.squareup.leakcanary.internal.HeapAnalyzerService\"\n        android:enabled=\"false\"\n        android:process=\":leakcanary\" /\u003e\n\n    \u003cactivity\n        android:name=\"com.squareup.leakcanary.internal.DisplayLeakActivity\"\n        android:enabled=\"false\"\n        android:icon=\"@drawable/leak_canary_icon\"\n        android:label=\"@string/leak_canary_display_activity_label\"\n        android:taskAffinity=\"com.squareup.leakcanary.{your Application ID}\"\n        android:theme=\"@style/leak_canary_LeakCanary.Base\" \u003e\n    \u003c/activity\u003e\n\n#### 3.在合适位置添加打开DisplayLeakActivity.java的事件\n\n\t@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}\n\n\t@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase R.id.action_settings:\n\t\t\tstartActivity(new Intent(MainActivity.this, DisplayLeakActivity.class));\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}\n\n#### 注:Leakcanary的具体配置详见[https://github.com/square/leakcanary](https://github.com/square/leakcanary \"Leakcanary\")","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fospoon%2Fleakcanaryforeclipse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fospoon%2Fleakcanaryforeclipse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fospoon%2Fleakcanaryforeclipse/lists"}