diff --git a/.gitignore b/.gitignore index 95abdd8..e0a03fe 100644 --- a/.gitignore +++ b/.gitignore @@ -13,7 +13,6 @@ gen/ *.swp *~.nib local.properties -project.properties .classpath .settings/ .loadpath diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..972e607 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,15 @@ +language: android +android: + components: + - build-tools-19.1.0 + - android-19 + - extra-android-support + licenses: + - 'android-sdk-license-.+' + - '.*intel.+' +before_install: + - git submodule update --init --recursive +install: + - ./setup-ant.sh +script: + - ant debug && lint -w --exitcode --disable MissingTranslation . diff --git a/ant.properties b/ant.properties new file mode 100644 index 0000000..e69de29 diff --git a/build.xml b/build.xml new file mode 100644 index 0000000..db1929c --- /dev/null +++ b/build.xml @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lint.xml b/lint.xml index 7edd00c..cd410d4 100644 --- a/lint.xml +++ b/lint.xml @@ -1,4 +1,7 @@ + + + - \ No newline at end of file + diff --git a/project.properties b/project.properties new file mode 100644 index 0000000..39db97f --- /dev/null +++ b/project.properties @@ -0,0 +1,15 @@ +# This file is automatically generated by Android Tools. +# Do not modify this file -- YOUR CHANGES WILL BE ERASED! +# +# This file must be checked in Version Control Systems. +# +# To customize properties used by the Ant build system edit +# "ant.properties", and override values to adapt the script to your +# project structure. +# +# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): +proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt + +# Project target. +target=android-20 +android.library.reference.1=external/netcipher/libnetcipher diff --git a/res/layout/license_activity.xml b/res/layout/license_activity.xml index 7953579..cc5553b 100644 --- a/res/layout/license_activity.xml +++ b/res/layout/license_activity.xml @@ -14,19 +14,19 @@ android:paddingTop="10dp" > @@ -48,19 +48,19 @@ android:paddingTop="10dp" > @@ -81,19 +81,19 @@ android:paddingTop="10dp" > @@ -103,4 +103,4 @@ android:layout_marginLeft="5dp" android:layout_marginRight="5dp" android:background="#cdcdcd" /> - \ No newline at end of file + diff --git a/res/layout/settings.xml b/res/layout/settings.xml index 24b7970..6dbe040 100644 --- a/res/layout/settings.xml +++ b/res/layout/settings.xml @@ -446,7 +446,7 @@ android:orientation="vertical" > تفعيل ملفات تعريف الارتباط استيراد العلامات المرجعية من المتصفح حجم النص - الإعدادات المتقدمة (مستحسن) - (مواقع قد تبدو غريبة) محرك البحث بحث استخدام إطار عرض واسع تحميل الصفحات في نظرة عامة استعادة علامات التبويب المفقودة عند البدء - السجل - إضافة إلى العلامات المرجعية - العلامات المرجعية - مشاركة - الإعدادات - علامة تبويب التخفي - علامة تبويب جديدة (لا يوجد مخزون في المتصفح) (دعم مخزون المتصفح ) إخفاء شريط الحالة أثناء التصفح مسح ملفات تعريف الارتباط - تفعيل إيماءات الأمام و الخلف ماذا تريد أن تفعل مع هذه الصورة؟ تحميل فتح diff --git a/res/values-es/strings.xml b/res/values-es/strings.xml index 15cd2f6..d15aae3 100644 --- a/res/values-es/strings.xml +++ b/res/values-es/strings.xml @@ -31,7 +31,6 @@ Ajustes Ruta de descargas Ajustes avanzados - Habilitar gestos de Atrás y Adelante Código fuente Licencia github.com/anthonycr/Lightning-Browser @@ -47,7 +46,6 @@ Importar marcadores Tamaño de la tipografía (Recomendado) - (Puede causar visualización extraña) Motor de búsquedas Buscar URL Personalizada diff --git a/res/values-fr/strings.xml b/res/values-fr/strings.xml index 4f69a37..78eb107 100644 --- a/res/values-fr/strings.xml +++ b/res/values-fr/strings.xml @@ -16,10 +16,9 @@ Activer le mode plein écran Activer JavaScript Historique - Aj. favoris Favoris Partager Paramètres Onglet incognito Nouvel onglet - \ No newline at end of file + diff --git a/res/values-it/strings.xml b/res/values-it/strings.xml index a532e98..4d4a515 100644 --- a/res/values-it/strings.xml +++ b/res/values-it/strings.xml @@ -18,11 +18,10 @@ Enable fullscreen mode Enable JavaScript History - Aggiungi ai preferiti Segnalibri Azione Impostazioni Incognito tab New tab - \ No newline at end of file + diff --git a/res/values-ru/strings.xml b/res/values-ru/strings.xml index a87283c..edebe04 100644 --- a/res/values-ru/strings.xml +++ b/res/values-ru/strings.xml @@ -43,7 +43,6 @@ Импорт закладок Размер текста рекомендуется - сайты могут быть искажены Поисковая система Поиск Широкий вид @@ -53,7 +52,6 @@ браузер обнаружен Без строки состояния Очистить cookies - Жесты назад и вперёд Выберите действие для изображения Загрузить Открыть diff --git a/res/values-tr/strings.xml b/res/values-tr/strings.xml index 36c6d69..292090b 100644 --- a/res/values-tr/strings.xml +++ b/res/values-tr/strings.xml @@ -34,17 +34,14 @@ Çerezleri etkinleştirme Tarayıcı yer imlerini içe aktarma Metin boyutu - Gelişmi Ayarlar Merhaba dünya! (Önerilen) - (Web siteleri garip görünebilir) Arama Motoru Arama Geniş görünüm kullanma Genel bakış modunda sayfaları yükleme Kaybolan pencereleri başlangıçta yükleme Geçmiş - Yer imi ekle Yer imleri Paylaş Ayarlar @@ -53,4 +50,4 @@ (Hiçbir stok tarayıcı tespit edilemedi) (Desteklenen stok tarayıcı tespit edildi) - \ No newline at end of file + diff --git a/res/values-zh-rCN/strings.xml b/res/values-zh-rCN/strings.xml index fb4acd5..65e2ca9 100644 --- a/res/values-zh-rCN/strings.xml +++ b/res/values-zh-rCN/strings.xml @@ -46,7 +46,6 @@ 从浏览器中导入书签 页面文本尺寸 (推荐) - (可能导致部分网页排版混乱) 搜索引擎 搜索 使用宽视图 diff --git a/res/values-zh-rTW/strings.xml b/res/values-zh-rTW/strings.xml index 62fca8f..439e4d6 100644 --- a/res/values-zh-rTW/strings.xml +++ b/res/values-zh-rTW/strings.xml @@ -31,7 +31,6 @@ 偏好設定 下載資料夾位置 進階設定 - 啟動上一頁、下一頁手勢 原始碼 版權資訊 github.com/anthonycr/Lightning-Browser @@ -47,7 +46,6 @@ 從其它瀏覽器匯入書籤 文字尺寸 (建議) - (網站看起來可能會有點古怪) 搜尋引擎 搜尋 自定 URL diff --git a/res/values/strings.xml b/res/values/strings.xml index ea162d4..f8e7923 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -167,5 +167,9 @@ Clear history on exit Default Custom - Untititled + Untitled + Mozilla Public License v. 2.0 + Freeware + Android Open Source Project + hpHosts Ad Server List diff --git a/setup-ant.bat b/setup-ant.bat new file mode 100644 index 0000000..84311d1 --- /dev/null +++ b/setup-ant.bat @@ -0,0 +1,16 @@ +@ECHO OFF +SETLOCAL enabledelayedexpansion + +SET "target=android-20" + +REM Update ant setup in project and all sub-projects +SET "pattern=project.properties" +FOR /R "./external/" %%# in (*.properties) DO ( + ECHO %%~nx# | FIND "%pattern%" 1>NUL && ( + SET current_dir=%~d0%%~p# + SET current_dir=!current_dir:\=/! + ECHO Updating ant setup in "!current_dir!" + CALL android update lib-project -t %target% -p "!current_dir!" + ) +) +CALL android update project -p . --subprojects -t %target% --name Lightning diff --git a/setup-ant.sh b/setup-ant.sh index 2a0965e..a8011a8 100755 --- a/setup-ant.sh +++ b/setup-ant.sh @@ -1,9 +1,15 @@ #!/bin/sh -target="android-19" +target="android-20" +# Travis doesn't support android-20 yet +if [ -n "$TRAVIS" ]; then + target="android-19"; +fi + +# Update ant setup in project and all sub-projects for f in `find external/ -name project.properties`; do -projectdir=`dirname $f` + projectdir=`dirname $f` echo "Updating ant setup in $projectdir:" android update lib-project -p $projectdir -t $target done