-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
88 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,36 @@ | ||
language: android | ||
jdk: oraclejdk8 | ||
language : android | ||
sudo : required | ||
jdk : oraclejdk8 | ||
env: | ||
global: | ||
- ANDROID_TARGET=android-27 | ||
- ANDROID_ABI=armeabi-v7a | ||
android: | ||
components: | ||
- tools | ||
- platform-tools | ||
- build-tools-28.0.3 | ||
- android-28 | ||
- extra-android-m2repository | ||
- $ANDROID_TARGET | ||
- sys-img-${ANDROID_ABI}-${ANDROID_TARGET} | ||
script: | ||
- ./gradlew build jacocoTestReport assembleAndroidTest | ||
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI | ||
- emulator -avd test -no-skin -no-audio -no-window & | ||
- android-wait-for-emulator | ||
- adb shell setprop dalvik.vm.dexopt-flags v=n,o=v | ||
- ./gradlew connectedCheck | ||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) | ||
global : | ||
- ANROID_API_LEVEL = 28 | ||
- ANDROID_BUILD_TOOLS_VERSION = 28.0.3 | ||
android : | ||
components : | ||
- tools | ||
- platform-tools | ||
- build-tools-$ANDROID_BUILD_TOOLS_VERSION | ||
- android - $ANDROID_API_LEVEL | ||
- extra-google-google_play_services | ||
- extra-google-m2repository | ||
- addon-google_apis-google-$ANDROID_API_LEVEL | ||
licences : | ||
- 'android-sdk-preview-license-.+' | ||
- 'android-sdk-license-.+' | ||
- 'google-gdk-license-.+' | ||
before_script : | ||
- mkdir -p "$ANDROID_HOME/licenses" | ||
- cp ./licenses/* "$ANDROID_HOME/licenses" | ||
before_cache: | ||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock | ||
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/ | ||
cache: | ||
directories: | ||
- $HOME/.gradle/caches/ | ||
- $HOME/.gradle/wrapper/ | ||
- $HOME/.android/build-cache | ||
script : | ||
- ./gradlew build check | ||
before_install: | ||
- chmod +x gradlew |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
package="com.droidnet"> | ||
package="com.droidapp"> | ||
|
||
<application | ||
android:name=".MyApp" | ||
android:name="com.droidapp.MyApp" | ||
android:allowBackup="false" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:roundIcon="@mipmap/ic_launcher_round" | ||
android:supportsRtl="true" | ||
android:theme="@style/AppTheme" | ||
tools:ignore="GoogleAppIndexingWarning"> | ||
<activity android:name=".MainActivity"> | ||
<activity android:name="com.droidapp.MainActivity"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
<activity android:name=".Main2Activity" /> | ||
<activity android:name="com.droidapp.Main2Activity" /> | ||
</application> | ||
|
||
</manifest> |
4 changes: 3 additions & 1 deletion
4
...main/java/com/droidnet/Main2Activity.java → ...main/java/com/droidapp/Main2Activity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
app/src/main/java/com/droidnet/MyApp.java → app/src/main/java/com/droidapp/MyApp.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,53 @@ | ||
apply plugin: 'com.android.library' | ||
|
||
android { | ||
compileSdkVersion 28 | ||
ext { | ||
bintrayRepo = 'maven' | ||
bintrayName = 'droidnet' | ||
|
||
publishedGroupId = 'com.job' | ||
libraryName = 'DroidNet' | ||
artifact = 'droidnet' | ||
|
||
libraryDescription = 'DroidNet is an Android library listening to network connection state and Internet connectivity with the assumption that active internet connection or not. Connecting to a network doesn’t necessarily mean that device has active internet connection' | ||
|
||
siteUrl = 'https://github.com/JobGetabu/DroidNet' | ||
gitUrl = 'https://github.com/JobGetabu/DroidNet.git' | ||
|
||
libraryVersion = '1.0.0' | ||
|
||
developerId = 'JobGetabu' | ||
developerName = 'Job Getabu' | ||
developerEmail = '[email protected]' | ||
|
||
licenseName = 'The Apache Software License, Version 2.0' | ||
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
allLicenses = ["Apache-2.0"] | ||
} | ||
|
||
android { | ||
compileSdkVersion 28 | ||
buildToolsVersion "28.0.3" | ||
|
||
defaultConfig { | ||
minSdkVersion 14 | ||
targetSdkVersion 28 | ||
versionCode 1 | ||
versionName "1.0" | ||
versionCode 3 | ||
versionName "1.0.0" | ||
|
||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
|
||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
|
||
} | ||
|
||
dependencies { | ||
implementation fileTree(dir: 'libs', include: ['*.jar']) | ||
|
||
implementation 'com.android.support:appcompat-v7:28.0.0' | ||
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' | ||
} | ||
|
||
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle' | ||
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle' |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
8933bad161af4178b1185d1a37fbf41ea5269c55 | ||
d56f5187479451eabf01fb78af6dfcb131a6481e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
d975f751698a77b662f1254ddbeed3901e976f5a |