diff --git a/doc/智取无人物流系统需求构思及描述.docx b/doc/智取无人物流系统需求构思及描述.docx
new file mode 100644
index 0000000..ae6abe1
Binary files /dev/null and b/doc/智取无人物流系统需求构思及描述.docx differ
diff --git a/doc/智取无人物流系统需求规格说明书.docx b/doc/智取无人物流系统需求规格说明书.docx
new file mode 100644
index 0000000..033afc5
Binary files /dev/null and b/doc/智取无人物流系统需求规格说明书.docx differ
diff --git a/src/Logistics/.gitignore b/src/Logistics/.gitignore
new file mode 100644
index 0000000..aa724b7
--- /dev/null
+++ b/src/Logistics/.gitignore
@@ -0,0 +1,15 @@
+*.iml
+.gradle
+/local.properties
+/.idea/caches
+/.idea/libraries
+/.idea/modules.xml
+/.idea/workspace.xml
+/.idea/navEditor.xml
+/.idea/assetWizardSettings.xml
+.DS_Store
+/build
+/captures
+.externalNativeBuild
+.cxx
+local.properties
diff --git a/src/Logistics/.idea/.gitignore b/src/Logistics/.idea/.gitignore
new file mode 100644
index 0000000..26d3352
--- /dev/null
+++ b/src/Logistics/.idea/.gitignore
@@ -0,0 +1,3 @@
+# Default ignored files
+/shelf/
+/workspace.xml
diff --git a/src/Logistics/.idea/compiler.xml b/src/Logistics/.idea/compiler.xml
new file mode 100644
index 0000000..fb7f4a8
--- /dev/null
+++ b/src/Logistics/.idea/compiler.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Logistics/.idea/deploymentTargetDropDown.xml b/src/Logistics/.idea/deploymentTargetDropDown.xml
new file mode 100644
index 0000000..ccd930c
--- /dev/null
+++ b/src/Logistics/.idea/deploymentTargetDropDown.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Logistics/.idea/gradle.xml b/src/Logistics/.idea/gradle.xml
new file mode 100644
index 0000000..526b4c2
--- /dev/null
+++ b/src/Logistics/.idea/gradle.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Logistics/.idea/misc.xml b/src/Logistics/.idea/misc.xml
new file mode 100644
index 0000000..52b23a3
--- /dev/null
+++ b/src/Logistics/.idea/misc.xml
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Logistics/.idea/vcs.xml b/src/Logistics/.idea/vcs.xml
new file mode 100644
index 0000000..b2bdec2
--- /dev/null
+++ b/src/Logistics/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Logistics/app/.gitignore b/src/Logistics/app/.gitignore
new file mode 100644
index 0000000..42afabf
--- /dev/null
+++ b/src/Logistics/app/.gitignore
@@ -0,0 +1 @@
+/build
\ No newline at end of file
diff --git a/src/Logistics/app/build.gradle b/src/Logistics/app/build.gradle
new file mode 100644
index 0000000..6bf05e2
--- /dev/null
+++ b/src/Logistics/app/build.gradle
@@ -0,0 +1,39 @@
+plugins {
+ id 'com.android.application'
+}
+
+android {
+ compileSdk 32
+
+ defaultConfig {
+ applicationId "com.example.logistics"
+ minSdk 21
+ targetSdk 32
+ versionCode 1
+ versionName "1.0"
+
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+ }
+
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+ }
+ }
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+ }
+}
+
+dependencies {
+
+ implementation 'androidx.appcompat:appcompat:1.3.0'
+ implementation 'com.google.android.material:material:1.4.0'
+ implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
+ implementation files('libs\\mysql-connector-java-5.0.7.jar')
+ testImplementation 'junit:junit:4.13.2'
+ androidTestImplementation 'androidx.test.ext:junit:1.1.3'
+ androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
+}
\ No newline at end of file
diff --git a/src/Logistics/app/libs/mysql-connector-java-5.0.7.jar b/src/Logistics/app/libs/mysql-connector-java-5.0.7.jar
new file mode 100644
index 0000000..412138a
Binary files /dev/null and b/src/Logistics/app/libs/mysql-connector-java-5.0.7.jar differ
diff --git a/src/Logistics/app/src/androidTest/java/com/example/logistics/ExampleInstrumentedTest.java b/src/Logistics/app/src/androidTest/java/com/example/logistics/ExampleInstrumentedTest.java
new file mode 100644
index 0000000..91ed906
--- /dev/null
+++ b/src/Logistics/app/src/androidTest/java/com/example/logistics/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package com.example.logistics;
+
+import android.content.Context;
+
+import androidx.test.platform.app.InstrumentationRegistry;
+import androidx.test.ext.junit.runners.AndroidJUnit4;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import static org.junit.Assert.*;
+
+/**
+ * Instrumented test, which will execute on an Android device.
+ *
+ * @see Testing documentation
+ */
+@RunWith(AndroidJUnit4.class)
+public class ExampleInstrumentedTest {
+ @Test
+ public void useAppContext() {
+ // Context of the app under test.
+ Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
+ assertEquals("com.example.logistics", appContext.getPackageName());
+ }
+}
\ No newline at end of file
diff --git a/src/Logistics/app/src/main/AndroidManifest.xml b/src/Logistics/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..414e4cc
--- /dev/null
+++ b/src/Logistics/app/src/main/AndroidManifest.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Logistics/app/src/main/java/com/example/logistics/dao/userDao.java b/src/Logistics/app/src/main/java/com/example/logistics/dao/userDao.java
new file mode 100644
index 0000000..020590e
--- /dev/null
+++ b/src/Logistics/app/src/main/java/com/example/logistics/dao/userDao.java
@@ -0,0 +1,139 @@
+package com.example.logistics.dao;
+
+import android.util.Log;
+
+import com.example.logistics.entity.User;
+import com.example.logistics.mysqlconnection.DBOpenHelper;
+import com.google.android.material.behavior.HideBottomViewOnScrollBehavior;
+
+import java.sql.PreparedStatement;
+import java.sql.SQLException;
+import java.util.HashMap;
+import java.sql.ResultSet;
+import java.sql.Connection;
+
+public class userDao {
+
+ private static final String TAG = "userDao";
+
+ public int login(String username, String password){
+ HashMap map = new HashMap<>();
+
+ Connection connection = DBOpenHelper.getConn();
+
+ int msg = 0;
+ try{
+ String sql = "select * from users where username = ?";
+
+ if(connection != null){
+ PreparedStatement ps = connection.prepareStatement(sql);
+ if(ps != null){
+ Log.e(TAG, "username: " + username);
+ ps.setString(1,username);
+ ResultSet rs = ps.executeQuery();
+
+ int count = rs.getMetaData().getColumnCount();
+ while(rs.next()){
+ for(int i = 1; i <= count; i++){
+ String field = rs.getMetaData().getColumnName(i);
+ map.put(field, rs.getString(field));
+ }
+ }
+ connection.close();
+ ps.close();
+
+ if(map.size() != 0){
+ StringBuilder s = new StringBuilder();
+ for(String key:map.keySet()){
+ if(key.equals("password")){
+ if(password.equals(map.get(key))){
+ msg = 1; //password correct
+ }else{
+ msg = 2; //password incorrect
+ }
+ break;
+ }
+ }
+ }else{
+ Log.e(TAG, "result is null");
+ msg = 3; //result is null
+ }
+ }else{
+ Log.e(TAG, "ps is null");
+ msg = 0;
+ }
+ }else{
+ Log.e(TAG, "connection is null");
+ msg = 0;
+ }
+ }catch (Exception e){
+ e.printStackTrace();
+ Log.d(TAG, "login bug: " + e.getMessage());
+ msg = 0;
+ }
+ return msg;
+ }
+
+ public User findUser(String username){
+
+ Connection connection = DBOpenHelper.getConn();
+ User user = null;
+ try{
+ String sql = "select * from users where username = ?";
+ if(connection != null){
+ PreparedStatement ps = connection.prepareStatement(sql);
+ if(ps != null){
+ ps.setString(1, username);
+ ResultSet rs = ps.executeQuery();
+
+ while(rs.next()){
+ int userId = rs.getInt(1);
+ String userName = rs.getString(2);
+ String passWord = rs.getString(3);
+ String phoneNum = rs.getString(4);
+
+ user = new User(userId, userName, passWord, phoneNum);
+ }
+ }
+ }
+ } catch (SQLException throwables) {
+ throwables.printStackTrace();
+ }
+ return user;
+ }
+
+ public boolean register(User user){
+ HashMap map = new HashMap<>();
+
+ Connection connection = DBOpenHelper.getConn();
+ try{
+ String sql = "insert into users(username, password, phonenum) values (?,?,?)";
+
+ if(connection != null){
+ PreparedStatement ps = connection.prepareStatement(sql);
+
+ if(ps != null){
+ ps.setString(1, user.getUserName());
+ ps.setString(2, user.getPassWord());
+ ps.setString(3, user.getPhoneNum());
+
+ int rs = ps.executeUpdate();
+ if(rs > 0){
+ return true;
+ }else{
+ return false;
+ }
+ }else{
+ return false;
+ }
+ }else{
+ return false;
+ }
+ }catch(Exception e){
+ e.printStackTrace();
+ Log.e(TAG, "异常 register");
+ return false;
+ }
+ }
+
+}
diff --git a/src/Logistics/app/src/main/java/com/example/logistics/entity/User.java b/src/Logistics/app/src/main/java/com/example/logistics/entity/User.java
new file mode 100644
index 0000000..bec6082
--- /dev/null
+++ b/src/Logistics/app/src/main/java/com/example/logistics/entity/User.java
@@ -0,0 +1,52 @@
+package com.example.logistics.entity;
+
+public class User {
+ private int userId;
+ private String userName;
+ private String passWord;
+ private String phoneNum;
+
+ public User(){
+
+ }
+
+ public User(int id, String username, String password, String phonenum){
+ this.userId = id;
+ this.userName = username;
+ this.passWord = password;
+ this.phoneNum = phonenum;
+ }
+
+ public int getUserId(){
+ return userId;
+ }
+
+ public void setUserId(int id){
+ this.userId = id;
+ }
+
+ public String getUserName(){
+ return userName;
+ }
+
+ public void setUserName(String username){
+ this.userName = username;
+ }
+
+ public String getPassWord(){
+ return passWord;
+ }
+
+ public void setPassWord(String password){
+ this.passWord = password;
+ }
+
+ public String getPhoneNum(){
+ return phoneNum;
+ }
+
+ public void setPhoneNum(String phonenum){
+ this.phoneNum = phonenum;
+ }
+
+}
diff --git a/src/Logistics/app/src/main/java/com/example/logistics/mysqlconnection/DBOpenHelper.java b/src/Logistics/app/src/main/java/com/example/logistics/mysqlconnection/DBOpenHelper.java
new file mode 100644
index 0000000..bfde32b
--- /dev/null
+++ b/src/Logistics/app/src/main/java/com/example/logistics/mysqlconnection/DBOpenHelper.java
@@ -0,0 +1,28 @@
+package com.example.logistics.mysqlconnection;
+
+import java.sql.Connection;
+import java.sql.DriverManager;
+import java.sql.SQLException;
+
+public class DBOpenHelper {
+ private static String diver = "com.mysql.jdbc.Driver";
+ //加入utf-8是为了后面往表中输入中文,表中不会出现乱码的情况
+ private static String url = "jdbc:mysql://49.235.83.73:3306/logistics?characterEncoding=utf-8";
+ private static String user = "root";//用户名
+ private static String password = "123";//密码
+ /*
+ * 连接数据库
+ * */
+ public static Connection getConn(){
+ Connection conn = null;
+ try {
+ Class.forName(diver);
+ conn = (Connection) DriverManager.getConnection(url,user,password);//获取连接
+ } catch (ClassNotFoundException e) {
+ e.printStackTrace();
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ return conn;
+ }
+}
\ No newline at end of file
diff --git a/src/Logistics/app/src/main/java/com/example/logistics/tools/MD5Utils.java b/src/Logistics/app/src/main/java/com/example/logistics/tools/MD5Utils.java
new file mode 100644
index 0000000..f6c065f
--- /dev/null
+++ b/src/Logistics/app/src/main/java/com/example/logistics/tools/MD5Utils.java
@@ -0,0 +1,37 @@
+package com.example.logistics.tools;
+
+import java.security.MessageDigest;
+import java.security.NoSuchAlgorithmException;
+public class MD5Utils {
+ //md5 加密算法
+ public static String md5(String text) {
+ MessageDigest digest = null;
+ try {
+ digest = MessageDigest.getInstance("md5");
+ // 数组 byte[] result -> digest.digest( ); 文本 text.getBytes();
+ byte[] result = digest.digest(text.getBytes());
+ //创建StringBuilder对象 然后建议StringBuffer,安全性高
+ //StringBuilder sb = new StringBuilder();
+ StringBuffer sb = new StringBuffer();
+ // result数组,digest.digest ( ); -> text.getBytes();
+ // for 循环数组byte[] result;
+ for (byte b : result){
+ // 0xff 为16进制
+ int number = b & 0xff;
+ // number值 转换 字符串 Integer.toHexString( );
+ String hex = Integer.toHexString(number);
+ if (hex.length() == 1){
+ sb.append("0"+hex);
+ }else {
+ sb.append(hex);
+ }
+ }
+ //sb StringBuffer sb = new StringBuffer();对象实例化
+ return sb.toString();
+ } catch (NoSuchAlgorithmException e) {
+ e.printStackTrace();
+ //发送异常return空字符串
+ return "";
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/Logistics/app/src/main/java/com/example/logistics/ui/MainActivity.java b/src/Logistics/app/src/main/java/com/example/logistics/ui/MainActivity.java
new file mode 100644
index 0000000..accf321
--- /dev/null
+++ b/src/Logistics/app/src/main/java/com/example/logistics/ui/MainActivity.java
@@ -0,0 +1,86 @@
+package com.example.logistics.ui;
+
+import com.example.logistics.R;
+import com.example.logistics.dao.userDao;
+
+import android.annotation.SuppressLint;
+import android.app.Activity;
+import android.content.Intent;
+import android.os.Bundle;
+import android.os.Handler;
+import android.os.Message;
+import android.util.Log;
+import android.view.View;
+import android.widget.Button;
+import android.widget.EditText;
+import android.widget.Toast;
+
+
+public class MainActivity extends Activity {
+
+ // 调用Actvity
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+ Intent intent = new Intent(MainActivity.this, MenuActivity.class);
+ startActivity(intent);
+ Button loginButton = (Button) this.findViewById(R.id.LoginButton);
+ Button signUpButton = (Button) this.findViewById(R.id.SignUpButton);
+
+ loginButton.setOnClickListener(
+ new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ login(v);
+ }
+ }
+ );
+ signUpButton.setOnClickListener(
+ new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent intent = new Intent(MainActivity.this, SignUpActivity.class);
+ startActivity(intent);
+ }
+ }
+ );
+
+ }
+
+ public void login(View view){
+ EditText userName = (EditText) this.findViewById(R.id.UserNameEdit);
+ EditText passWord = (EditText) this.findViewById(R.id.PassWordEdit);
+
+ new Thread(){
+ @Override
+ public void run(){
+ userDao userDao = new userDao();
+ int msg = userDao.login(userName.getText().toString().trim(), passWord.getText().toString().trim());
+ Log.e("MAin", "msg");
+ hand1.sendEmptyMessage(msg);
+ if(msg == 1){
+ Intent intent = new Intent(MainActivity.this, MenuActivity.class);
+ startActivity(intent);
+ }
+ }
+ }.start();
+ }
+
+ @SuppressLint("HandlerLeak")
+ final Handler hand1 = new Handler(){
+ @Override
+ public void handleMessage(Message msg){
+ if(msg.what == 0){
+ Toast.makeText(getApplicationContext(), "登录失败", Toast.LENGTH_SHORT).show();
+ }else if(msg.what == 1){
+ Toast.makeText(getApplicationContext(), "登录成功", Toast.LENGTH_SHORT).show();
+ }else if(msg.what == 2){
+ Toast.makeText(getApplicationContext(), "密码错误", Toast.LENGTH_SHORT).show();
+ }else if(msg.what == 3){
+ Toast.makeText(getApplicationContext(), "账号不存在", Toast.LENGTH_SHORT).show();
+ }
+ }
+ };
+
+}
\ No newline at end of file
diff --git a/src/Logistics/app/src/main/java/com/example/logistics/ui/MenuActivity.java b/src/Logistics/app/src/main/java/com/example/logistics/ui/MenuActivity.java
new file mode 100644
index 0000000..27bbacc
--- /dev/null
+++ b/src/Logistics/app/src/main/java/com/example/logistics/ui/MenuActivity.java
@@ -0,0 +1,132 @@
+package com.example.logistics.ui;
+
+import androidx.fragment.app.Fragment;
+import androidx.fragment.app.FragmentTransaction;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.ImageView;
+import android.widget.LinearLayout;
+import android.widget.TextView;
+
+import androidx.appcompat.app.AppCompatActivity;
+import androidx.fragment.app.FragmentManager;
+
+import com.example.logistics.R;
+
+public class MenuActivity extends AppCompatActivity implements View.OnClickListener{
+ private LinearLayout ly_one,ly_two,ly_three;
+ private TextView mTextView1,mTextView2,mTextView3;
+ private TextView mTextNum1,mTextNum2,mTextNum3;
+ private ImageView mImageView;
+
+ private Fragment mFrag1;
+ private Fragment mFrag2;
+ private Fragment mFrag3;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_menu);
+
+ bindView();
+ selectTab(0);
+ }
+
+ private void bindView() {
+
+ ly_one = (LinearLayout)findViewById(R.id.ly_tab_menu_deal);
+ ly_two = (LinearLayout)findViewById(R.id.ly_tab_menu_poi);
+ ly_three = (LinearLayout)findViewById(R.id.ly_tab_menu_more);
+
+ mTextView1 = (TextView)findViewById(R.id.tab_menu_deal);
+ mTextView2 = (TextView)findViewById(R.id.tab_menu_poi);
+ mTextView3 = (TextView)findViewById(R.id.tab_menu_more);
+
+ mTextNum1 = (TextView)findViewById(R.id.tab_menu_deal_num);
+ mTextNum2 = (TextView)findViewById(R.id.tab_menu_poi_num);
+ mTextNum3 = (TextView)findViewById(R.id.tab_menu_more_num);
+
+
+ ly_one.setOnClickListener(this);
+ ly_two.setOnClickListener(this);
+ ly_three.setOnClickListener(this);
+ }
+
+ //重置所有文本的选中状态
+ private void setSelected() {
+ mTextView1.setSelected(false);
+ mTextView2.setSelected(false);
+ mTextView3.setSelected(false);
+ }
+ @Override
+ public void onClick(View v) {
+ setSelected();
+ switch (v.getId()) {
+ case R.id.ly_tab_menu_deal:
+ selectTab(0);
+ break;
+ case R.id.ly_tab_menu_poi:
+ selectTab(1);
+ break;
+ case R.id.ly_tab_menu_more:
+ selectTab(2);
+ break;
+ }
+ }
+
+ private void selectTab(int i){
+ FragmentManager manager = getSupportFragmentManager();
+
+ FragmentTransaction transaction = manager.beginTransaction();
+
+ hideFragments(transaction);
+ switch (i) {
+ case 0:
+ mTextView1.setSelected(true);
+ mTextNum1.setVisibility(View.INVISIBLE);
+ if (mFrag1 == null) {
+ mFrag1 = new MyFragment1();
+ transaction.add(R.id.fragment_container, mFrag1);
+ } else {
+ //如果第一页对应的Fragment已经实例化,则直接显示出来
+ transaction.show(mFrag1);
+ }
+ break;
+ case 1:
+ mTextView2.setSelected(true);
+ mTextNum2.setVisibility(View.INVISIBLE);
+ if (mFrag2 == null) {
+ mFrag2 = new MyFragment2();
+ transaction.add(R.id.fragment_container, mFrag2);
+ } else {
+ transaction.show(mFrag2);
+ }
+ break;
+ case 2:
+ mTextView3.setSelected(true);
+ mTextNum3.setVisibility(View.INVISIBLE);
+ if (mFrag3 == null) {
+ mFrag3 = new MyFragment3();
+ transaction.add(R.id.fragment_container, mFrag3);
+ } else {
+ transaction.show(mFrag3);
+ }
+ break;
+ }
+ //不要忘记提交事务
+ transaction.commit();
+ }
+
+ private void hideFragments(FragmentTransaction transaction) {
+ if (mFrag1 != null) {
+ transaction.hide(mFrag1);
+ }
+ if (mFrag2 != null) {
+ transaction.hide(mFrag2);
+ }
+ if (mFrag3 != null) {
+ transaction.hide(mFrag3);
+ }
+ }
+
+}
diff --git a/src/Logistics/app/src/main/java/com/example/logistics/ui/MyFragment1.java b/src/Logistics/app/src/main/java/com/example/logistics/ui/MyFragment1.java
new file mode 100644
index 0000000..8577436
--- /dev/null
+++ b/src/Logistics/app/src/main/java/com/example/logistics/ui/MyFragment1.java
@@ -0,0 +1,62 @@
+package com.example.logistics.ui;
+
+
+import android.content.Context;
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.Button;
+import android.widget.TextView;
+
+import androidx.annotation.Nullable;
+import androidx.fragment.app.Fragment;
+
+import com.example.logistics.R;
+
+public class MyFragment1 extends Fragment implements View.OnClickListener{
+ private Context mContext;
+ private Button btn_one;
+ private Button btn_two;
+ private Button btn_three;
+ private Button btn_four;
+
+ public MyFragment1(){
+
+ }
+ @Nullable
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
+ View view = inflater.inflate(R.layout.my_fragment1,container,false);
+ btn_one = (Button)view.findViewById(R.id.btn_one);
+ btn_two = (Button)view.findViewById(R.id.btn_two);
+ btn_three = (Button)view.findViewById(R.id.btn_three);
+
+ btn_one.setOnClickListener(this);
+ btn_two.setOnClickListener(this);
+ btn_three.setOnClickListener(this);
+ return view;
+ }
+
+ @Override
+ public void onClick(View v) {
+ switch(v.getId()){
+ case R.id.btn_one:
+ TextView mTextViewDeal = (TextView)getActivity().findViewById(R.id.tab_menu_deal_num);
+ mTextViewDeal.setText("11");
+ mTextViewDeal.setVisibility(View.VISIBLE);
+ break;
+ case R.id.btn_two:
+ TextView mTextViewPoi = (TextView)getActivity().findViewById(R.id.tab_menu_poi_num);
+ mTextViewPoi.setText("99");
+ mTextViewPoi.setVisibility(View.VISIBLE);
+ break;
+ case R.id.btn_three:
+ TextView mTextViewMore = (TextView)getActivity().findViewById(R.id.tab_menu_more_num);
+ mTextViewMore.setText("999+");
+ mTextViewMore.setVisibility(View.VISIBLE);
+ break;
+ }
+ }
+}
diff --git a/src/Logistics/app/src/main/java/com/example/logistics/ui/MyFragment2.java b/src/Logistics/app/src/main/java/com/example/logistics/ui/MyFragment2.java
new file mode 100644
index 0000000..aa5ad5b
--- /dev/null
+++ b/src/Logistics/app/src/main/java/com/example/logistics/ui/MyFragment2.java
@@ -0,0 +1,34 @@
+package com.example.logistics.ui;
+
+import androidx.fragment.app.Fragment;
+import android.content.Context;
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.Button;
+import android.widget.TextView;
+
+import androidx.annotation.Nullable;
+
+import com.example.logistics.R;
+
+public class MyFragment2 extends Fragment implements View.OnClickListener{
+ public MyFragment2(){
+
+ }
+ @Nullable
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
+ View view = inflater.inflate(R.layout.my_fragment2,container,false);
+
+ return view;
+ }
+
+ @Override
+ public void onClick(View view) {
+
+ }
+}
+
diff --git a/src/Logistics/app/src/main/java/com/example/logistics/ui/MyFragment3.java b/src/Logistics/app/src/main/java/com/example/logistics/ui/MyFragment3.java
new file mode 100644
index 0000000..3737ef5
--- /dev/null
+++ b/src/Logistics/app/src/main/java/com/example/logistics/ui/MyFragment3.java
@@ -0,0 +1,31 @@
+package com.example.logistics.ui;
+
+import androidx.fragment.app.Fragment;
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import androidx.annotation.Nullable;
+
+import com.example.logistics.R;
+
+public class MyFragment3 extends Fragment implements View.OnClickListener{
+ public MyFragment3(){
+
+ }
+ @Nullable
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
+ View view = inflater.inflate(R.layout.my_fragment3,container,false);
+
+ return view;
+ }
+
+ @Override
+ public void onClick(View view) {
+
+ }
+}
+
diff --git a/src/Logistics/app/src/main/java/com/example/logistics/ui/SignUpActivity.java b/src/Logistics/app/src/main/java/com/example/logistics/ui/SignUpActivity.java
new file mode 100644
index 0000000..f927349
--- /dev/null
+++ b/src/Logistics/app/src/main/java/com/example/logistics/ui/SignUpActivity.java
@@ -0,0 +1,115 @@
+package com.example.logistics.ui;
+
+import android.annotation.SuppressLint;
+import android.app.Activity;
+import android.content.Intent;
+import android.os.Bundle;
+import android.os.Handler;
+import android.os.Message;
+import android.view.View;
+import android.widget.Button;
+import android.widget.EditText;
+import android.widget.Toast;
+
+import com.example.logistics.R;
+import com.example.logistics.dao.userDao;
+import com.example.logistics.entity.User;
+
+public class SignUpActivity extends Activity {
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_sign_up);
+
+ Button signUpButton = (Button) this.findViewById(R.id.SignUpButton);
+ Button backLoginButton = (Button) this.findViewById(R.id.BackLoginButton);
+
+ signUpButton.setOnClickListener(
+ new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ register(v);
+ }
+ }
+ );
+ // 返回登录按钮监听器
+ backLoginButton.setOnClickListener(
+ new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ // 跳转到登录界面
+ Intent intent = new Intent(SignUpActivity.this, MainActivity.class);
+ startActivity(intent);
+ }
+ }
+ );
+
+ }
+
+ public void register(View view){
+ EditText userName = (EditText) this.findViewById(R.id.UserNameEdit);
+ EditText passWord = (EditText) this.findViewById(R.id.PassWordEdit);
+ EditText passWordAgain = (EditText) this.findViewById(R.id.PassWordAgainEdit);
+ EditText phone = (EditText) this.findViewById(R.id.PhoneEdit);
+
+ String strUserName = userName.getText().toString().trim();
+ String strPassWord = passWord.getText().toString().trim();
+ String strPassWordAgain = passWordAgain.getText().toString().trim();
+ String strPhoneNumber = phone.getText().toString().trim();
+
+ if (strUserName.length() > 10) {
+ Toast.makeText(SignUpActivity.this, "用户名长度必须小于10!", Toast.LENGTH_SHORT).show();
+ } else if (strUserName.length() == 0) {
+ Toast.makeText(SignUpActivity.this, "用户名不能为空!", Toast.LENGTH_SHORT).show();
+ } else if (strPassWord.length() > 16) {
+ Toast.makeText(SignUpActivity.this, "密码长度必须小于16!", Toast.LENGTH_SHORT).show();
+ } else if (strPassWord.length() == 0) {
+ Toast.makeText(SignUpActivity.this, "密码不能为空!", Toast.LENGTH_SHORT).show();
+ } else if (!strPassWord.equals(strPassWordAgain)) {
+ Toast.makeText(SignUpActivity.this, "两次密码输入不一致!", Toast.LENGTH_SHORT).show();
+ } else {
+ Toast.makeText(SignUpActivity.this, "注册成功!", Toast.LENGTH_SHORT).show();
+
+ User user = new User();
+ user.setUserName(strUserName);
+ user.setPassWord(strPassWord);
+ user.setPhoneNum(strPhoneNumber);
+
+ new Thread(){
+ @Override
+ public void run(){
+ int msg = 0;
+ userDao userDao = new userDao();
+
+ User uu = userDao.findUser(user.getUserName());
+
+ if(uu != null){
+ msg = 1; //have this account
+ }else{
+ boolean flag = userDao.register(user);
+ if(flag){
+ msg = 2;
+ }
+ }
+ hand.sendEmptyMessage(msg);
+ }
+ }.start();
+ }
+ }
+
+ @SuppressLint("HandlerLeak")
+ final Handler hand = new Handler(){
+ public void handleMessage(Message msg){
+ if(msg.what == 0){
+ Toast.makeText(getApplicationContext(), "注册失败", Toast.LENGTH_SHORT).show();
+ }else if(msg.what == 1){
+ Toast.makeText(getApplicationContext(), "该账号已存在,请换一个注册", Toast.LENGTH_SHORT).show();
+ }else if(msg.what == 2){
+ Toast.makeText(getApplicationContext(), "注册成功", Toast.LENGTH_SHORT).show();
+ Intent intent = new Intent(SignUpActivity.this, MainActivity.class);
+ startActivity(intent);
+ }
+ }
+ };
+
+}
diff --git a/src/Logistics/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/src/Logistics/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
new file mode 100644
index 0000000..2b068d1
--- /dev/null
+++ b/src/Logistics/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Logistics/app/src/main/res/drawable/ic_launcher_background.xml b/src/Logistics/app/src/main/res/drawable/ic_launcher_background.xml
new file mode 100644
index 0000000..07d5da9
--- /dev/null
+++ b/src/Logistics/app/src/main/res/drawable/ic_launcher_background.xml
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Logistics/app/src/main/res/drawable/logo.png b/src/Logistics/app/src/main/res/drawable/logo.png
new file mode 100644
index 0000000..544c697
Binary files /dev/null and b/src/Logistics/app/src/main/res/drawable/logo.png differ
diff --git a/src/Logistics/app/src/main/res/drawable/me.png b/src/Logistics/app/src/main/res/drawable/me.png
new file mode 100644
index 0000000..a44ece2
Binary files /dev/null and b/src/Logistics/app/src/main/res/drawable/me.png differ
diff --git a/src/Logistics/app/src/main/res/drawable/pickup.jpg b/src/Logistics/app/src/main/res/drawable/pickup.jpg
new file mode 100644
index 0000000..9a6ee63
Binary files /dev/null and b/src/Logistics/app/src/main/res/drawable/pickup.jpg differ
diff --git a/src/Logistics/app/src/main/res/drawable/search.png b/src/Logistics/app/src/main/res/drawable/search.png
new file mode 100644
index 0000000..593168e
Binary files /dev/null and b/src/Logistics/app/src/main/res/drawable/search.png differ
diff --git a/src/Logistics/app/src/main/res/drawable/tab_menu_better.xml b/src/Logistics/app/src/main/res/drawable/tab_menu_better.xml
new file mode 100644
index 0000000..4aeee76
--- /dev/null
+++ b/src/Logistics/app/src/main/res/drawable/tab_menu_better.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Logistics/app/src/main/res/drawable/tab_menu_text.xml b/src/Logistics/app/src/main/res/drawable/tab_menu_text.xml
new file mode 100644
index 0000000..8705bd5
--- /dev/null
+++ b/src/Logistics/app/src/main/res/drawable/tab_menu_text.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Logistics/app/src/main/res/drawable/translucent_button.xml b/src/Logistics/app/src/main/res/drawable/translucent_button.xml
new file mode 100644
index 0000000..0cf2590
--- /dev/null
+++ b/src/Logistics/app/src/main/res/drawable/translucent_button.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Logistics/app/src/main/res/drawable/translucent_edit.xml b/src/Logistics/app/src/main/res/drawable/translucent_edit.xml
new file mode 100644
index 0000000..adb6e92
--- /dev/null
+++ b/src/Logistics/app/src/main/res/drawable/translucent_edit.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Logistics/app/src/main/res/layout/activity_main.xml b/src/Logistics/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..939e667
--- /dev/null
+++ b/src/Logistics/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Logistics/app/src/main/res/layout/activity_menu.xml b/src/Logistics/app/src/main/res/layout/activity_menu.xml
new file mode 100644
index 0000000..402d6ff
--- /dev/null
+++ b/src/Logistics/app/src/main/res/layout/activity_menu.xml
@@ -0,0 +1,137 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Logistics/app/src/main/res/layout/activity_sign_up.xml b/src/Logistics/app/src/main/res/layout/activity_sign_up.xml
new file mode 100644
index 0000000..0924836
--- /dev/null
+++ b/src/Logistics/app/src/main/res/layout/activity_sign_up.xml
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Logistics/app/src/main/res/layout/my_fragment1.xml b/src/Logistics/app/src/main/res/layout/my_fragment1.xml
new file mode 100644
index 0000000..d92824a
--- /dev/null
+++ b/src/Logistics/app/src/main/res/layout/my_fragment1.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Logistics/app/src/main/res/layout/my_fragment2.xml b/src/Logistics/app/src/main/res/layout/my_fragment2.xml
new file mode 100644
index 0000000..c7d98f5
--- /dev/null
+++ b/src/Logistics/app/src/main/res/layout/my_fragment2.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Logistics/app/src/main/res/layout/my_fragment3.xml b/src/Logistics/app/src/main/res/layout/my_fragment3.xml
new file mode 100644
index 0000000..a5c1dcb
--- /dev/null
+++ b/src/Logistics/app/src/main/res/layout/my_fragment3.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Logistics/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/src/Logistics/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 0000000..eca70cf
--- /dev/null
+++ b/src/Logistics/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Logistics/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/src/Logistics/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 0000000..eca70cf
--- /dev/null
+++ b/src/Logistics/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Logistics/app/src/main/res/mipmap-hdpi/ic_launcher.webp b/src/Logistics/app/src/main/res/mipmap-hdpi/ic_launcher.webp
new file mode 100644
index 0000000..c209e78
Binary files /dev/null and b/src/Logistics/app/src/main/res/mipmap-hdpi/ic_launcher.webp differ
diff --git a/src/Logistics/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp b/src/Logistics/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..b2dfe3d
Binary files /dev/null and b/src/Logistics/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp differ
diff --git a/src/Logistics/app/src/main/res/mipmap-mdpi/ic_launcher.webp b/src/Logistics/app/src/main/res/mipmap-mdpi/ic_launcher.webp
new file mode 100644
index 0000000..4f0f1d6
Binary files /dev/null and b/src/Logistics/app/src/main/res/mipmap-mdpi/ic_launcher.webp differ
diff --git a/src/Logistics/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp b/src/Logistics/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..62b611d
Binary files /dev/null and b/src/Logistics/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp differ
diff --git a/src/Logistics/app/src/main/res/mipmap-xhdpi/ic_launcher.webp b/src/Logistics/app/src/main/res/mipmap-xhdpi/ic_launcher.webp
new file mode 100644
index 0000000..948a307
Binary files /dev/null and b/src/Logistics/app/src/main/res/mipmap-xhdpi/ic_launcher.webp differ
diff --git a/src/Logistics/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp b/src/Logistics/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..1b9a695
Binary files /dev/null and b/src/Logistics/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp differ
diff --git a/src/Logistics/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp b/src/Logistics/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
new file mode 100644
index 0000000..28d4b77
Binary files /dev/null and b/src/Logistics/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp differ
diff --git a/src/Logistics/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp b/src/Logistics/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..9287f50
Binary files /dev/null and b/src/Logistics/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp differ
diff --git a/src/Logistics/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp b/src/Logistics/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
new file mode 100644
index 0000000..aa7d642
Binary files /dev/null and b/src/Logistics/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp differ
diff --git a/src/Logistics/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp b/src/Logistics/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..9126ae3
Binary files /dev/null and b/src/Logistics/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp differ
diff --git a/src/Logistics/app/src/main/res/values-night/themes.xml b/src/Logistics/app/src/main/res/values-night/themes.xml
new file mode 100644
index 0000000..a425d02
--- /dev/null
+++ b/src/Logistics/app/src/main/res/values-night/themes.xml
@@ -0,0 +1,16 @@
+
+
+
+
\ No newline at end of file
diff --git a/src/Logistics/app/src/main/res/values/colors.xml b/src/Logistics/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..eaa3847
--- /dev/null
+++ b/src/Logistics/app/src/main/res/values/colors.xml
@@ -0,0 +1,12 @@
+
+
+ #FFBB86FC
+ #FF6200EE
+ #FF3700B3
+ #FF03DAC5
+ #FF018786
+ #FF000000
+ #FFFFFFFF
+ #FF0000FF
+ #FF999999
+
\ No newline at end of file
diff --git a/src/Logistics/app/src/main/res/values/strings.xml b/src/Logistics/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..2468259
--- /dev/null
+++ b/src/Logistics/app/src/main/res/values/strings.xml
@@ -0,0 +1,3 @@
+
+ Logistics
+
\ No newline at end of file
diff --git a/src/Logistics/app/src/main/res/values/style.xml b/src/Logistics/app/src/main/res/values/style.xml
new file mode 100644
index 0000000..90bd43d
--- /dev/null
+++ b/src/Logistics/app/src/main/res/values/style.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Logistics/app/src/main/res/values/themes.xml b/src/Logistics/app/src/main/res/values/themes.xml
new file mode 100644
index 0000000..408c620
--- /dev/null
+++ b/src/Logistics/app/src/main/res/values/themes.xml
@@ -0,0 +1,16 @@
+
+
+
+
\ No newline at end of file
diff --git a/src/Logistics/app/src/test/java/com/example/logistics/ExampleUnitTest.java b/src/Logistics/app/src/test/java/com/example/logistics/ExampleUnitTest.java
new file mode 100644
index 0000000..47cc96f
--- /dev/null
+++ b/src/Logistics/app/src/test/java/com/example/logistics/ExampleUnitTest.java
@@ -0,0 +1,17 @@
+package com.example.logistics;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * @see Testing documentation
+ */
+public class ExampleUnitTest {
+ @Test
+ public void addition_isCorrect() {
+ assertEquals(4, 2 + 2);
+ }
+}
\ No newline at end of file
diff --git a/src/Logistics/build.gradle b/src/Logistics/build.gradle
new file mode 100644
index 0000000..2fcc7ef
--- /dev/null
+++ b/src/Logistics/build.gradle
@@ -0,0 +1,9 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+plugins {
+ id 'com.android.application' version '7.1.2' apply false
+ id 'com.android.library' version '7.1.2' apply false
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
\ No newline at end of file
diff --git a/src/Logistics/gradle.properties b/src/Logistics/gradle.properties
new file mode 100644
index 0000000..dab7c28
--- /dev/null
+++ b/src/Logistics/gradle.properties
@@ -0,0 +1,21 @@
+# Project-wide Gradle settings.
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
+# AndroidX package structure to make it clearer which packages are bundled with the
+# Android operating system, and which are packaged with your app"s APK
+# https://developer.android.com/topic/libraries/support-library/androidx-rn
+android.useAndroidX=true
+# Enables namespacing of each library's R class so that its R class includes only the
+# resources declared in the library itself and none from the library's dependencies,
+# thereby reducing the size of the R class for that library
+android.nonTransitiveRClass=true
\ No newline at end of file
diff --git a/src/Logistics/gradle/wrapper/gradle-wrapper.jar b/src/Logistics/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..e708b1c
Binary files /dev/null and b/src/Logistics/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/src/Logistics/gradle/wrapper/gradle-wrapper.properties b/src/Logistics/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..6772e68
--- /dev/null
+++ b/src/Logistics/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Wed Mar 16 11:40:22 CST 2022
+distributionBase=GRADLE_USER_HOME
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
+distributionPath=wrapper/dists
+zipStorePath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
diff --git a/src/Logistics/gradlew b/src/Logistics/gradlew
new file mode 100644
index 0000000..4f906e0
--- /dev/null
+++ b/src/Logistics/gradlew
@@ -0,0 +1,185 @@
+#!/usr/bin/env sh
+
+#
+# Copyright 2015 the original author or authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn () {
+ echo "$*"
+}
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+ NONSTOP* )
+ nonstop=true
+ ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+
+ JAVACMD=`cygpath --unix "$JAVACMD"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=`expr $i + 1`
+ done
+ case $i in
+ 0) set -- ;;
+ 1) set -- "$args0" ;;
+ 2) set -- "$args0" "$args1" ;;
+ 3) set -- "$args0" "$args1" "$args2" ;;
+ 4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Escape application args
+save () {
+ for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
+ echo " "
+}
+APP_ARGS=`save "$@"`
+
+# Collect all arguments for the java command, following the shell quoting and substitution rules
+eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
+
+exec "$JAVACMD" "$@"
diff --git a/src/Logistics/gradlew.bat b/src/Logistics/gradlew.bat
new file mode 100644
index 0000000..107acd3
--- /dev/null
+++ b/src/Logistics/gradlew.bat
@@ -0,0 +1,89 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/src/Logistics/settings.gradle b/src/Logistics/settings.gradle
new file mode 100644
index 0000000..da68030
--- /dev/null
+++ b/src/Logistics/settings.gradle
@@ -0,0 +1,16 @@
+pluginManagement {
+ repositories {
+ gradlePluginPortal()
+ google()
+ mavenCentral()
+ }
+}
+dependencyResolutionManagement {
+ repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
+ repositories {
+ google()
+ mavenCentral()
+ }
+}
+rootProject.name = "Logistics"
+include ':app'