Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit ce82c0a

Browse files
committed
Merge branch 'iamjazzar/rosetta' into internal lib
1 parent f0737ca commit ce82c0a

File tree

14 files changed

+160
-4
lines changed

14 files changed

+160
-4
lines changed

app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ dependencies {
9898
implementation 'com.squareup.okhttp3:okhttp-dnsoverhttps:4.9.3'
9999
implementation 'com.squareup.okhttp3:okhttp-brotli:4.9.3'
100100
implementation 'com.github.topjohnwu.libsu:io:5.0.1'
101+
implementation project(":rosetta")
101102

102103
// Markdown
103104
implementation "io.noties.markwon:core:4.6.2"

rosetta/.gitignore

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
2+
# files for the dex VM
3+
*.dex
4+
5+
# Java class files
6+
*.class
7+
8+
# generated files
9+
bin/
10+
gen/
11+
12+
# Local configuration file (sdk path, etc)
13+
local.properties
14+
15+
# Windows thumbnail db
16+
Thumbs.db
17+
18+
# OSX files
19+
.DS_Store
20+
21+
# Eclipse project files
22+
.classpath
23+
.project
24+
25+
# Android Studio
26+
*.iml
27+
.idea
28+
#.idea/workspace.xml - remove # and delete .idea if it better suit your needs.
29+
.gradle
30+
build/
31+
32+
#NDK
33+
obj/

rosetta/build.gradle

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
apply plugin: 'com.android.library'
2+
3+
ext {
4+
// Legal uses
5+
groupIdBase = "com.ahmedjazzar.rosetta"
6+
7+
POM_INCEPTION_YEAR = "2016"
8+
POM_PACKAGING = "aar"
9+
10+
POM_URL = "https://github.com/iamjazzar/rosetta"
11+
POM_SCM_URL = "https://github.com/iamjazzar/rosetta"
12+
POM_SCM_CONNECTION = "scm:git@github.com:iamjazzar/rosetta.git"
13+
POM_SCM_DEV_CONNECTION = "scm:git@github.com:iamjazzar/rosetta.git"
14+
15+
POM_LICENCE_NAME = "MIT License"
16+
POM_LICENCE_URL = "https://github.com/iamjazzar/rosetta/blob/master/LICENSE"
17+
POM_LICENCE_DIST = "repo"
18+
19+
POM_DEVELOPER_ID = "ahmedaljazzar"
20+
POM_DEVELOPER_NAME = "Ahmed Jazzar"
21+
POM_DEVELOPER_URL = "https://github.com/iamjazzar"
22+
23+
bintrayRepo = 'maven'
24+
bintrayName = 'Rosetta'
25+
26+
publishedGroupId = 'com.ahmedjazzar.rosetta'
27+
libraryName = 'Rosetta'
28+
artifact = 'rosetta'
29+
30+
libraryDescription = 'Android library that lets your app supporting multiple languages ' +
31+
'without any concern from you as a developer.'
32+
33+
siteUrl = 'https://github.com/ahmedaljazzar/rosetta'
34+
gitUrl = 'https://github.com/ahmedaljazzar/rosetta.git'
35+
36+
libraryVersion = '1.0.1'
37+
38+
developerId = 'ahmedaljazzar'
39+
developerName = 'Ahmed Jazzar'
40+
developerEmail = 'me@ahmedjazzar.com'
41+
42+
licenseName = 'MIT'
43+
licenseUrl = 'https://opensource.org/licenses/MIT'
44+
allLicenses = ["MIT"]
45+
}
46+
47+
buildscript {
48+
repositories {
49+
google()
50+
mavenCentral()
51+
gradlePluginPortal()
52+
}
53+
dependencies {
54+
classpath 'com.android.tools.build:gradle:7.2.0'
55+
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4'
56+
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
57+
}
58+
}
59+
60+
android {
61+
compileSdkVersion 32
62+
buildToolsVersion "23.0.3"
63+
64+
defaultConfig {
65+
minSdkVersion 21
66+
targetSdkVersion 32
67+
versionCode 3
68+
versionName "1.0.1"
69+
}
70+
71+
buildTypes {
72+
release {
73+
minifyEnabled false
74+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
75+
}
76+
}
77+
}
78+
79+
dependencies {
80+
implementation fileTree(dir: 'libs', include: ['*.jar'])
81+
testImplementation 'junit:junit:4.13.2'
82+
testImplementation 'org.mockito:mockito-core:1.10.19'
83+
implementation 'com.google.android.material:material:1.6.0'
84+
implementation 'androidx.appcompat:appcompat:1.4.1'
85+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* Automatically generated file. DO NOT MODIFY
3+
*/
4+
package com.ahmedjazzar.rosetta;
5+
6+
public final class BuildConfig {
7+
public static final boolean DEBUG = Boolean.parseBoolean("true");
8+
public static final String LIBRARY_PACKAGE_NAME = "com.ahmedjazzar.rosetta";
9+
public static final String BUILD_TYPE = "debug";
10+
}

rosetta/proguard-rules.pro

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# TODO: Add project specific ProGuard rules here.
2+
# By default, the flags in this file are appended to flags specified
3+
# in /Users/ahmedjazzar/Library/Android/sdk/tools/proguard/proguard-android.txt
4+
# You can edit the include path and order by changing the proguardFiles
5+
# directive in build.gradle.
6+
#
7+
# For more details, see
8+
# http://developer.android.com/guide/developing/tools/proguard.html
9+
10+
# Add any project specific keep options here:
11+
12+
# If your project uses WebView with JS, uncomment the following
13+
# and specify the fully qualified class name to the JavaScript interface
14+
# class:
15+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16+
# public *;
17+
#}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.ahmedjazzar.rosetta">
3+
4+
<application android:supportsRtl="true" />
5+
</manifest>

app/src/main/java/com/ahmedjazzar/rosetta/LanguageSwitcher.java renamed to rosetta/src/main/java/com/ahmedjazzar/rosetta/LanguageSwitcher.java

File renamed without changes.

app/src/main/java/com/ahmedjazzar/rosetta/LanguagesListDialogFragment.java renamed to rosetta/src/main/java/com/ahmedjazzar/rosetta/LanguagesListDialogFragment.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@
1111
import androidx.fragment.app.DialogFragment;
1212
import androidx.fragment.app.FragmentActivity;
1313

14+
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
15+
1416
import java.util.ArrayList;
1517
import java.util.Locale;
16-
import java.util.Objects;
17-
18-
import com.fox2code.mmm.R;
19-
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
2018

2119
/**
2220
* This fragment is responsible for displaying the supported locales and performing any necessary

app/src/main/java/com/ahmedjazzar/rosetta/LocalesDetector.java renamed to rosetta/src/main/java/com/ahmedjazzar/rosetta/LocalesDetector.java

File renamed without changes.

app/src/main/java/com/ahmedjazzar/rosetta/LocalesPreferenceManager.java renamed to rosetta/src/main/java/com/ahmedjazzar/rosetta/LocalesPreferenceManager.java

File renamed without changes.

0 commit comments

Comments
 (0)