Browse Source

Merge branch 'develop' of lyq/YellowPages into master

天问 2 years ago
parent
commit
d28d744c0d

+ 1 - 0
.gitignore

@@ -13,3 +13,4 @@
 .externalNativeBuild
 .cxx
 /.idea/
+/config.gradle

+ 8 - 0
README.md

@@ -0,0 +1,8 @@
+## YellowPages
+
+android 黄页app,查询常用号码,黑名单。
+
+
+
+
+

+ 2 - 1
app/build.gradle

@@ -5,7 +5,7 @@ android {
 
     defaultConfig {
         applicationId "me.yoqi.android.yellowpage"
-        minSdkVersion 15
+        minSdkVersion 16
         targetSdkVersion 29
         versionCode 1
         versionName "1.0"
@@ -25,6 +25,7 @@ dependencies {
     implementation fileTree(dir: "libs", include: ["*.jar"])
     implementation 'androidx.appcompat:appcompat:1.2.0'
     implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
+
     testImplementation 'junit:junit:4.12'
     androidTestImplementation 'androidx.test.ext:junit:1.1.2'
     androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'

+ 6 - 0
app/src/main/AndroidManifest.xml

@@ -2,13 +2,19 @@
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     package="me.yoqi.android.yellowpage">
 
+    <uses-permission android:name="android.permission.INTERNET" />
+    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
+    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
+
     <application
+        android:fullBackupContent="@xml/backup_content"
         android:allowBackup="true"
         android:icon="@mipmap/ic_launcher"
         android:label="@string/app_name"
         android:roundIcon="@mipmap/ic_launcher_round"
         android:supportsRtl="true"
         android:theme="@style/AppTheme">
+        <activity android:name=".ui.AboutActivity" />
         <activity android:name=".MainActivity">
             <intent-filter>
                 <action android:name="android.intent.action.MAIN" />

+ 10 - 2
app/src/main/java/me/yoqi/android/yellowpage/MainActivity.java

@@ -1,14 +1,22 @@
 package me.yoqi.android.yellowpage;
 
-import androidx.appcompat.app.AppCompatActivity;
-
 import android.os.Bundle;
+import android.widget.TextView;
+
+import androidx.appcompat.app.AppCompatActivity;
 
 public class MainActivity extends AppCompatActivity {
 
+    TextView tvLabel;
+
     @Override
     protected void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.activity_main);
+        initView();
+    }
+
+    private void initView() {
+        tvLabel = findViewById(R.id.tv_label);
     }
 }

+ 17 - 0
app/src/main/java/me/yoqi/android/yellowpage/ui/AboutActivity.java

@@ -0,0 +1,17 @@
+package me.yoqi.android.yellowpage.ui;
+
+import androidx.appcompat.app.AppCompatActivity;
+
+import android.os.Bundle;
+
+import me.yoqi.android.yellowpage.R;
+
+public class AboutActivity extends AppCompatActivity {
+
+    @Override
+    protected void onCreate(Bundle savedInstanceState) {
+        super.onCreate(savedInstanceState);
+        setContentView(R.layout.activity_about);
+
+    }
+}

+ 9 - 0
app/src/main/res/layout/activity_about.xml

@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    tools:context=".ui.AboutActivity">
+
+</androidx.constraintlayout.widget.ConstraintLayout>

+ 1 - 0
app/src/main/res/layout/activity_main.xml

@@ -7,6 +7,7 @@
     tools:context=".MainActivity">
 
     <TextView
+        android:id="@+id/tv_label"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:text="Hello World!"

+ 5 - 0
app/src/main/res/xml/backup_content.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
+    android:defaultValue="0">
+
+</PreferenceScreen>

+ 2 - 0
build.gradle

@@ -1,4 +1,6 @@
 // Top-level build file where you can add configuration options common to all sub-projects/modules.
+apply from: "config.gradle"
+
 buildscript {
     repositories {
         google()

+ 19 - 0
config.bak.gradle

@@ -0,0 +1,19 @@
+ext {
+    build = [
+            applicationId   : "me.yoqi.android.yellowpage",
+            minSdkVersion   : 16,
+            targetSdkVersion: 29,
+            compileSdkVersion:29,
+            versionCode     :51,
+            versionName     : "1.1.0",
+    ]
+    lib = [
+
+    ]
+    sign = [
+            keyAlias     : "签名别名",
+            keyPassword  : "签名密码",
+            storeFile    : "签名文件路径",
+            storePassword: "签名文件密码",
+    ]
+}