{"id":13509038,"url":"https://github.com/iChenLei/weex-android-joke","last_synced_at":"2025-03-30T13:31:27.242Z","repository":{"id":54866245,"uuid":"80965146","full_name":"iChenLei/weex-android-joke","owner":"iChenLei","description":"A joke android app,powered by alibaba's weex.","archived":true,"fork":false,"pushed_at":"2021-01-24T05:15:43.000Z","size":11864,"stargazers_count":111,"open_issues_count":0,"forks_count":32,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-08-02T02:13:16.334Z","etag":null,"topics":["alibaba","android","demo","javascript","leancloud","weex"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iChenLei.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-05T03:07:43.000Z","updated_at":"2023-01-28T09:16:39.000Z","dependencies_parsed_at":"2022-08-14T05:10:27.465Z","dependency_job_id":null,"html_url":"https://github.com/iChenLei/weex-android-joke","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iChenLei%2Fweex-android-joke","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iChenLei%2Fweex-android-joke/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iChenLei%2Fweex-android-joke/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iChenLei%2Fweex-android-joke/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iChenLei","download_url":"https://codeload.github.com/iChenLei/weex-android-joke/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222552364,"owners_count":17002054,"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":["alibaba","android","demo","javascript","leancloud","weex"],"created_at":"2024-08-01T02:01:02.131Z","updated_at":"2024-11-01T09:30:25.855Z","avatar_url":"https://github.com/iChenLei.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"﻿\u003cp align=\"center\"\u003e\u003cimg src=\"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRgtSn_Pet6mk25RYAj5o2jn1SBluO0i3gtTA\u0026usqp=CAU\"\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://img.shields.io/badge/build-failing-red.svg?style=flat-square\"\u003e  \u003cimg src=\"https://img.shields.io/badge/Platform-Android-green.svg?style=flat-square\"\u003e  \u003cimg src=\"https://img.shields.io/badge/sdk--version-0.8.0-red.svg?style=flat-square\"\u003e  \u003cimg src=\"https://img.shields.io/badge/language-Js\u0026Java-green.svg?style=flat-square\"\u003e   \u003cimg src=\"https://img.shields.io/badge/weexfile-.we-green.svg?style=flat-square\"\u003e  \u003cimg src=\"https://img.shields.io/badge/License-MIT-green.svg?style=flat-square\"\u003e\u003c/p\u003e\n\n### 阿里巴巴weex校园开发大赛作品\n\n\u003e该app获得比赛第二名\n\n### weex开发流程\n\n1.打开Android Studio，初始化一个项目\n\n2.配置好gradle，安装好weex-sdk(我用的是v0.8.0版本)\n```gradle\n    compile 'com.android.support:recyclerview-v7:24.2.1'\n    compile 'com.android.support:appcompat-v7:24.2.1'\n    compile 'com.alibaba:fastjson:1.1.45'\n    compile 'com.taobao.android:weex_sdk:0.8.0@aar'\n    compile 'com.squareup.picasso:2.5.2'\n```\n\n3.利用Picasso实现ImageAdapter\n```java\npublic class ImageAdapter implements IWXImgLoaderAdapter\n```\n\n4.配置好webpack.config.js，实现热更新编译we文件到Android项目下的assets文件加下\n\n5.开发实现你的功能ing\n\n### 遇到的困难\n\n1.SDK0.8.0版本无法实现加载本地图片，新版本已经可以实现\n\n2.weex功能还不是很完善，自己需要写很多扩展\n\n3.前端开发者需要安卓原生开发知识\n\n### 为什么不使用weexpack和weex-toolkit\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;我开发笑话部落格的时候，这两个开发工具都不是很好用，[weexpack](https://github.com/weexteam/weex-pack)打包出来的apk难于更改。当时weexpack还没有插件市场等高级功能，现在weexpack已经很好用了。[weex-toolkit](https://github.com/weexteam/weex-toolkit)用来开发H5效果不错，开发安卓需要自己改下配置。现在weex-toolkit已经支持vue2.0，效果不错，大家可以无需学习.we语法直接使用vuejs语法，web原生开发两不误。\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;我的建议是两者现在都可以去用啦\n\n### .vue与.we的选择\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;在weex0.9.4版本之前，weex还不支持[vuejs](https://vuejs.org)和[rax](http://rax.taobaofed.org/)作为js runtime framework,在第二届weexconf上勾股宣布支持vuejs和raxjs作为weex的js运行时框架。个人建议使用vue2.0的语法来写，这样学习收益看起来是最好的，vuejs和weex两不误。我使用weex做开发的时候别无选择，只能写.we来编译。\n\n### Weex和React Native\n\n两者都是优秀的js移动开发框架，前者轻量适合嵌入，后者生态完善适合完全用RN来开发应用，如果有H5的考量建议weex,RN官方目前不支持兼容web开发（有第三方支持）。个人喜欢用weex开发安卓，rn开发ios.反正就是折腾啊。。。\n\n### 使用笑话部落格\n\n\u003e仅仅支持安卓apk\n\n```\n\tweex-android-joke\n\t ├──Android //java代码\n\t ├──Apk\n\t │   └─xiaohua.apk //可直接安装的apk文件，支持安卓4.0以上版本\n\t ├──weex  //weex代码,含有webpack配置文件\n\t └──README.md  //readme\n```\n使用git下载项目代码，会得到项目源码和安卓apk。\n```bash\n\tgit clone https://github.com/iChenLei/weex-android-joke.git\n```\n### License\n[MIT](http://opensource.org/licenses/MIT) Copyright (c) 2017-present, @ChenLei\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FiChenLei%2Fweex-android-joke","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FiChenLei%2Fweex-android-joke","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FiChenLei%2Fweex-android-joke/lists"}