Skip to content

Commit

Permalink
注释内容
Browse files Browse the repository at this point in the history
  • Loading branch information
1976222027 committed Oct 15, 2018
0 parents commit 86b23ce
Show file tree
Hide file tree
Showing 65 changed files with 2,086 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
*.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
29 changes: 29 additions & 0 deletions .idea/codeStyles/Project.xml

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

6 changes: 6 additions & 0 deletions .idea/encodings.xml

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

21 changes: 21 additions & 0 deletions .idea/gradle.xml

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

4 changes: 4 additions & 0 deletions .idea/json2java.xml

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

14 changes: 14 additions & 0 deletions .idea/misc.xml

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

12 changes: 12 additions & 0 deletions .idea/runConfigurations.xml

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

1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
44 changes: 44 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import java.text.SimpleDateFormat

apply plugin: 'com.android.application'

android {
compileSdkVersion 28
defaultConfig {
applicationId "ma.mhy.sqliteeditorroot"
minSdkVersion 15
targetSdkVersion 28
versionCode getMyVersionCode()
versionName getMyVersionName()
testInstrumentationRunner "android.support.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 fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.github.huangyanbin:SmartTable:2.2.0'
// implementation 'androidx.annotation:annotation:1.0.0'
}

static def getMyVersionCode() {
return Integer.parseInt(new SimpleDateFormat("yyMMdd").format(new Date()))
}

static def getMyVersionName() {
return "1.0.6." + "git describe --always".execute().getText().trim()
}
21 changes: 21 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package ma.mhy.sqliteeditorroot;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.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 <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();

assertEquals("ma.mhy.sqliteeditorroot", appContext.getPackageName());
}
}
46 changes: 46 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="ma.mhy.sqliteeditorroot">

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INSTALL_PACKAGES" />

<application
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">
<!--
android:theme="@android:style/Theme.NoDisplay"
android:theme="@style/AppTheme.NoActionBar"
-->
<activity android:name=".ui.HelloActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".ui.MainActivity"
android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize">
<intent-filter>
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />

<data android:scheme="file" />
<data android:scheme="content" />
<data android:mimeType="application/x-sqlite2" />
<data android:mimeType="application/x-sqlite3" />
</intent-filter>
</activity>
<activity
android:name=".ui.TableActivity"
android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize" />
</application>

</manifest>
14 changes: 14 additions & 0 deletions app/src/main/java/ma/mhy/sqliteeditorroot/App.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package ma.mhy.sqliteeditorroot;

import android.app.Application;


import ma.mhy.sqliteeditorroot.util.Crashlytics;

public class App extends Application {
@Override
public void onCreate() {
super.onCreate();
Thread.setDefaultUncaughtExceptionHandler(new Crashlytics(this));
}
}
6 changes: 6 additions & 0 deletions app/src/main/java/ma/mhy/sqliteeditorroot/C.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package ma.mhy.sqliteeditorroot;

public class C {
public static final String EXTRA_DATABASE_PATH = ".extra.EXTRA_DATABASE_PATH";
public static final String EXTRA_TABLE_NAME = ".extra.EXTRA_TABLE_NAME";
}
15 changes: 15 additions & 0 deletions app/src/main/java/ma/mhy/sqliteeditorroot/bean/Cell.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package ma.mhy.sqliteeditorroot.bean;

public class Cell {
public int col;
public int row;
public String oldVal;
public String newVal;

public Cell(int col, int row, String oldVal, String newVal) {
this.col = col;
this.row = row;
this.oldVal = oldVal;
this.newVal = newVal;
}
}
Loading

0 comments on commit 86b23ce

Please sign in to comment.