Skip to content

Commit

Permalink
Merge pull request #779 from SecUpwN/development
Browse files Browse the repository at this point in the history
Unchaining WIP-Release v0.1.40-alpha
  • Loading branch information
SecUpwN committed Feb 21, 2016
2 parents e1dd2cc + 599859d commit f3fd81c
Show file tree
Hide file tree
Showing 41 changed files with 1,444 additions and 587 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@ signing.properties
import-summary.txt
manifest-merger*.txt
.navigation/
scratchpad
30 changes: 17 additions & 13 deletions AIMSICD/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,6 @@ try {
}

def isCi = "true".equals(System.getenv("CI"))
def isTravis = "true".equals(System.getenv("TRAVIS"))

def buildNumber = null
if (isTravis) {
buildNumber = System.getenv("TRAVIS_BUILD_NUMBER")
} else {
buildNumber = System.getenv("BUILDOZER_BUILDNUMBER")
}

version = '0.1.39.1-alpha'

android {
compileSdkVersion 23
Expand All @@ -26,10 +16,10 @@ android {
defaultConfig {
minSdkVersion 16
targetSdkVersion 19 // Do not change: Working Icons on Android 5+
versionCode 39
versionCode 40
testApplicationId "com.SecUpwN.AIMSICD.test"

buildConfigField 'String', 'BUILD_NUMBER', (buildNumber == null ? 'null' : "\"${buildNumber}\"")
buildConfigField 'String', 'BUILD_NUMBER', (getBuildNumber() == null ? 'null' : "\"${buildNumber}\"")
buildConfigField 'String', 'GIT_SHA', (gitSha == null ? 'null' : "\"${gitSha}\"")
}
buildTypes {
Expand All @@ -52,7 +42,7 @@ android {
targetCompatibility JavaVersion.VERSION_1_7
}
lintOptions {
warning 'MissingTranslation', 'InvalidPackage'
warning 'MissingTranslation', 'InvalidPackage', 'MissingRegistered'
abortOnError false

xmlReport false
Expand Down Expand Up @@ -109,3 +99,17 @@ apply plugin: "io.freefair.android-checkstyle"
checkstyle {
toolVersion = "6.15"
}

String getBuildNumber() {
String travisBuildNumber = System.getenv("TRAVIS_BUILD_NUMBER")
if(travisBuildNumber != null) {
return "T-$travisBuildNumber"
}

String buildozerBuildNumber = System.getenv("BUILDOZER_BUILDNUMBER")
if(buildozerBuildNumber != null) {
return "B-$buildozerBuildNumber"
}

return null;
}
21 changes: 2 additions & 19 deletions AIMSICD/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,7 @@
</activity>

<activity
android:name=".activities.MapViewerOsmDroid"
android:exported="true"
android:label="@string/map_view"
android:parentActivityName=".AIMSICD"
android:launchMode="singleInstance"
android:configChanges="keyboardHidden|screenLayout|screenSize|orientation">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".AIMSICD"/>
</activity>

<activity
android:name=".activities.PrefActivity"
android:name=".activities.SettingsActivity"
android:exported="true"
android:icon="@drawable/ic_action_settings"
android:label="@string/preferences"
Expand All @@ -83,7 +71,7 @@
android:name=".activities.OpenCellIdActivity"
android:icon="@drawable/ic_action_settings"
android:label="@string/title_ocid_key"
android:parentActivityName=".activities.PrefActivity"
android:parentActivityName=".activities.SettingsActivity"
android:configChanges="keyboardHidden|screenLayout|screenSize|orientation">
</activity>

Expand All @@ -97,11 +85,6 @@
</intent-filter>
</activity>

<activity
android:name=".activities.AtCommandActivity"
android:label="@string/at_command_title"
android:parentActivityName=".AIMSICD" />

<activity
android:name=".activities.DebugLogs"
android:icon="@drawable/ic_action_settings"
Expand Down
Loading

0 comments on commit f3fd81c

Please sign in to comment.