Browse Source

commit msg

SpringBoots 8 years ago
parent
commit
b0e95735ca

+ 2 - 2
WeiChat/src/main/res/raw/versionconfiguration.properties

@@ -1,3 +1,3 @@
 #发布版本状态改为true,测试版本状态为false
-release_version = false
-#release_version=true
+#release_version = false
+release_version=true

+ 26 - 0
app_core/commom/src/androidTest/java/base/android/com/commom/ExampleInstrumentedTest.java

@@ -0,0 +1,26 @@
+package base.android.com.commom;
+
+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.*;
+
+/**
+ * Instrumentation 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() throws Exception {
+        // Context of the app under test.
+        Context appContext = InstrumentationRegistry.getTargetContext();
+
+        assertEquals("base.android.com.commom.test", appContext.getPackageName());
+    }
+}

+ 2 - 0
app_core/commom/src/main/AndroidManifest.xml

@@ -0,0 +1,2 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="base.android.com.commom" />

+ 3 - 0
app_core/commom/src/main/res/values/strings.xml

@@ -0,0 +1,3 @@
+<resources>
+    <string name="app_name">commom</string>
+</resources>

+ 17 - 0
app_core/commom/src/test/java/base/android/com/commom/ExampleUnitTest.java

@@ -0,0 +1,17 @@
+package base.android.com.commom;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
+ */
+public class ExampleUnitTest {
+    @Test
+    public void addition_isCorrect() throws Exception {
+        assertEquals(4, 2 + 2);
+    }
+}

+ 4 - 0
settings.gradle

@@ -4,6 +4,7 @@ include ':WeiChat'
 //核心模块
 include ':network'
 include ':imageload'
+include  ':commom'
 
 //第三库模块
 include ':lib-zxing'
@@ -20,6 +21,9 @@ include ':pullToRefershLibraryMy'
 //核心模块
 project(':network').projectDir = new File('app_core/network')
 project(':imageload').projectDir = new File('app_core/imageload')
+project(':commom').projectDir = new File('app_core/commom')
+
+
 //第三库模块
 project(':lib-zxing').projectDir = new File('app_third/lib-zxing')
 project(':libbdupdatesdk').projectDir = new File('app_third/libbdupdatesdk')