Skip to content

Commit

Permalink
release V1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hackerchai committed Jun 25, 2018
1 parent da8a828 commit 56fb06b
Show file tree
Hide file tree
Showing 23 changed files with 101 additions and 101 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file removed app/release/app-release.apk
Binary file not shown.
Binary file added app/release/ic_launcher_HD.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/release/opening-source-source.apk
Binary file not shown.
Binary file added app/release/opening-source-source_legu.apk
Binary file not shown.
4 changes: 2 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.hackerchai.hackerchai">
package="org.openingsource.hackerchai">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

Expand Down Expand Up @@ -31,7 +31,7 @@
<activity android:name="org.openingsource.hackerchai.ui.AboutActivity"
android:theme="@style/AppTheme.NoActionBar"
android:launchMode="singleTask"
android:parentActivityName="com.hackerchai.org.openingsource.hackerchai.ui.MainActivity"/>
android:parentActivityName="org.openingsource.hackerchai.ui.MainActivity"/>

</application>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import android.widget.ImageView;
import android.widget.TextView;

import com.hackerchai.hackerchai.R;
import org.openingsource.hackerchai.R;
import org.openingsource.hackerchai.ui.PostsDetailActivity;
import com.prof.rssparser.Article;
import com.squareup.picasso.Picasso;
Expand Down Expand Up @@ -58,10 +58,12 @@ public void onBindViewHolder(@NonNull final ViewHolder viewHolder, int position)

final Article currentArticle = articles.get(position);

/*
Locale.setDefault(Locale.getDefault());
Date date = currentArticle.getPubDate();
SimpleDateFormat sdf = new SimpleDateFormat("dd MMMM yyyy");
final String pubDateString = sdf.format(date);
*/

viewHolder.title.setText(currentArticle.getTitle());

Expand All @@ -70,11 +72,12 @@ public void onBindViewHolder(@NonNull final ViewHolder viewHolder, int position)
.placeholder(R.drawable.placeholder)
.into(viewHolder.image);

viewHolder.pubDate.setText(pubDateString);
//viewHolder.pubDate.setText(pubDateString);

String description = "";
if (currentArticle.getDescription() != null) {
description = currentArticle.getDescription();
description = description.substring(3,description.length());
}

viewHolder.desc.setText(description);
Expand Down Expand Up @@ -128,7 +131,7 @@ public int getItemCount() {

class ViewHolder extends RecyclerView.ViewHolder {
TextView title;
TextView pubDate;
//TextView pubDate;
ImageView image;
TextView desc;
Button share;
Expand All @@ -138,7 +141,7 @@ public ViewHolder(View itemView) {

super(itemView);
title = itemView.findViewById(R.id.post_title);
pubDate = itemView.findViewById(R.id.post_date);
//pubDate = itemView.findViewById(R.id.post_date);
image = itemView.findViewById(R.id.post_photo);
desc = itemView.findViewById(R.id.post_desc);
share = itemView.findViewById(R.id.btn_share);
Expand Down
56 changes: 0 additions & 56 deletions app/src/main/java/org/openingsource/hackerchai/model/Posts.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import com.bumptech.glide.Glide;
import com.bumptech.glide.request.RequestOptions;
import com.hackerchai.hackerchai.R;
import org.openingsource.hackerchai.R;

public class AboutActivity extends AppCompatActivity {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import com.mikepenz.community_material_typeface_library.CommunityMaterial;
import com.mikepenz.iconics.IconicsDrawable;

import com.hackerchai.hackerchai.R;
import org.openingsource.hackerchai.R;

import de.psdev.licensesdialog.LicensesDialog;
import de.psdev.licensesdialog.licenses.License;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import android.widget.ProgressBar;
import android.widget.Toast;

import com.hackerchai.hackerchai.R;
import org.openingsource.hackerchai.R;
import org.openingsource.hackerchai.adapter.ArticleAdapter;
import com.prof.rssparser.Article;
import com.prof.rssparser.Parser;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import android.support.customtabs.CustomTabsIntent;
import android.support.v7.app.AppCompatActivity;

import com.hackerchai.hackerchai.R;
import org.openingsource.hackerchai.R;



Expand Down
8 changes: 8 additions & 0 deletions app/src/main/res/drawable/ic_facebook.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!-- drawable/facebook_box.xml -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:height="24dp"
android:width="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path android:fillColor="#000" android:pathData="M5,3H19A2,2 0 0,1 21,5V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V5A2,2 0 0,1 5,3M18,5H15.5A3.5,3.5 0 0,0 12,8.5V11H10V14H12V21H15V14H18V11H15V9A1,1 0 0,1 16,8H18V5Z" />
</vector>
8 changes: 8 additions & 0 deletions app/src/main/res/drawable/ic_google_plus.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!-- drawable/google_plus.xml -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:height="24dp"
android:width="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path android:fillColor="#000" android:pathData="M23,11H21V9H19V11H17V13H19V15H21V13H23M8,11V13.4H12C11.8,14.4 10.8,16.4 8,16.4C5.6,16.4 3.7,14.4 3.7,12C3.7,9.6 5.6,7.6 8,7.6C9.4,7.6 10.3,8.2 10.8,8.7L12.7,6.9C11.5,5.7 9.9,5 8,5C4.1,5 1,8.1 1,12C1,15.9 4.1,19 8,19C12,19 14.7,16.2 14.7,12.2C14.7,11.7 14.7,11.4 14.6,11H8Z" />
</vector>
8 changes: 8 additions & 0 deletions app/src/main/res/drawable/ic_qqchat.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!-- drawable/qqchat.xml -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:height="24dp"
android:width="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path android:fillColor="#000" android:pathData="M3.18,13.54C3.76,12.16 4.57,11.14 5.17,10.92C5.16,10.12 5.31,9.62 5.56,9.22C5.56,9.19 5.5,8.86 5.72,8.45C5.87,4.85 8.21,2 12,2C15.79,2 18.13,4.85 18.28,8.45C18.5,8.86 18.44,9.19 18.44,9.22C18.69,9.62 18.84,10.12 18.83,10.92C19.43,11.14 20.24,12.16 20.82,13.55C21.57,15.31 21.69,17 21.09,17.3C20.68,17.5 20.03,17 19.42,16.12C19.18,17.1 18.58,18 17.73,18.71C18.63,19.04 19.21,19.58 19.21,20.19C19.21,21.19 17.63,22 15.69,22C13.93,22 12.5,21.34 12.21,20.5H11.79C11.5,21.34 10.07,22 8.31,22C6.37,22 4.79,21.19 4.79,20.19C4.79,19.58 5.37,19.04 6.27,18.71C5.42,18 4.82,17.1 4.58,16.12C3.97,17 3.32,17.5 2.91,17.3C2.31,17 2.43,15.31 3.18,13.54Z" />
</vector>
8 changes: 8 additions & 0 deletions app/src/main/res/drawable/ic_telegram.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!-- drawable/telegram.xml -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:height="24dp"
android:width="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path android:fillColor="#000" android:pathData="M9.78,18.65L10.06,14.42L17.74,7.5C18.08,7.19 17.67,7.04 17.22,7.31L7.74,13.3L3.64,12C2.76,11.75 2.75,11.14 3.84,10.7L19.81,4.54C20.54,4.21 21.24,4.72 20.96,5.84L18.24,18.65C18.05,19.56 17.5,19.78 16.74,19.36L12.6,16.3L10.61,18.23C10.38,18.46 10.19,18.65 9.78,18.65Z" />
</vector>
8 changes: 8 additions & 0 deletions app/src/main/res/drawable/ic_twitter.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!-- drawable/twitter.xml -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:height="24dp"
android:width="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path android:fillColor="#000" android:pathData="M22.46,6C21.69,6.35 20.86,6.58 20,6.69C20.88,6.16 21.56,5.32 21.88,4.31C21.05,4.81 20.13,5.16 19.16,5.36C18.37,4.5 17.26,4 16,4C13.65,4 11.73,5.92 11.73,8.29C11.73,8.63 11.77,8.96 11.84,9.27C8.28,9.09 5.11,7.38 3,4.79C2.63,5.42 2.42,6.16 2.42,6.94C2.42,8.43 3.17,9.75 4.33,10.5C3.62,10.5 2.96,10.3 2.38,10C2.38,10 2.38,10 2.38,10.03C2.38,12.11 3.86,13.85 5.82,14.24C5.46,14.34 5.08,14.39 4.69,14.39C4.42,14.39 4.15,14.36 3.89,14.31C4.43,16 6,17.26 7.89,17.29C6.43,18.45 4.58,19.13 2.56,19.13C2.22,19.13 1.88,19.11 1.54,19.07C3.44,20.29 5.7,21 8.12,21C16,21 20.33,14.46 20.33,8.79C20.33,8.6 20.33,8.42 20.32,8.23C21.16,7.63 21.88,6.87 22.46,6Z" />
</vector>
20 changes: 20 additions & 0 deletions app/src/main/res/drawable/ic_weibo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">

<path
android:fillColor="#000000"
android:pathData="M16.948,3.802c-0.454-0.021-0.907,0.009-1.354,0.104c-0.413,0.088-0.688,0.499-0.599,0.911 c0.087,0.413,0.498,0.687,0.911,0.599c1.273-0.27,2.66,0.113,3.594,1.146c0.933,1.034,1.18,2.46,0.781,3.698 c-0.13,0.403,0.091,0.834,0.495,0.964c0.402,0.13,0.833-0.093,0.964-0.495c0.561-1.742,0.22-3.727-1.094-5.182 C19.661,4.455,18.309,3.866,16.948,3.802z" />
<path
android:fillColor="#000000"
android:pathData="M16.818,6.51c-0.221-0.01-0.433,0.006-0.651,0.052c-0.357,0.076-0.598,0.451-0.521,0.807 c0.077,0.355,0.426,0.572,0.781,0.495c0.426-0.09,0.911,0.045,1.224,0.391c0.313,0.347,0.395,0.81,0.26,1.224 c-0.112,0.346,0.07,0.721,0.417,0.833c0.347,0.111,0.722-0.07,0.833-0.417c0.273-0.848,0.094-1.817-0.547-2.526 C18.135,6.838,17.481,6.541,16.818,6.51z" />
<path
android:fillColor="#000000"
android:pathData="M17.026,11.589c-0.282-0.084-0.486-0.125-0.339-0.495c0.319-0.803,0.373-1.51,0.026-2.005 c-0.649-0.928-2.443-0.879-4.479-0.026c0,0-0.632,0.299-0.469-0.208c0.313-1.007,0.253-1.856-0.234-2.344 c-0.345-0.346-0.85-0.484-1.484-0.417C8.651,6.242,6.701,7.331,4.969,9.062C3.083,10.95,2,12.958,2,14.687 C2,17.995,6.236,20,10.385,20c5.439,0,9.063-3.168,9.063-5.677C19.448,12.806,18.174,11.944,17.026,11.589z M10.411,18.828 c-3.311,0.327-6.191-1.186-6.406-3.359C3.79,13.295,6.32,11.264,9.63,10.937c0.414-0.041,0.802-0.04,1.198-0.026 c2.768,0.097,4.994,1.484,5.182,3.385C16.225,16.471,13.722,18.501,10.411,18.828z" />
<path
android:fillColor="#000000"
android:pathData="M10.076,13.107c-0.373-0.092-0.755-0.128-1.133-0.094c-1.133,0.102-2.199,0.728-2.684,1.666 c-0.659,1.276-0.028,2.705,1.478,3.169c1.56,0.479,3.4-0.266,4.039-1.643C12.406,14.858,11.618,13.486,10.076,13.107z M8.943,16.346 c-0.303,0.46-0.94,0.682-1.428,0.469c-0.481-0.209-0.623-0.749-0.32-1.197c0.225-0.335,0.615-0.544,1.01-0.54 c0.132,0.002,0.273,0.022,0.394,0.07C9.089,15.348,9.241,15.881,8.943,16.346z" />
</vector>
14 changes: 3 additions & 11 deletions app/src/main/res/layout/card_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
android:layout_alignParentStart="true">
<ImageView
android:id="@+id/post_photo"
android:scaleType="centerCrop"
android:adjustViewBounds="true"
android:layout_alignParentTop="true"
android:layout_width="match_parent"
android:layout_height="180dp"/>
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/post_title"
android:layout_alignParentEnd="true"
Expand All @@ -40,14 +40,6 @@
android:padding="5dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/post_date"
android:layout_alignParentEnd="true"
android:layout_below="@+id/post_title"
android:textSize="20sp"
android:padding="5dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>

</RelativeLayout>

Expand All @@ -61,7 +53,7 @@
<TextView
android:id="@+id/post_desc"
android:lineSpacingExtra="5dp"
android:maxLines="2"
android:maxLines="4"
android:layout_margin="15dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
Expand Down
12 changes: 6 additions & 6 deletions app/src/main/res/menu/activity_main_drawer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
<menu>
<item
android:id="@+id/nav_telegram"
android:icon="@drawable/ic_menu_slideshow"
android:icon="@drawable/ic_telegram"
android:title="@string/contact_telegram" />
<item
android:id="@+id/nav_qq"
android:icon="@drawable/ic_menu_slideshow"
android:icon="@drawable/ic_qqchat"
android:title="@string/contact_qq" />
</menu>
</item>
Expand All @@ -38,19 +38,19 @@
<menu>
<item
android:id="@+id/nav_socila_weibo"
android:icon="@drawable/ic_menu_slideshow"
android:icon="@drawable/ic_weibo"
android:title="@string/social_weibo" />
<item
android:id="@+id/nav_socila_twitter"
android:icon="@drawable/ic_menu_slideshow"
android:icon="@drawable/ic_twitter"
android:title="@string/social_twitter" />
<item
android:id="@+id/nav_socila_facebook"
android:icon="@drawable/ic_menu_slideshow"
android:icon="@drawable/ic_facebook"
android:title="@string/social_facebook" />
<item
android:id="@+id/nav_socila_google"
android:icon="@drawable/ic_menu_slideshow"
android:icon="@drawable/ic_google_plus"
android:title="@string/social_google" />
</menu>
</item>
Expand Down
10 changes: 5 additions & 5 deletions app/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">开源工场</string>
<string name="nav_header_title">开源工场</string>
<string name="app_name">开源日报</string>
<string name="nav_header_title">开源日报</string>
<string name="action_settings">设置</string>
<string name="about">关于</string>
<string name="developers">开发者</string>
Expand All @@ -25,14 +25,14 @@
<string name="string_fork_on_github">在Github上Fork</string>
<string name="string_visit_website">访问网站</string>
<string name="string_send_an_email">邮件咨询</string>
<string name="string_email_subject">咨询开源工场应用相关事宜</string>
<string name="string_email_subject">咨询开源日报应用相关事宜</string>
<string name="string_license">许可证</string>
<string name="dialog_release">发布</string>
<string name="string_developer">开发者</string>
<string name="alert_error">无法加载数据</string>
<string name="about_text">
做你所想,开源工场
\n\n开源工场(Opening Source Org)是一个通过开源协作形式来创造生产力和寓技术于乐趣的频分多址非盈利开源社区。主张享受开源审美和动手做开源。目前有全球流行开源项目榜中榜开源周报、开源日报、媛宝、猿帅、开源尚青、开源工寮等原创栏目以及主办学生开源年会 (https://soscon.top/)(SOScon)。社区运作以技术委员会和各技术主持人为驱动。
\n\n开源日报是一个旨在保持每日学习习惯的栏目,每天推荐一个GitHub优质开源项目和一篇精选编程或者科技文章英文原文。
\n\n做你所想,开源工场。开源工场(Opening Source Org)是一个通过开源协作形式来创造生产力和寓技术于乐趣的频分多址非盈利开源社区。主张享受开源审美和动手做开源。目前有全球流行开源项目榜中榜开源周报、开源日报、媛宝、猿帅、开源尚青、开源工寮等原创栏目以及主办学生开源年会 (https://soscon.top/)(SOScon)。社区运作以技术委员会和各技术主持人为驱动。
\n\nSOScon(Students Open Source Conference)学生开源年会 (https://soscon.top/),是 SITCON (https://sitcon.org/) 的姊妹会议,与台湾 SITCON、香港 SITCON HK 合为两岸华人社区三大面向学生的技术会议。旨在鼓励更多的学生了解和参与开源;也是中国大陆首届面向学生的开源会议,从演讲者到工作人员到听众几乎全部为学生,享受开源乐趣,参与开源贡献。关于畅想未来这件事情,我们学生更有感觉
\n\n开源工场主要关注在使用开放协作的形式和开放源码的技术来创造生产力,打造具有切实意义的社会、教育、前沿技术、商业等项目。
\n\n开源农场是开源工场的姊妹项目,和开源工场关注生产力和创新不同,开源农场旨在关注 have fun 和 have joy,单纯享受开源和黑客文化的乐趣。
Expand Down
Loading

0 comments on commit 56fb06b

Please sign in to comment.