diff --git a/OsmAnd/.gitignore b/OsmAnd/.gitignore index e443883b73..5a330f65ec 100644 --- a/OsmAnd/.gitignore +++ b/OsmAnd/.gitignore @@ -7,6 +7,7 @@ gen/ local.properties raw/ obj/ +libgnustl/ cpd.xml jni/Local.mk out/ diff --git a/OsmAnd/build.gradle b/OsmAnd/build.gradle index 61e80eab18..35b47f5d47 100644 --- a/OsmAnd/build.gradle +++ b/OsmAnd/build.gradle @@ -17,11 +17,13 @@ apply plugin: 'com.android.application' // // // +// Less important // 2. fix_apostrophe_issues (replace match="[^=]([^\\])'" replace="\1\\\\'") res/**/strings.xml // 3. sherpafy/free/paid // 4. Release signature // 5. APP_NAME, APP_EDITION uses flavor + android { compileSdkVersion 21 buildToolsVersion "21.1.2" @@ -75,12 +77,9 @@ android { java.srcDirs = [ "src", fileTree(dir: "../OsmAnd-java/src", exclude: "**/PlatformUtil.java") - // "resourcesSrc" ] resources.srcDirs = [ "src" - // "../OsmAnd-java/src" - // "resourcesSrc" ] renderscript.srcDirs = ["src"] res.srcDirs = [ @@ -94,14 +93,15 @@ android { free { manifest.srcFile "AndroidManifest-free.xml" } - debug { + + legacy { jniLibs.srcDirs = [ - fileTree(dir: "libs", exclude: "**/libgnustl_shared.so") + "libgnustl" ] } } - flavorDimensions "version", "abi" + flavorDimensions "version", "abi", "coreversion" productFlavors { // ABI armv7 { @@ -141,12 +141,14 @@ android { flavorDimension "version" applicationId "net.osmand.plus" } - /* - sherpafy { - flavorDimension "version" - applicationId "net.osmand.sherpafy" + + legacy { + flavorDimension "coreversion" + } + + qtcore { + flavorDimension "coreversion" } - */ } @@ -157,9 +159,6 @@ android { nativeDebug { signingConfig signingConfigs.development } - legacyDebug { - signingConfig signingConfigs.development - } release { signingConfig signingConfigs.publishing } @@ -167,6 +166,7 @@ android { } } + def replaceNoTranslate(line) { if(line.contains("\"app_name\"") && System.getenv("APP_NAME")) { return line.replaceAll(">[^<]*<", " >"+System.getenv("APP_NAME")+"<") @@ -285,19 +285,29 @@ task buildOsmAndCore(type: Exec) { commandLine "cmd", "/c", "echo", "Not supported" } } -task cleanupDuplicatesInCore(type: Delete) { + +task cleanupDuplicatesInCore() { dependsOn buildOsmAndCore // doesn't work for legacy debug builds - // delete "libs/armeabi/libgnustl_shared.so" - // delete "libs/armeabi-v7a/libgnustl_shared.so" - // delete "libs/mips/libgnustl_shared.so" - // delete "libs/x86/libgnustl_shared.so" - + doLast { + file("libgnustl/armeabi").mkdirs() + println file("libs/armeabi/libgnustl_shared.so").renameTo(file("libgnustl/armeabi/libgnustl_shared.so")) + file("libgnustl/armeabi-v7a").mkdirs() + println file("libs/armeabi-v7a/libgnustl_shared.so").renameTo(file("libgnustl/armeabi-v7a/libgnustl_shared.so")) + file("libgnustl/mips").mkdirs() + println file("libs/mips/libgnustl_shared.so").renameTo(file("libgnustl/mips/libgnustl_shared.so")) + file("libgnustl/x86").mkdirs() + println file("libs/x86/libgnustl_shared.so").renameTo(file("libgnustl/x86/libgnustl_shared.so")) + } } tasks.withType(JavaCompile) { compileTask -> compileTask.dependsOn << [buildOsmAndCore, downloadAAR, cleanupDuplicatesInCore] } +tasks.withType(JavaCompile) { + compileTask -> compileTask.dependsOn << [buildOsmAndCore, downloadAAR] +} + repositories { ivy { name = "OsmAndBinariesIvy" @@ -308,12 +318,11 @@ repositories { } } - dependencies { compile fileTree(dir: "libs", include: ["*.jar"], exclude: ["QtAndroid-bundled.jar", "QtAndroidAccessibility-bundled.jar", "android-support*.jar", "OsmAndCore_wrapper.jar"]) compile 'com.android.support:appcompat-v7:21.0.3' - debugCompile "net.osmand:OsmAndCore_android:0.1-SNAPSHOT@aar" - legacyDebugCompile fileTree(dir: "libs", include: ["OsmAndCore_wrapper.jar"]) - nativeDebugCompile "net.osmand:OsmAndCore_androidNativeDebug:0.1-SNAPSHOT@aar" - releaseCompile "net.osmand:OsmAndCore_androidNativeRelease:0.1-SNAPSHOT@aar" + qtcoreCompile "net.osmand:OsmAndCore_android:0.1-SNAPSHOT@aar" + legacyCompile fileTree(dir: "libs", include: ["OsmAndCore_wrapper.jar"]) + //nativeDebugCompile "net.osmand:OsmAndCore_androidNativeDebug:0.1-SNAPSHOT@aar" + //releaseCompile "net.osmand:OsmAndCore_androidNativeRelease:0.1-SNAPSHOT@aar" } diff --git a/OsmAnd/res/values-be/strings.xml b/OsmAnd/res/values-be/strings.xml index 6845683026..e8c17a8632 100644 --- a/OsmAnd/res/values-be/strings.xml +++ b/OsmAnd/res/values-be/strings.xml @@ -1987,7 +1987,7 @@ OsmAnd мае адкрыты зыходны код і актыўна разві Папярэджваць пра пешаходныя пераходы Па змоўчаньні Запіс сьледу па запатрабаваньні - Вы можаце зьмяніць маршрут пазначыўшы якія дарогі варта пазьбягаць + Вы можаце зьмяніць маршрут, пазначыўшы дарогі, якія варта пазьбягаць Пачаць навігацыю ўздоўж сьледу? НЯДАЎНІЯ Проксі diff --git a/OsmAnd/res/values-da/strings.xml b/OsmAnd/res/values-da/strings.xml index 485b81a494..0771d4aa53 100644 --- a/OsmAnd/res/values-da/strings.xml +++ b/OsmAnd/res/values-da/strings.xml @@ -1885,7 +1885,7 @@ Opsæt en proxy internetkommunikation Privatliv Aktiver HTTP proxy - Konfigurer HTTP-proxyserveren for alle netværksanmodninger + Konfigurer HTTP-proxy for alle netværksanmodninger Proxy vært Konfigurer proxy værtsnavn (f.eks. 127.0.0.1) Proxy port diff --git a/OsmAnd/res/values-de/strings.xml b/OsmAnd/res/values-de/strings.xml index bfb7c0e5ef..85dca56f7f 100644 --- a/OsmAnd/res/values-de/strings.xml +++ b/OsmAnd/res/values-de/strings.xml @@ -1,4 +1,4 @@ - + Geschwindigkeitsbegrenzung Grenzkontrolle @@ -2025,4 +2025,17 @@ Afghanistan, Ägypten, Albanien, Algerien, Andorra, Angola, Anguilla, Antigua an Routing-Regeln v1.9 nicht verwenden Neuen Routenalgorithmus nicht verwenden Fußgängerübergänge ankündigen + Straßenbeleuchtung + Proxy + Privatsphäre + Standard + HTTP-Proxy aktivieren + HTTP-Proxy für alle Netzwerkanfragen konfigurieren + Proxy-Host + Konfigurieren Sie den Hostnamen ihres Proxys (z.B. 127.0.0.1) + Proxy-Port + Konfigurieren Sie die Portnummer Ihres Proxys (z.B. 8118) + Eine Proxy-Internet-Kommunikation aufsetzen + Navigation über Strecke starten? + Sie können die Route ändern, indem Sie die Straßen auswählen, die vermieden werden sollen diff --git a/OsmAnd/res/values-nb/strings.xml b/OsmAnd/res/values-nb/strings.xml index 44e16198c7..1d1ccaac9a 100644 --- a/OsmAnd/res/values-nb/strings.xml +++ b/OsmAnd/res/values-nb/strings.xml @@ -236,7 +236,7 @@ Auto-sentrer kartvisning Tid til kartvisning synkroniseres med gjeldende posisjon - Aldri + Aldri (trykk blå pil for å starte veiledning manuelt) Kartkilde-innstillinger Vektorkart-innstillinger Slette %1$s? @@ -626,7 +626,7 @@ Kommentar Interessepunkt endres Send - Tilbakestill + Filter Slett Lagre som @@ -844,7 +844,7 @@ Reisemål Skjul bygninger Varsel - Slå på enhetens skjerm når du nærmer deg en sving + Slå på enhetens skjerm (hvis av) når du nærmer deg en sving Aldri I nærhet av Velg toleransemargin for fartsgrense, overskrides denne vil du få talevarsel. @@ -1037,7 +1037,7 @@ Synlighet Beskrivelse Gjennomsiktig tema - Aldri + Bare manuelt (trykk pil) Utgave Eksporter Bruk gjeldende mål @@ -1191,4 +1191,5 @@ VIS ALLE Meld om fotgjengeroverganger Standard - + Gatebelysning + diff --git a/OsmAnd/res/values-sr/strings.xml b/OsmAnd/res/values-sr/strings.xml index 7b342826dd..6b8dbf8ff9 100644 --- a/OsmAnd/res/values-sr/strings.xml +++ b/OsmAnd/res/values-sr/strings.xml @@ -203,7 +203,7 @@ Детаљи руте Унети упит за претрагу POI Рута транспорта - OSM bugs (online) + Дневник грешака ОСМ-а на мрежи POI… Претрага POI Где сам ја? @@ -346,4 +346,14 @@ Наранџаста Пружни прелаз Приказуј пружне прелазе - + Осветљење улице + Мрежни посредник + Подесите мрежног посредника за интернет + Приватност + Без усмеравања по издању v1.9 + Немој да користиш правила усмеравања из издања v1.9 + Станице + Географска ширина + Географска дужина + Нисам пронашао заобилазнице + diff --git a/OsmAnd/res/values-sv/strings.xml b/OsmAnd/res/values-sv/strings.xml index 42dd190c77..68d3354eb2 100644 --- a/OsmAnd/res/values-sv/strings.xml +++ b/OsmAnd/res/values-sv/strings.xml @@ -1775,4 +1775,12 @@ Proxy Ställ in en anslutning till Internet via proxy Anonymitet - + Gatubelysning + Aktivera HTTP-proxy + Konfigurera HTTP-proxy för alla nätverksbegäran + Proxy-värd + Konfigurera ditt proxy-värdnamn (t.ex. 127.0.0.1) + Proxy-port + Konfigurera ditt proxy-portnummer (t.ex. 8118) + Starta navigering längs spår? + diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml index 12382c07e8..fcdce7c9ae 100644 --- a/OsmAnd/res/values/strings.xml +++ b/OsmAnd/res/values/strings.xml @@ -19,7 +19,7 @@ Manage RECENTS Start navigation over track? - You can change route by selecting roads to avoid + You can trigger an alternative route by selecting roads to avoid Default Announce pedestrian crosswalks Road style diff --git a/OsmAnd/src/net/osmand/plus/helpers/AvoidSpecificRoads.java b/OsmAnd/src/net/osmand/plus/helpers/AvoidSpecificRoads.java index b76b044a4d..43de4ab72f 100644 --- a/OsmAnd/src/net/osmand/plus/helpers/AvoidSpecificRoads.java +++ b/OsmAnd/src/net/osmand/plus/helpers/AvoidSpecificRoads.java @@ -123,7 +123,7 @@ public class AvoidSpecificRoads { selectFromMap(mapActivity); } }); - bld.setNegativeButton(R.string.default_buttons_cancel, null); + bld.setNegativeButton(R.string.close, null); bld.show(); }