1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297
|
---
layout: page
title: Changelog Archive
permalink: /changelog/archive
---
# 0.56.4
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.56.3...v0.56.4)
* [Dependencies](https://github.com/mozilla-mobile/android-components/blob/v0.56.4/buildSrc/src/main/java/Dependencies.kt)
* [Gecko](https://github.com/mozilla-mobile/android-components/blob/v0.56.4/buildSrc/src/main/java/Gecko.kt)
* [Configuration](https://github.com/mozilla-mobile/android-components/blob/v0.56.4/buildSrc/src/main/java/Config.kt)
* Imported updated translations.
# 0.56.3
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.56.2...v0.56.3)
* [Dependencies](https://github.com/mozilla-mobile/android-components/blob/v0.56.3/buildSrc/src/main/java/Dependencies.kt)
* [Gecko](https://github.com/mozilla-mobile/android-components/blob/v0.56.3/buildSrc/src/main/java/Gecko.kt)
* [Configuration](https://github.com/mozilla-mobile/android-components/blob/v0.56.3/buildSrc/src/main/java/Config.kt)
* **service-firefox-accounts**
* Disabled periodic device event polling.
# 0.56.2
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.56.1...v0.56.2)
* [Dependencies](https://github.com/mozilla-mobile/android-components/blob/v0.56.2/buildSrc/src/main/java/Dependencies.kt)
* [Gecko](https://github.com/mozilla-mobile/android-components/blob/v0.56.2/buildSrc/src/main/java/Gecko.kt)
* [Configuration](https://github.com/mozilla-mobile/android-components/blob/v0.56.2/buildSrc/src/main/java/Config.kt)
* **browser-menu**
* Added `endOfMenuAlwaysVisible` property/parameter to `BrowserMenuBuilder` constructor and to `BrowserMenu.show` function.
When is set to true makes sure the bottom of the menu is always visible, this allows use cases like [#3211](https://github.com/mozilla-mobile/android-components/issues/3211).
# 0.56.1
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.56.0...v0.56.1)
* [Dependencies](https://github.com/mozilla-mobile/android-components/blob/v0.56.1/buildSrc/src/main/java/Dependencies.kt)
* [Gecko](https://github.com/mozilla-mobile/android-components/blob/v0.56.1/buildSrc/src/main/java/Gecko.kt)
* [Configuration](https://github.com/mozilla-mobile/android-components/blob/v0.56.1/buildSrc/src/main/java/Config.kt)
* **service-firefox-accounts**
* `FxaAccountManager` will is now able to complete re-authentication flow after encountering an auth problem (e.g. password change)
* `FxaAccountManager` will now attempt to automatically recover from a certain class of temporary auth problems.
* `FirefoxAccount` grew a new method: `checkAuthorizationStatusAsync`, used to facilitate above flows.
* It is no longer necessary to pass in the "profile" scope to `FxaAccountManager`, as it will always obtain it regardless. Specifying that scope has no effect.
* ⚠️ **This is a breaking change**: `FirefoxAccount` methods that used to take `Array<String>` of scopes now take `Set<String>` of scopes.
# 0.56.0
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.55.0...v0.56.0)
* [Milestone](https://github.com/mozilla-mobile/android-components/milestone/59?closed=1)
* [Dependencies](https://github.com/mozilla-mobile/android-components/blob/v0.56.0/buildSrc/src/main/java/Dependencies.kt)
* [Gecko](https://github.com/mozilla-mobile/android-components/blob/v0.56.0/buildSrc/src/main/java/Gecko.kt)
* [Configuration](https://github.com/mozilla-mobile/android-components/blob/v0.56.0/buildSrc/src/main/java/Config.kt)
* **samples-firefox-accounts**
* Switch FxA sample to production servers, fix pairing.
* **service-firefox-accounts**
* `FxaAccountManager` will is now able to complete re-authentication flow after encountering an auth problem (e.g. password change)
* `FxaAccountManager` will now attempt to automatically recover from a certain class of temporary auth problems.
* `FirefoxAccount` grew a new method: `checkAuthorizationStatusAsync`, used to facilitate above flows.
* It is no longer necessary to pass in the "profile" scope to `FxaAccountManager`, as it will always obtain it regardless. Specifying that scope has no effect.
* ⚠️ **This is a breaking change**: `FirefoxAccount` methods that used to take `Array<String>` of scopes now take `Set<String>` of scopes.
* **browser-domains**
* New domain autocomplete providers `ShippedDomainsProvider` and `CustomDomainsProvider` that
should be used instead of deprecated `DomainAutoCompleteProvider`.
* **service-glean**
* The length limit on labels in labeled metrics has been increased from 30 to 61 characters. See [1556684](https://bugzilla.mozilla.org/show_bug.cgi?id=1556684).
* Timespan metrics have a new API for setting the timespan directly: `sumRawNanos` and `setRawNanos`.
* **support-base**
* Fixed multiple potential leaks in `ObserverRegistry` (used internally by many classes in other components like `SessionManager`, `EngineSession` and others).
* **browser-icons**
* Fixed possible `NullPointerException` when disk cache is written to concurrently.
* **lib-crash**
* Crash reports sent to Sentry now contain optional environment information, if a parameter is passed.
* **browser-session**
* ⚠️ **This is a breaking change**: Added `url` parameter to `Session.Observer.onLoadRequest()`.
* **support-ktx**
* ⚠️ **This is a breaking change**: Removed `Drawable.toBitmap()` in favour of the Android Core KTX version.
* ⚠️ **This is a breaking change**: Removed `Context.systemService()` in favour of the Android Core KTX version.
* **browser-session**
* Added `Session.hasParentSession` to indicate whether a `Session` was opened from a parent `Session` such as opening a new tab from a link context menu ("Open in new tab").
* **feature-app-links**
* Add a flag to allow the app to not detect an external app if the user has told android to use the browser as default.
* Turn off interception of web links.
# 0.55.0
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.54.0...v0.55.0)
* [Milestone](https://github.com/mozilla-mobile/android-components/milestone/58?closed=1)
* [Dependencies](https://github.com/mozilla-mobile/android-components/blob/v0.55.0/buildSrc/src/main/java/Dependencies.kt)
* [Gecko](https://github.com/mozilla-mobile/android-components/blob/v0.55.0/buildSrc/src/main/java/Gecko.kt)
* [Configuration](https://github.com/mozilla-mobile/android-components/blob/v0.55.0/buildSrc/src/main/java/Config.kt)
* **browser-search**
* `SearchEngineManager.load()` is deprecated. Use `SearchEngineManager.loadAsync()` instead.
* **browser-menu**
* Fixed a bug where overscroll effects would appear on the overflow menu.
* Added enter and exit animations.
* **browser-session**
* Added handler for `onWebAppManifestLoaded` to update `session.webAppManifest`.
* Moved `WebAppManifest` to concept-engine.
* **concept-engine**
* Added `onWebAppManifestLoaded` to `EngineSession`, called when the engine finds a web app manifest.
* Added `WebAppManifest` from browser-session.
* **concept-sync**, **service-accounts**
* ⚠️ **This is a breaking behavior change**: API changes to facilitate error handling; new method on AccountObserver interface.
* Added `onAuthenticationProblems` observer method, used for indicating that account needs to re-authenticate (e.g. after a password change).
* `FxaAccountManager` gained a new method, `accountNeedsReauth`, that could be used for the same purpose.
* `DeviceConstellation` methods that returned `Deferred<Unit>` now return `Deferred<Boolean>`, with a success flag.
* `OAuthAccount` methods that returned `Deferred` values now have an `Async` suffix in their names.
* `OAuthAccount` and `DeviceConstellation` methods that returned `Deferred<T>` (for some T) now return `Deferred<T?>`, where `null` means failure.
* `FirefoxAccount`, `FirefoxDeviceConstellation` and `FirefoxDeviceManager` now handle all expected `FxAException`.
* Fixes device name not changing in FxaDeviceConstellation after setDeviceNameAsync is called.
* **engine-gecko-nightly**, **engine-gecko-beta**, **engine-system**, **concept-engine**
* Added `EngineView.canScrollVerticallyUp()` for pull to refresh.
* Added engine API to clear browsing data.
* **browser-storage-sync**
* `recordVisit` and `recordObservation` will no longer throw when processing invalid URLs.
```kotlin
// Clear all browsing data
engine.clearData(BrowsingData.all())
// Clear all caches
engine.clearData(BrowsingData.allCaches())
// Clear cookies only for the provided host
engine.clearData(BrowsingData.select(BrowsingData.COOKIES), host = "mozilla.org")
```
* **engine-system**:
* Added `EngineView.canScrollVerticallyUp()` for pull to refresh.
* **browser-engine-gecko-nightly**
* This component now has a hard dependency on the new [universal GeckoView build](https://bugzilla.mozilla.org/show_bug.cgi?id=1508976) that is no longer architecture specific (ARM, x86, ..). With that apps no longer need to specify the GeckoView build themselves and synchronize the used version with Android Components. Additionally apps can now make use of [APK splits](https://developer.android.com/studio/build/configure-apk-splits) or [Android App Bundles (AAB)](https://developer.android.com/guide/app-bundle).
* **service-glean**
* Disabling telemetry through `setUploadEnabled` now clears all metrics (except first_run_date) immediately.
* The string length limit for `StringMetricType` was raised from 50 to 100 characters.
* **feature-session**
* Added `SwipeRefreshFeature` which adds pull to refresh to browsers.
* **feature-tab-collections**
* Added option to remove all collections and their tabs: `TabCollectionStorage.removeAllCollections()`.
* **feature-media**
* Added `RecordingDevicesNotificationFeature` to show an ongoing notification while recording devices (camera, microphone) are used by web content.
* **concept-push**
* 🆕 Added a new component for supporting push notifications.
* **lib-push-firebase**
* 🆕 Added a new component for Firebase Cloud Messaging push support.
```kotlin
class FirebasePush : AbstractFirebasePushService()
```
* In your Manifest you need to make the service visible:
```xml
<service android:name=".FirebasePush">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
```
* **feature-sync**
* Fixed a bug that caused the Sync Manager to crash on initial startup cases.
* **feature-push**
* 🆕 Added a new component for Autopush messaging support.
```kotlin
class Application {
override fun onCreate() {
PushProcessor.install(services.push)
}
}
class Services {
val push by lazy {
val config = PushConfig(
senderId = "my-app",
serverHost = "push.services.mozilla.com",
serviceType = ServiceType.FCM,
protocol = Protocol.HTTPS
)
// You need to use a supported push service (Firebase is one of them).
val pushService = FirebasePush()
AutoPushFeature(context, pushService, config).also { it.initialize() }
}
}
class MyActivity {
override fun onCreate() {
services.push.registerForSubscriptions(object : PushSubscriptionObserver {
override fun onSubscriptionAvailable(subscription: AutoPushSubscription) { }
})
services.push.registerForPushMessages(PushType.Services, object: Bus.Observer<PushType, String> {
override fun onEvent(type: PushType, message: String) { }
})
}
}
```
* Checkout the component documentation for more details.
* **support-ktx**
* Added `Context.hasCamera()` to check if the device has a camera.
# 0.54.0
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.53.0...v0.54.0)
* [Milestone](https://github.com/mozilla-mobile/android-components/milestone/57?closed=1)
* [Dependencies](https://github.com/mozilla-mobile/android-components/blob/v0.54.0/buildSrc/src/main/java/Dependencies.kt)
* [Gecko](https://github.com/mozilla-mobile/android-components/blob/v0.54.0/buildSrc/src/main/java/Gecko.kt)
* [Configuration](https://github.com/mozilla-mobile/android-components/blob/v0.54.0/buildSrc/src/main/java/Config.kt)
* **browser-engine-gecko**, **browser-engine-gecko-beta**, **browser-engine-gecko-nightly**
* **Merge day!**
* `browser-engine-gecko-release`: GeckoView 67.0
* `browser-engine-gecko-beta`: GeckoView 68.0
* `browser-engine-gecko-nightly`: GeckoView 69.0
* ⚠️ **Deprecated components**: `feature-session-bundling`, `ui-doorhanger`, `ui-progress` (See blog posting).
* **service-pocket**
* Added `PocketEndpointRaw` and `PocketJSONParser` for low-level access.
* **browser-menu**
* Added `BrowserMenuHighlightableItem`. Its `highlight` property allows you to set the background and an image that appears on the right.
* **feature-findinpage**
* Find in Page Bar now displays 0/0 for no matches found with new attr findInPageNoMatchesTextColor
* **feature-customtabs**
* Fixed a bug where menu actions would not work for all Custom Tab sessions.
* **support-test**
* Added `testContext` property for retrieving application context from tests.
* **browser-session**
* Added `AllSessionsObserver` helper that automatically subscribes and unsubscribes to all `Session` instances that get added/removed.
* **support-base**
* Added `Build` object that contains information about the current Android Components build (like version number and git hash).
* **lib-crash**
* Crash reports sent to Sentry now contain additional tags about the used Android Components version and setup (prefixed with "ac.").
* **browser-awesomebar**, **feature-awesomebar**
* Fixed an issue where `SuggestionProvider.onInputChanged()` was called before `SuggestionProvider.onInputStarted()`.
* Added ability for `SuggestionProvider` to return an initial list of suggestions from `onInputStarted()`.
* Modified `ClipboardSuggestionProvider` to already return a suggestions from `onInputStarted()` if the clipboard contains a URL.
* **feature-app-links**
* 🆕 New component: to detect and open links in other non-browser apps.
* Use cases to parse intent:// URLs, query the package manager for activities and generate Play store URLs.
* **browser-engine-gecko-nightly**, **concept-engine**:
* Added `EngineSession.Observer.onRecordingStateChanged()` to get list of recording devices currently used by web content.
* **support-base**
* Added helper for providing unique stable `Int` notification ids based on a `String` tag to avoid id conflicts between components and app code.
```kotlin
// Get a unique id for the provided tag
val id = NotificationIds.getIdForTag(context, "mozac.my.feature")
// Extension methods for showing and cancelling notifications
NotificationManagerCompat
.from(context)
.notify(context, "mozac.my.feature", notification)
NotificationManagerCompat
.from(context)
.cancel(context, "mozac.my.feature")
```
# 0.53.0
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.52.0...v0.53.0)
* [Milestone](https://github.com/mozilla-mobile/android-components/milestone/56?closed=1)
* [Dependencies](https://github.com/mozilla-mobile/android-components/blob/v0.53.0/buildSrc/src/main/java/Dependencies.kt)
* [Gecko](https://github.com/mozilla-mobile/android-components/blob/v0.53.0/buildSrc/src/main/java/Gecko.kt)
* [Configuration](https://github.com/mozilla-mobile/android-components/blob/v0.53.0/buildSrc/src/main/java/Config.kt)
* **concept-engine**, **browser-engine-gecko-nightly** and **browser-engine-gecko-beta**:
* Added new policies for Safe Browsing: `TrackingProtectionPolicy.SAFE_BROWSING_MALWARE`, `TrackingProtectionPolicy.SAFE_BROWSING_UNWANTED`, `TrackingProtectionPolicy.SAFE_BROWSING_PHISHING`, `TrackingProtectionPolicy.SAFE_BROWSING_HARMFUL` and `TrackingProtectionPolicy.SAFE_BROWSING_ALL`.
* Added a new policy category : `trackingProtectionPolicy.recommended()` contains all the recommended policies categories. It blocks ads, analytics, social, test trackers, plus all the safe browsing policies.
* **browser-engine-system**
* ⚠️ **This is a breaking behavior change**: built-in `WebView`'s on-screen zoom controls are hidden by default.
* **browser-icons**
* Added disk cache for icons.
* **feature-session**:
* Added `EngineViewBottomBehavior`: A `CoordinatorLayout.Behavior` implementation to be used with [EngineView] when placing a toolbar at the bottom of the screen. This implementation will update the vertical clipping of the `EngineView` so that bottom-aligned web content will be drawn above the browser toolbar.
* New use case `SettingsUseCases.UpdateTrackingProtectionUseCase`: Updates Tracking Protection for the engine and all open sessions.
* **feature-prompts** and **browser-engine-gecko-nightly**
* Now input type file are working.
* **browser-session**
* Fixed a bug where the title and icon of a `Session` was cleared too early.
* **browser-contextmenu**
* Added ability to provide a custom `SnackbarDelegate` to show a customized `Snackbar`.
# 0.52.0
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.51.0...v0.52.0)
* [Milestone](https://github.com/mozilla-mobile/android-components/milestone/55?closed=1)
* [Dependencies](https://github.com/mozilla-mobile/android-components/blob/v0.52.0/buildSrc/src/main/java/Dependencies.kt)
* [Gecko](https://github.com/mozilla-mobile/android-components/blob/v0.52.0/buildSrc/src/main/java/Gecko.kt)
* [Configuration](https://github.com/mozilla-mobile/android-components/blob/v0.52.0/buildSrc/src/main/java/Config.kt)
* ℹ️ **Migrated all components to [AndroidX](https://developer.android.com/jetpack/androidx).**
* ℹ️ **Upgraded Gradle to 5.3.1**
* ⚠️ This requires using the 1.3.30 Kotlin gradle plugin or higher.
* **feature-tab-collections**
* 🆕 New component: Feature implementation for saving, restoring and organizing collections of tabs.
* **feature-readerview**
* 🆕 New component/feature that provides reader mode functionality. To see a complete and working example of how to integrate this new component, check out the `ReaderViewIntegration` class in our [Sample Browser](https://github.com/mozilla-mobile/android-components/tree/main/samples/browser).
```kotlin
val readerViewFeature = ReaderViewFeature(context, engine, sessionManager, controlsView) { available ->
// This lambda is invoked to indicate whether or not reader view is available
// for the page loaded by the selected session (for the current tab)
}
// To activate reader view
readerViewFeature.showReaderView()
// To deactivate reader view
readerViewFeature.hideReaderView()
// To show the appearance (font, color scheme) controls
readerViewFeature.showControls()
// To hide the appearance (font, color scheme) controls
readerViewFeature.hideControls()
```
* **feature-readerview**
* Fix disappearing title in Custom Tab toolbar.
* **feature-sitepermissions**
* Added ability to configure default (checked/unchecked) state for "Remember decision" checkbox. Provide `dialogConfig` into `SitePermissionsFeature` for this. Checkbox is checked by default.
* ⚠️ **This is a breaking API change**: ``anchorView`` property has been removed if you want to change the position of the prompts use the ``promptsStyling`` property.
* Added new property ``context``. It must be provided in the constructor.
* Do not save new site permissions in private sessions.
* Added ``sessionId`` property for adding site permissions on custom tabs.
* Allow prompts styling via ``PromptsStyling``
```kotlin
data class PromptsStyling(
val gravity: Int,
val shouldWidthMatchParent: Boolean = false,
@ColorRes
val positiveButtonBackgroundColor: Int? = null,
@ColorRes
val positiveButtonTextColor: Int? = null
)
```
* **feature-customtabs**
* Fix session not being removed when the close button was clicked.
* **service-glean**
* ⚠️ **This is a breaking API change**: Custom pings must be explicitly
registered with Glean at startup time. See
`components/service/glean/docs/pings/custom.md` for more information.
* **ui-autocomplete**
* Added an optional `shouldAutoComplete` boolean to `setText` which is currently used by `updateUrl` in `EditToolbar`.
* **browser-toolbar**
* Modified `EditToolbar`'s `updateUrl` function to take a `shouldAutoComplete` boolean. By default a call to this function does **not** autocomplete. Generally you want to disable autocomplete when calling `updateUrl` if the text is a search term.
See `editMode` in `BrowserToolbar` and `setText` in `InlineAutocompleteEditText` for more information.
* **browser-engine-system**
* Added support for Authentication dialogs on SystemEngineView.
* **concept-engine**, **browser-engine-gecko-nightly**
* Added `suspendMediaWhenInactive` setting to control whether media should be suspended when the session is inactive. The default is `false`.
```kotlin
// To provide a default when creating the engine:
GeckoEngine(runtime, DefaultSettings(suspendMediaWhenInactive = true))
// To change the value for a specific session:
engineSession.settings.suspendMediaWhenInactive = true
```
* **service-firefox-accounts**
* ⚠️ **This is a breaking API change**:
* `OAuthAccount` now has a new `deviceConstellation` method.
* `FxaAccountManager`'s constructor now takes a `DeviceTuple` parameter.
* Added integration with FxA devices and device events.
* First supported event type is Send Tab.
* It's now possible to receive and send tabs from/to devices in the `DeviceConstellation`.
* `samples-sync` application provides a detailed integration example of these new APIs.
* Brief example:
```kotlin
val deviceConstellationObserver = object : DeviceConstellationObserver {
override fun onDevicesUpdate(constellation: ConstellationState) {
// Process the following:
// constellation.currentDevice
// constellation.otherDevices
}
}
val deviceEventsObserver = object : DeviceEventsObserver {
override fun onEvents(events: List<DeviceEvent>) {
events.filter { it is DeviceEvent.TabReceived }.forEach {
val tabReceivedEvent = it as DeviceEvent.TabReceived
// process received tab(s).
}
}
}
val accountObserver = object : AccountObserver {
// ... other methods ...
override fun onAuthenticated(account: OAuthAccount) {
account.deviceConstellation().registerDeviceObserver(
observer = deviceConstellationObserver,
owner = this@MainActivity,
autoPause = true
)
}
}
val accountManager = FxaAccountManager(
this,
Config.release(CLIENT_ID, REDIRECT_URL),
arrayOf("profile", "https://identity.mozilla.com/apps/oldsync"),
DeviceTuple(
name = "Doc Example App",
type = DeviceType.MOBILE,
capabilities = listOf(DeviceCapability.SEND_TAB)
),
syncManager
)
accountManager.register(accountObserver, owner = this, autoPause = true)
accountManager.registerForDeviceEvents(deviceEventsObserver, owner = this, autoPause = true)
```
* **feature-prompts**
* ⚠️ **This is a breaking API change**:
* `PromptFeature` constructor adds an optional `sessionId`. This should use the custom tab session id if available.
* **browser-session**
* Added `SessionManager.runWithSessionIdOrSelected(sessionId: String?)` run function block on a session ID. If the session does not exist, then uses the selected session.
# 0.51.0
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.50.0...v0.51.0)
* [Milestone](https://github.com/mozilla-mobile/android-components/milestone/54?closed=1)
* [Dependencies](https://github.com/mozilla-mobile/android-components/blob/v0.51.0/buildSrc/src/main/java/Dependencies.kt)
* [Gecko](https://github.com/mozilla-mobile/android-components/blob/v0.51.0/buildSrc/src/main/java/Gecko.kt)
* [Configuration](https://github.com/mozilla-mobile/android-components/blob/v0.51.0/buildSrc/src/main/java/Config.kt)
* **browser-awesomebar**
* Fixed an issue where new suggestions would leave you scrolled to the middle of the list
* **browser-errorpages**
* Added `%backButton%` replacement for buttons that need the text "Go Back" instead of "Try Again"
* **browser-session**, **browser-engine-gecko-nightly**, **browser-engine-system**
* Fixed an issue causing `Session.searchTerms` getting cleared to early. Now the search terms will stay assigned to the `Session` until a new request, triggered by a user interaction like clicking a link, started loading (ignoring redirects).
* Added setting of desktop view port when requesting desktop site
* **feature-customtabs**
* Added fact emitting.
* Bugfix to call with app-contributed pending intents from menu items and action buttons.
* Added ability to decide where menu items requested by the launching app should be inserted into the combined menu by setting `menuItemIndex`
* **service-glean**
* ⚠️ **This is a breaking API change**: Timespan and timing distribution
metrics now have a thread-safe API. See `adding-new-metrics.md` for more
information.
* A method for sending metrics on custom pings has been added. See
`docs/pings/custom.md` for more information.
* **concept-engine**
* Add boolean `allowAutoplayMedia` setting.
* ⚠️ **This is a breaking API change:**
* Added new method to `HistoryTrackingDelegate` interface: `shouldStoreUri(uri: String): Boolean`.
* `VisitType` is now part of `HistoryTrackingDelegate`'s `onVisited` method signature
* **feature-session**
* `HistoryDelegate` now implements a blocklist of URI schemas.
* **browser-engine-gecko-nightly**
* Implement `allowAutoplayMedia` in terms of `autoplayDefault`.
* ⚠️ **This is a breaking API change**
* Added API for bidirectional messaging between Android and installed web extensions:
```kotlin
engine.installWebExtension(EXTENSION_ID, EXTENSION_URL,
onSuccess = { installedExt -> it }
)
val messageHandler = object : MessageHandler {
override fun onPortConnected(port: Port) {
// Called when a port was connected as a result of a
// browser.runtime.connectNative call in JavaScript.
// The port can be used to send messages to the web extension:
port.postMessage(jsonObject)
}
override fun onPortDisconnected(port: Port) {
// Called when the port was disconnected or the corresponding session closed.
}
override fun onPortMessage(message: Any, port: Port) {
// Called when a message was received on the provided port as a
// result of a call to port.postMessage in JavaScript.
}
override fun onMessage(message: Any, source: EngineSession?): Any {
// Called when a message was received as a result of a
// browser.runtime.sendNativeMessage call in JavaScript.
}
}
// To listen to message events from content scripts call:
installedExt.registerContentMessageHandler(session, EXTENSION_ID, messageHandler)
// To listen to message events from background scripts call:
installedExt.registerBackgroundMessageHandler(EXTENSION_ID, messageHandler)
```
* **browser-icons**
* Added an in-memory caching mechanism reducing disk/network loads.
* **browser-tabstray**
* Add `TabThumbnailView` to Tabs Tray show the top of the thumbnail and fill up the width of the tile.
* Added swipe gesture support with a `TabTouchCallback` for the TabsTray.
* **concept-storage**, **browser-storage-memory**, **browser-storage-sync**
* ⚠️ **This is a breaking API change**
* Added new method `getVisitsPaginated`; use it to paginate history.
* Added `excludeTypes` param to `getDetailedVisits`; use it to query only subsets of history.
* Added new `getBookmarksWithUrl` method for checking if a site is already bookmarked
* Added new `getBookmark` method for obtaining the details of a single bookmark by GUID
* **browser-storage-sync**
* `PlacesBookmarksStorage` now supports synchronization!
* **support-utils**
* Add `URLStringUtils` to unify parsing of strings that may be URLs.
* **support-ktx**
- Add `URLStringUtils` `isURLLike()` and `toNormalizedURL()`.
- Update the implementation for `String.isUrl()` and `String.toNormalizedUrl()` to the new one above.
* **concept-sync**
* ⚠️ **This is a breaking API change**
* `OAuthAccount` now has a new method `registerPersistenceCallback`.
* **service-fxa**
* `FxaAccountManager` is now using a state persistence callback to keep FxA account state up-to-date as it changes.
# 0.50.0
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.49.0...v0.50.0)
* [Milestone](https://github.com/mozilla-mobile/android-components/milestone/53?closed=1)
* [Dependencies](https://github.com/mozilla-mobile/android-components/blob/v0.50.0/buildSrc/src/main/java/Dependencies.kt)
* [Gecko](https://github.com/mozilla-mobile/android-components/blob/v0.50.0/buildSrc/src/main/java/Gecko.kt)
* [Configuration](https://github.com/mozilla-mobile/android-components/blob/v0.50.0r/buildSrc/src/main/java/Config.kt)
* **browser-toolbar**
* Added `titleView` to `DisplayToolbar` which displays the title of the page. Various options are able to modified such as
`titleTextSize`, `titleColor`, and `displayTitle`. In custom tabs, the URL will now only display the hostname.
* Changed `UrlRenderConfiguration` to include a `RenderStyle` parameter where you can specify how the URL renders
* **support-ktx**
* Added extension property `Uri.isHttpOrHttps`.
* **browser-icons**
* ⚠️ **This is a breaking API change**: Creating a `BrowserIcons` instance requires a `Client` object (from `concept-fetch`) now.
* **browser-engine-gecko-nightly**:
* Added new content blocking category for [fingerprinting](https://en.wikipedia.org/wiki/Device_fingerprint): `TrackingProtectionPolicy.FINGERPRINTING`.
* **feature-findinpage**
* Find in Page now emits facts
* **feature-awesomebar**
* Added `BookmarksStorageSuggestionProvider`
* **browser-toolbar**
* Adds `browserToolbarProgressBarGravity` attr with options `top` and `bottom` (default).
* Adds the ability to long click the urlView
* **service-glean**
* ⚠️ **This is a breaking API change**: The technically public, but not
intended for public use, part of the glean API has been renamed from
`mozilla.components.service.glean.metrics` to
`mozilla.components.service.glean.private`.
* ⚠️ **This is a breaking API change**: Labeled metrics are now their own
distinct metric types in the `metrics.yaml` file. For example, for a
labeled counter, rather than using `type: counter` and `labeled: true`, use
`type: labeled_counter`. See bugzilla 1540725.
* **concept-engine**
* Adds `automaticLanguageAdjustment` setting, which should hint to implementations to send
language specific headers to websites. Implementation in `browser-engine-gecko-nightly`.
* **service-firefox-accounts**
* The service no longer accepts a `successPath` option. Instead the service uses the OAuth `redirectUri`.
* **support-base**
* Added optional callback to `Consumable` to get invoked once value gets consumed:
```kotlin
val consumable = Consumable.from(42) {
// Value got consumed.
}
```
# 0.49.0
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.48.0...v0.49.0)
* [Milestone](https://github.com/mozilla-mobile/android-components/milestone/52?closed=1)
* [Dependencies](https://github.com/mozilla-mobile/android-components/blob/v0.49.0/buildSrc/src/main/java/Dependencies.kt)
* [Gecko](https://github.com/mozilla-mobile/android-components/blob/v0.49.0/buildSrc/src/main/java/Gecko.kt)
* [Configuration](https://github.com/mozilla-mobile/android-components/blob/v0.49.0/buildSrc/src/main/java/Config.kt)
* **feature-contextmenu**
* Clicking on a context menu item now emits a fact
* **browser-awesomebar**
* `DefaultSuggestionViewHolder` now centers titles if no description is provided by the suggestion.
* **browser-engine-gecko-***
* Added `automaticFontSizeAdjustment` engine setting for automatic font size adjustment,
in line with system accessibility settings. The default is `true`.
```kotlin
GeckoEngine(runtime, DefaultSettings(automaticFontSizeAdjustment = true))
```
* **feature-awesomebar**
* Added optional `icon` parameter to `SearchSuggestionProvider`
* **feature-qr**
* 🆕 New component/feature that provides functionality for scanning QR codes.
```kotlin
val qrFeature = QrFeature(
context,
fragmentManager = supportFragmentManager,
onNeedToRequestPermissions = { permissions ->
requestPermissions(this, permissions, REQUEST_CODE_CAMERA_PERMISSIONS)
},
onScanResult = { qrScanResult ->
// qrScanResult is a String (e.g. a URL) returned by the QR scanner
}
)
// When ready to scan simply call
qrFeature.scan()
```
* **concept-storage**
* ⚠️ **This is a breaking API change!** for non-component implementations of `HistoryStorage`.
* `HistoryStorage` got new API: `deleteVisit`.
* **browser-search**
* Imported `list.json` and search plugins from Fennec from 2019-03-29.
* Added support for `searchDefault` and `searchOrder`.
* ⚠️ **This is a breaking API change**: `SearchEngineProvider.loadSearchEngines` returns a new data class `SearchEngineList` (was `List<SearchEngine>`).
* **browser-storage-sync**, **browser-storage-memory**
* Implementations of `concept-storage`/`HistoryStorage` expose newly added `deleteVisit`.
* **browser-toolbar**
* Add TalkBack support for page load status.
* Added option to add "edit actions" that will show up next to the URL in edit mode.
* Added option to set a listener for clicks on the site security indicator (globe / lock icon).
* The `toolbar` now emits a fact `COMMIT` when the user has edited the URL. [More information](https://github.com/mozilla-mobile/android-components/blob/main/components/browser/toolbar/README.md).
* **browser-engine-gecko-nightly**
* Added new `TrackingProtectionPolicy` category for blocking cryptocurrency miners (`TrackingProtectionPolicy.CRYPTOMINING`).
* **support-ktx**
* Added `Intent.toSafeIntent()`.
* Added `MotionEvent.use {}` (like `AutoCloseable.use {}`).
* Added `Bitmap.arePixelsAllTheSame()`.
* Added `Context.appName` returns the name (label) of the application or the package name as a fallback.
* **concept-fetch**
* Added support for interceptors. Interceptors are a powerful mechanism to monitor, modify, retry, redirect or record requests as well as responses going through a `Client`. See the [concept-fetch README](https://github.com/mozilla-mobile/android-components/tree/main/components/concept/fetch) for example implementations of interceptors.
* 💥 **Better crash handling** (#2568, #2569, #2570, #2571)
* **browser-engine-gecko-nightly**: `EngineSession.Observer.onCrashStateChange()` gets invoked if the content process of a session crashed. Internally a new `GeckoSession` will be created. By default this new session will just render a white page (`about:blank`) and not recover the last state. This prevents crash loops and let's the app decide (and show UI) when to restore. Calling `EngineSession.recoverFromCrash()` will try to restore the last known state from before the crash.
* **browser-session**: `Session.crashed` now exposes if a `Session` has crashed.
* **feature-session**: New use case: `SessionUseCases.CrashRecoveryUseCase`.
# 0.48.0
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.47.0...v0.48.0)
* [Milestone](https://github.com/mozilla-mobile/android-components/milestone/51?closed=1)
* [Dependencies](https://github.com/mozilla-mobile/android-components/blob/v0.48.0/buildSrc/src/main/java/Dependencies.kt)
* [Gecko](https://github.com/mozilla-mobile/android-components/blob/v0.48.0/buildSrc/src/main/java/Gecko.kt)
* [Configuration](https://github.com/mozilla-mobile/android-components/blob/v0.48.0/buildSrc/src/main/java/Config.kt)
* **browser-engine-gecko**, **browser-engine-gecko-beta**, **browser-engine-gecko-nightly**
* **Merge day!**
* `browser-engine-gecko-release`: GeckoView 66.0
* `browser-engine-gecko-beta`: GeckoView 67.0
* `browser-engine-gecko-nightly`: GeckoView 68.0
* **browser-session**
* Session now exposes a list of `Media` instances representing playable media on the currently displayed page (see `concept-engine`).
* **concept-engine**, **browser-engine-gecko-nightly**
* Added `Media` class representing a playable media element on the the currently displayed page. Consumers can subscribe to `Media` instances in order to receive updates whenever the state of a `Media` object changes. Currently only the "playback state" is exposed. Consumers can control playback through the
attached `Media.Controller` instance.
* **concept-fetch**
* ⚠️ **This is a breaking API change!**: `Headers.Common` was renamed to `Headers.Names`.
* Added `Headers.Values`.
* **service-pocket**
* Access an article's text-to-speech listen metadata via `PocketListenEndpoint.getListenArticleMetadata`.
* ⚠️ **This is a breaking API change!**: `PocketGlobalVideoRecommendation.id` is now a Long instead of an Int
* **browser-engine-gecko-nightly**
* `GeckoEngine` will throw a `RuntimeException` if the `GeckoRuntime` shuts down unsolicited.
* **feature-awesomebar**
* `SearchSuggestionProvider` and `AwesomeBarFeature` now allow setting a search suggestion limit.
* **feature-findinpage**
* ⚠️ **This is a breaking API change!**: `FindInPageFeature` constructor now takes an `EngineView` instance.
* Blur controlled `EngineView` for better screen reader accessibility.
* Announce result count for screen reader users.
* **support-android-test**
* Added `ViewMatchers` that take Boolean arguments instead of requiring inversion via the `not` Matcher: e.g. `hasFocus(false)` instead of `not(hasFocus())`
* Added `ViewInteraction` extension functions like `assertHasFocus(Boolean)` for short-hand.
* Added `Matchers.maybeInvertMatcher` to optionally apply `not` based on the Boolean argument
* Added `ViewInteraction.click()` extension function for short-hand.
* **service-glean**
* ⚠️ **This is a breaking API change!**: `Configuration` now accepts a Lazy<Client> to make sure the HTTP client (lib) is initialized lazily.
```kotlin
val config = Configuration(httpClient = lazy { GeckoViewFetchClient(context, GeckoRuntime()) })
Glean.initialize(context, config)
```
* **feature-accounts**, **service-firefox-account**
* Added API to start an FxA pairing flow. See `FirefoxAccountsAuthFeature.beginPairingAuthentication` and `FxaAccountsManager.beingAuthentication` respectively.
* **concept-storage**
* ⚠️ **This is a breaking API change!** for non-component implementations of `HistoryStorage`.
* `HistoryStorage` got new APIs: `deleteEverything`, `deleteVisitsSince`, `deleteVisitsBetween`, `deleteVisitsFor`, `prune` and `runMaintenance`.
* Added `BookmarksStorage` for handling the saving, searching, and management of browser bookmarks.
* **browser-storage-sync**, **browser-storage-memory**
* Implementations of `concept-storage`/`HistoryStorage` expose the newly added APIs.
* **browser-storage-sync**
* Implementations of `concept-storage`/`BookmarksStorage` expose the newly added APIs.
# 0.47.0
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.46.0...v0.47.0)
* [Milestone](https://github.com/mozilla-mobile/android-components/milestone/50?closed=1)
* [Dependencies](https://github.com/mozilla-mobile/android-components/blob/v0.47.0/buildSrc/src/main/java/Dependencies.kt)
* [Gecko](https://github.com/mozilla-mobile/android-components/blob/v0.47.0/buildSrc/src/main/java/Gecko.kt)
* [Configuration](https://github.com/mozilla-mobile/android-components/blob/v0.47.0/buildSrc/src/main/java/Config.kt)
* **browser-session**
* Added `Session.webAppManifest` to expose the [Web App Manifest](https://developer.mozilla.org/en-US/docs/Web/Manifest) of the currently visible page. This functionality will only be available in [GeckoView](https://mozilla.github.io/geckoview/)-flavored [concept-engine](https://github.com/mozilla-mobile/android-components/tree/main/components/concept/engine) implementations.
* Added `WebAppManifestParser` to create [WebAppManifest](https://mozac.org/api/mozilla.components.browser.session.manifest/-web-app-manifest/) from JSON.
* **browser-menu**
* Added `TwoStateButton` in `BrowserMenuItemToolbar` that will change resources based on the `isInPrimaryState` lambda and added ability to disable the button with optional `disableInSecondaryState` argument.
* **browser-toolbar**
* Adds `onCancelEditing` to `onEditListener` in `BrowserToolbar` which is fired when a back button press occurs while the keyboard is displayed.
This is especially useful if you want to call `activity.onBackPressed()` to navigate away rather than just dismiss the keyboard.
Its return value is used to determine if `displayMode` will switch from edit to view.
* **concept-sync**
* 🆕 New component which describes sync-related interfaces, such as SyncManager, SyncableStore, SyncStatusObserver and others.
* **concept-storage**
* ⚠️ **This is a breaking API change!**: Removed sync-related interfaces. See **concept-sync**.
* **HistoryStorage** interface has a new method: `getDetailedVisits(start, end) -> List<VisitInfo>`. It provides detailed information about page visits (title, visit type, timestamp, etc).
* **browser-storage-memory**, **browser-storage-sync**:
* Added implementations for the new getDetailedVisits API from **concept-storage**.
* **feature-sync**
* ⚠️ **This is a breaking API change!** Complete overhaul of this component.
* Added `BackgroundSyncManager`, a WorkManager-based implementation of the SyncManager defined in `concept-sync`.
* An instance of a SyncManager is an entry point for interacting with background data synchronization.
* See component's README for usage details.
* **browser-engine-system** and **browser-engine-gecko-nightly**
* ⚠️ **This is a breaking API change**: The [`captureThumbnail`](https://github.com/mozilla-mobile/android-components/blob/1b1600a7e8aa83a7e7d09b30cecd49762f7781f5/components/concept/engine/src/main/java/mozilla/components/concept/engine/EngineSession.kt#L245) function has been moved to [`EngineView`](https://github.com/mozilla-mobile/android-components/blob/1b1600a7e8aa83a7e7d09b30cecd49762f7781f5/components/concept/engine/src/main/java/mozilla/components/concept/engine/EngineView.kt#L15). From now on for taking screenshots automatically you will have to opt-in by using `ThumbnailsFeature`. The decision was made to reduce overhead memory consumption for apps that are not using screenshots. Find more info in [feature-session](https://github.com/mozilla-mobile/android-components/blob/main/components/feature/session/README.md) and a practical example can be found in the [sample-browser project](https://github.com/mozilla-mobile/android-components/blob/main/samples/browser).
* **feature-session-bundling**
* Saving, restoring and removing `SessionBundle` instances need to happen on a worker thread now (off the main thread).
* The actual session state is now saved on the file system outside of the internally used SQLite database.
* **support-ktx**
* Added `File.truncateDirectory()` to remove all files (and sub directories) in a directory.
* Added `Activity.applyOrientation(manifest: WebAppManifest)` extension method for applying orientation modes #2291.
* Added `Context.isMainProcess` and `Context.runOnlyInMainProcess(block: () -> Unit)` to detect when you're running on the main process.
```kotlin
// true if we are running in the main process otherwise false .
val isMainProcess = context.isMainProcess()
context.runOnlyInMainProcess {
/* This function is only going to run if we are
in the main process, otherwise it won't be executed. */
}
```
* **feature-pwa**
* 🆕 New component that provides functionality for supporting Progressive Web Apps (PWA).
* **feature-session**
* Adds support for the picture-in-picture mode in `PictureInPictureFeature`.
* **browser-storage-sync**
* Changed how Rust Places database connections are maintained, based on [new reader/writer APIs](https://github.com/mozilla/application-services/pull/718).
* **service-pocket**
* Access the list of global video recommendations via `PocketEndpoint.getGlobalVideoRecommendations`.
* **concept-fetch**
* Added common HTTP header constants in `Headers.Common`. This collection is incomplete: add your own!
# 0.46.0
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.45.0...v0.46.0)
* [Milestone](https://github.com/mozilla-mobile/android-components/milestone/49?closed=1)
* [Dependencies](https://github.com/mozilla-mobile/android-components/blob/v0.46.0/buildSrc/src/main/java/Dependencies.kt)
* [Gecko](https://github.com/mozilla-mobile/android-components/blob/v0.46.0/buildSrc/src/main/java/Gecko.kt)
* [Configuration](https://github.com/mozilla-mobile/android-components/blob/v0.46.0/buildSrc/src/main/java/Config.kt)
* **browser-awesomebar**
* Adds ability to remove `SuggestionProvider`s with `removeProviders` and `removeAllProviders`
* **browser-menu**
* ⚠️ **This is a breaking API change!**: Removed redundant `BrowserMenuImageText` `contentDescription`
* Adds `textSize` parameter to `SimpleBrowserMenuItem`
* **concept-fetch**
* ⚠️ **This is a breaking API change**: the [`Response`](https://mozac.org/api/mozilla.components.concept.fetch/-response/) properties `.success` and `.clientError` were renamed to `.isSuccess` and `isClientError` respectively to match Java conventions.
* **feature-downloads**
* Fixing bug #2265. In some occasions, when trying to download a file, the download failed and the download notification shows "Unsuccessful download".
* **feature-search**
* Adds default search engine var to `SearchEngineManager`
* Adds optional `SearchEngine` to `invoke()` in `SearchUseCases`
* **service-experiments**
* A new client-side experiments SDK for running segmenting user populations to run multi-branch experiments on them. This component is going to replace `service-fretboard`. The SDK is currently in development and the component is not ready to be used yet.
* * **browser-icons**
* Adding a decoder for decoding ICO files see #2040.
* **service-pocket**
* 🆕 New component to interact with the Pocket APIs.
# 0.45.0
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.44.0...v0.45.0)
* [Milestone](https://github.com/mozilla-mobile/android-components/milestone/47?closed=1)
* [Dependencies](https://github.com/mozilla-mobile/android-components/blob/v0.45.0/buildSrc/src/main/java/Dependencies.kt)
* [Gecko](https://github.com/mozilla-mobile/android-components/blob/v0.45.0/buildSrc/src/main/java/Gecko.kt)
* [Configuration](https://github.com/mozilla-mobile/android-components/blob/v0.45.0/buildSrc/src/main/java/Config.kt)
* Mozilla App Services dependency upgraded: **0.18.0** 🔺
* [0.18.0 release notes](https://github.com/mozilla/application-services/releases/tag/v0.18.0)
* **browser-engine-gecko-nightly**
* Added API to install web extensions:
```kotlin
val borderify = WebExtension("borderify", "resource://android/assets/extensions/borderify/")
engine.installWebExtension(borderify) {
ext, throwable -> Log.log(Log.Priority.ERROR, "MyApp", throwable, "Failed to install ${ext.id}")
}
```
* **feature-search**
* Added `newPrivateTabSearch` `NewTabSearchUseCase`
* **feature-toolbar**
* Added ability to color parts of the domain (e.g. [registrable domain](https://url.spec.whatwg.org/#host-registrable-domain)) by providing a `UrlRenderConfiguration`:
```kotlin
ToolbarFeature(
// ...
ToolbarFeature.UrlRenderConfiguration(
publicSuffixList, // Use a shared global instance
registrableDomainColor = 0xFFFF0000.toInt(),
urlColor = 0xFF00FF00.toInt()
)
```
* **browser-toolbar**
* `BrowserToolbar` `cancelView` is now `clearView` with new text clearing behavior and color attribute updated from `browserToolbarCancelColor` to `browserToolbarClearColor`
* **concept-awesomebar**
* ⚠️ **This is a breaking API change**: [AwesomeBar.Suggestion](https://mozac.org/api/mozilla.components.concept.awesomebar/-awesome-bar/-suggestion/) instances must now declare the provider that created them.
* **browser-awesomebar**
* [BrowserAwesomeBar](https://mozac.org/api/mozilla.components.browser.awesomebar/-browser-awesome-bar/) is now replacing suggestions "in-place" if their ids match. Additionally `BrowserAwesomeBar` now automatically scrolls to the top whenever the entered text changes.
* **feature-customtabs**
* Now returns false in `onBackPressed()` if feature is not initialized
* **support-android-test**
* 🆕 New component to be used for helpers used in instrumented (on device) tests (`src/androidTest`). This component complements `support-test` which is focused on helpers used in local unit tests (`src/test`).
* Added helper `LiveData.awaitValue()` which subscribes to the `LiveData` object and blocks until a value was observed. Returns the value or throws an `InterruptedException` if no value was observed (customizable timeout).
* **feature-session-bundling**
* Added optional `since` parameter to `SessionBundleStorage.bundles()` and `SessionBundleStorage.bundlesPaged()`.
# 0.44.0
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.43.0...v0.44.0)
* [Milestone](https://github.com/mozilla-mobile/android-components/milestone/46?closed=1)
* [Dependencies](https://github.com/mozilla-mobile/android-components/blob/v0.44.0/buildSrc/src/main/java/Dependencies.kt)
* [Gecko](https://github.com/mozilla-mobile/android-components/blob/v0.44.0/buildSrc/src/main/java/Gecko.kt)
* [Configuration](https://github.com/mozilla-mobile/android-components/blob/v0.44.0/buildSrc/src/main/java/Config.kt)
* **browser-menu**
* Added option to set background color by overriding `mozac_browser_menu_background` color resource.
```xml
<color name="mozac_browser_menu_background">DESIRED_COLOR</color>
```
**OR**
```xml
<style name="Mozac.Browser.Menu" parent="" tools:ignore="UnusedResources">
<item name="cardBackgroundColor">YOUR_COLOR</item>
</style>
```
* Added option to style `SimpleBrowserMenuItem` and `BrowserMenuImageText` with `textColorResource`.
* **browser-toolbar**
* Added option to configure fading edge length by using `browserToolbarFadingEdgeSize` XML attribute.
* Added `BrowserToolbar` attribute `browserToolbarCancelColor` to color the cancel icon.
* **feature-toolbar**
* `ToolbarPresenter` now handles situations where no `Session` is selected.
* **intent-processor**
* Intent processor now lets you set `isPrivate` which will open process intents as private tabs
* **service-fretboard (Kinto)**
* ⚠️ **This is a breaking API change!**
* Now makes use of our concept-fetch module when communicating with the server. This allows applications to specify which HTTP client library to use e.g. apps already using GeckoView can now specify that the `GeckoViewFetchClient` should be used. As a consequence, the fetch client instance now needs to be provided when creating a `KintoExperimentSource`.
```kotlin
val fretboard = Fretboard(
KintoExperimentSource(
baseUrl,
bucketName,
collectionName,
// Specify that the GV-based fetch client should be used.
GeckoViewFetchClient(context)
),
experimentStorage
)
```
* **feature-session-bundling**
* Added `SessionBundleStorage.autoClose()`: When "auto close" is enabled the currently active `SessionBundle` will automatically be closed and a new `SessionBundle` will be started if the bundle lifetime expires while the app is in the background.
* **browser-engine-gecko**, **browser-engine-gecko-beta**, **browser-engine-gecko-nightly**:
* Fixed an issue that caused [autofill](https://developer.android.com/guide/topics/text/autofill) to not work with those components.
* **feature-sitepermissions**
* 🆕 A feature for showing site permission request prompts. For more info take a look at the [docs](https://github.com/mozilla-mobile/android-components/blob/main/components/feature/sitepermissions/README.md).
* **browser-session**
* Added `SelectionAwareSessionObserver.observeIdOrSelected(sessionId: String?)` to observe the session based on a session ID. If the session does not exist, then observe the selected session.
# 0.43.0
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.42.0...v0.43.0)
* [Milestone](https://github.com/mozilla-mobile/android-components/milestone/45?closed=1)
* [Dependencies](https://github.com/mozilla-mobile/android-components/blob/v0.43.0/buildSrc/src/main/java/Dependencies.kt)
* [Gecko](https://github.com/mozilla-mobile/android-components/blob/v0.43.0/buildSrc/src/main/java/Gecko.kt)
* [Configuration](https://github.com/mozilla-mobile/android-components/blob/v0.43.0/buildSrc/src/main/java/Config.kt)
* **browser-engine-system**
* Added support for [JavaScript confirm alerts](https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm) on WebView.
* **browser-icons**
* 🆕 New component for loading and storing website icons (like [Favicons](https://en.wikipedia.org/wiki/Favicon)).
* Supports generating a "fallback" icon if no icon could be loaded.
* **concept-fetch**
* Added API to specify whether or not cookies should be sent with a request. This can be controlled using the `cookiePolicy` parameter when creating a `Request`.
```kotlin
// Do not send cookies with this request
client.fetch(Request(url, cookiePolicy = CookiePolicy.OMIT)).use { response ->
val body = response.body.string()
}
```
* Added flag to specify whether or not caches should be used. This can be controlled with the `useCaches` parameter when creating a `Request`.
```kotlin
// Force a network request (do not use cached responses)
client.fetch(Request(url, useCaches = false)).use { response ->
val body = response.body.string()
}
```
* **feature-awesomebar**
* ⚠️ **This is a breaking API change!**
* Now makes use of our concept-fetch module when fetching search suggestions. This allows applications to specify which HTTP client library to use e.g. apps already using GeckoView can now specify that the `GeckoViewFetchClient` should be used. As a consequence, the fetch client instance now needs to be provided when adding a search provider.
```kotlin
AwesomeBarFeature(layout.awesomeBar, layout.toolbar, layout.engineView)
.addHistoryProvider(components.historyStorage, components.sessionUseCases.loadUrl)
.addSessionProvider(components.sessionManager, components.tabsUseCases.selectTab)
.addSearchProvider(
components.searchEngineManager.getDefaultSearchEngine(requireContext()),
components.searchUseCases.defaultSearch,
// Specify that the GV-based fetch client should be used.
GeckoViewFetchClient(context))
```
* **ui-doorhanger**
* Added `DoorhangerPrompt` - a builder for creating a prompt `Doorhanger` providing a way to present decisions to users.
* **feature-downloads**
* Ignoring schemes that are not https or http [#issue 554](https://github.com/mozilla-mobile/reference-browser/issues/554)
* **support-ktx**
* Added `Uri.hostWithoutCommonPrefixes` to return the host with common prefixes removed:
```kotlin
"https://www.mozilla.org"
.toUri()
.hostWithoutCommonPrefixes // mozilla.org
"https://mobile.twitter.com/home"
.toUri()
.hostWithoutCommonPrefixes // twitter.com
"https://m.facebook.com/"
.toUri()
.hostWithoutCommonPrefixes
```
ℹ️ Note that this method only strips common prefixes like "www", "m" or "mobile". If you are interested in extracting something like the [eTLD](https://en.wikipedia.org/wiki/Public_Suffix_List) from a host then use [PublicSuffixList](https://mozac.org/api/mozilla.components.lib.publicsuffixlist/-public-suffix-list/) of the `lib-publicsuffixlist` component.
* Added `String.toUri()` as a shorthand for `Uri.parse()` and in addition to other `to*()` methods already available in the Kotlin Standard Library.
* **support-utils**
* Added `Browsers` utility class for collecting and analyzing information about installed browser applications.
* **browser-session**, **feature-session-bundling**
* `SessionStorage` and `SessionBundleStorage` now save and restore the title of `Session` objects.
* `SessionManager.restore()` now allows passing in empty snapshots.
* **feature-session-bundling**
* Empty snapshots are no longer saved in the database:
* If no restored bundle exists then no new bundle is saved for an empty snapshot.
* If there is an active bundle then the bundle will be removed instead of updated with the empty snapshot.
* **browser-toolbar**, **concept-toolbar**
* ⚠️ **This is a breaking API change**: The interface of the "URL commit listener" changed from `(String) -> Unit` to `(String) -> Boolean`. If the function returns `true` then the toolbar will automatically switch to "display mode". If no function is set or if the function returns false the toolbar remains in "edit mode".
* Added `private` field (`Boolean`): Enables/Disables private mode. In private mode the IME should not update any personalized data such as typing history and personalized language model based on what the user typed.
* The background and foreground color of the autocomplete suggestion can now be styled:
```xml
<mozilla.components.browser.toolbar.BrowserToolbar
...
app:browserToolbarSuggestionBackgroundColor="#ffffcc00"
app:browserToolbarSuggestionForegroundColor="#ffff4444"/>
```
# 0.42.0
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.41.0...v0.42.0)
* [Milestone](https://github.com/mozilla-mobile/android-components/milestone/44?closed=1)
* [API reference](https://mozilla-mobile.github.io/android-components/api/0.42.0/index)
* [Dependencies](https://github.com/mozilla-mobile/android-components/blob/v0.42.0/buildSrc/src/main/java/Dependencies.kt)
* [Gecko](https://github.com/mozilla-mobile/android-components/blob/v0.42.0/buildSrc/src/main/java/Gecko.kt)
* [Configuration](https://github.com/mozilla-mobile/android-components/blob/v0.42.0/buildSrc/src/main/java/Config.kt)
* **engine-gecko-nightly**
* Now also serves as an implementation of `concept-fetch` by providing the new `GeckoViewFetchClient`. This allows applications to rely on Gecko's networking capabilities when issuing HTTP requests, even outside the browser view (GeckoView).
* **feature-prompts**, **browser-engine-gecko***
* Added support for [JavaScript Confirm dialogs](https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm).
* **feature-session**
* Fixed an issue causing `EngineViewPresenter` to render a selected `Session` even though it was configured to show a fixed `Session`. This issue caused a crash (`IllegalStateException: Display already acquired`) in the [Reference Browser](https://github.com/mozilla-mobile/reference-browser) when a "Custom Tab" and the "Browser" tried to render the same `Session`.
* Fixed an issue where back and forward button handling would not take place on the session whose ID was provided.
* **feature-search**
* Added `SearchUseCases.NewTabSearchUseCase` and interface `SearchUseCase` (implemented by `DefaultSearchUseCase` and `NewTabSearchUseCase`).
* **browser-engine-system**
* Added support for [JavaScript prompt alerts](https://developer.mozilla.org/en-US/docs/Web/API/Window/prompt) on WebView.
* **feature-customtabs**
* Fixed an issue causing the `closeListener` to be invoked even when the current session isn't a Custom Tab.
* Fixed an issue with the image resources in the toolbar were not tinted when an app provided a light colour for the background.
* **support-base**
* Added `ViewBoundFeatureWrapper` for wrapping `LifecycleAwareFeature` references that will automatically be cleared if the provided `View` gets detached. This is helpful for fragments that want to keep a reference to a `LifecycleAwareFeature` (e.g. to be able call `onBackPressed()`) that itself has strong references to `View` objects. In cases where the fragment gets detached (e.g. to be added to the backstack) and the `View` gets detached (and destroyed) the wrapper will automatically stop the `LifecycleAwareFeature` and clear all references..
* Added generic `BackHandler` interface for fragments, features and other components that want to handle 'back' button presses.
* **ui-doorhanger**
* 🆕 New component: A `Doorhanger` is a floating heads-up popup that can be anchored to a view. They are presented to notify the user of something that is important (e.g. a content permission request).
* **feature-sitepermissions**
* 🆕 New component: A feature that will subscribe to the selected session, and will provide an UI for all the incoming appPermission and contentPermission request.
# 0.41.0
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.40.0...v0.41.0)
* [Milestone](https://github.com/mozilla-mobile/android-components/milestone/43?closed=1)
* [API reference](https://mozilla-mobile.github.io/android-components/api/0.41.0/index)
* [Dependencies](https://github.com/mozilla-mobile/android-components/blob/v0.41.0/buildSrc/src/main/java/Dependencies.kt)
* [Gecko](https://github.com/mozilla-mobile/android-components/blob/v0.41.0/buildSrc/src/main/java/Gecko.kt)
* [Configuration](https://github.com/mozilla-mobile/android-components/blob/v0.41.0/buildSrc/src/main/java/Config.kt)
* Mozilla App Services dependency upgraded: **0.15.0** 🔺
* [0.15.0 release notes](https://github.com/mozilla/application-services/releases/tag/v0.15.0)
* **browser-engine-gecko-nightly**
* Tweaked `NestedGeckoView` to "stick" to `AppBar` in nested scroll, like other Android apps. This is possible after a [fix](https://bugzilla.mozilla.org/show_bug.cgi?id=1515774) in APZ gesture detection.
* **feature-browser**
* Added `BrowserToolbar` attributes to color the menu.
```xml
<mozilla.components.browser.toolbar.BrowserToolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="56dp"
android:background="#aaaaaa"
app:browserToolbarMenuColor="@color/photonBlue50"
app:browserToolbarInsecureColor="@color/photonRed50"
app:browserToolbarSecureColor="@color/photonGreen50" />
```
* **feature-contextmenu**
* Fixed Context Menus feature to work with Custom Tabs by passing in the session ID when applicable.
* **feature-customtabs**
* Added a temporary workaround for Custom Tab intents not being recognized when using the Jetifier tool.
* **feature-downloads**
* ⚠️ **This is a breaking API change!**
* The required permissions are now passed to the `onNeedToRequestPermissions` callback.
```kotlin
downloadsFeature = DownloadsFeature(
requireContext(),
sessionManager = components.sessionManager,
fragmentManager = childFragmentManager,
onNeedToRequestPermissions = { permissions ->
requestPermissions(permissions, REQUEST_CODE_DOWNLOAD_PERMISSIONS)
}
)
```
* Removed the `onPermissionsGranted` method in favour of `onPermissionsResult` which handles both granted and denied permissions. This method should be invoked from `onRequestPermissionsResult`:
```kotlin
override fun onRequestPermissionsResult(requestCode: Int, permissions: Array<String>, grantResults: IntArray) {
when (requestCode) {
REQUEST_CODE_DOWNLOAD_PERMISSIONS -> downloadsFeature.onPermissionsResult(permissions, grantResults)
}
}
```
* Fixed Downloads feature to work with Custom Tabs by passing in the session ID when applicable.
* **feature-prompts**
* ⚠️ **This is a breaking API change!**
* These change are similar to the ones for feature-downloads above and aim to provide a consistent way of handling permission requests.
* The required permissions are now passed to the `onNeedToRequestPermissions` callback.
```kotlin
promptFeature = PromptFeature(
fragment = this,
sessionManager = components.sessionManager,
fragmentManager = requireFragmentManager(),
onNeedToRequestPermissions = { permissions ->
requestPermissions(permissions, REQUEST_CODE_PROMPT_PERMISSIONS)
}
)
```
* Renamed `onRequestsPermissionsResult` to `onPermissionResult` and allow applications to specify the permission request code. This method should be invoked from `onRequestPermissionsResult`:
```kotlin
override fun onRequestPermissionsResult(requestCode: Int, permissions: Array<String>, grantResults: IntArray) {
when (requestCode) {
REQUEST_CODE_DOWNLOAD_PERMISSIONS -> downloadsFeature.onPermissionsResult(permissions, grantResults)
}
}
```
* **feature-contextmenu**
* The component is now performing [haptic feedback](https://material.io/design/platform-guidance/android-haptics.html#) when showing a context menu.
* **browser-engine-gecko**, **browser-engine-gecko-beta**, **browser-engine-gecko-nightly**
* After "Merge Day" and the release of Firefox 65 we updated our gecko-based components to follow the new upstream versions:
* `browser-engine-gecko`: 65.0
* `browser-engine-gecko-beta`: 66.0
* `browser-engine-gecko-nightly`: 67.0
* **browser-toolbar**
* Toolbar URL autocompletion is now performed off the UI thread.
* **concept-storage**
* ⚠️ **This is a breaking API change!**
* `HistoryAutocompleteResult` now includes an `input` field.
* **browser-domains**
* ⚠️ **This is a breaking API change!**
* `DomainAutocompleteResult` now includes an `input` field.
# 0.40.0
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.39.0...v0.40.0)
* [Milestone](https://github.com/mozilla-mobile/android-components/milestone/42?closed=1)
* [API reference](https://mozilla-mobile.github.io/android-components/api/0.40.0/index)
* [Dependencies](https://github.com/mozilla-mobile/android-components/blob/v0.40.0/buildSrc/src/main/java/Dependencies.kt)
* [Gecko](https://github.com/mozilla-mobile/android-components/blob/v0.40.0/buildSrc/src/main/java/Gecko.kt)
* [Configuration](https://github.com/mozilla-mobile/android-components/blob/v0.40.0/buildSrc/src/main/java/Config.kt)
* **support-ktx**
* Added `Lifecycle.addObservers` to observe the lifecycle for multiple classes.
```kotlin
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
lifecycle.addObservers(
fullscreenFeature,
sessionFeature,
customTabsToolbarFeature
)
}
```
* **feature-awesomebar**
* Added ability to show one item per search suggestion ([#1779](https://github.com/mozilla-mobile/android-components/issues/1779))
* Added ability to define custom hooks to be invoked when editing starts or is completed.
* **browser-awesomebar**
* Added ability to let consumers define the layouting of suggestions by implementing `SuggestionLayout` in order to control layout inflation and view binding.
```kotlin
// Create a ViewHolder for your custom layout.
class CustomViewHolder(view: View) : SuggestionViewHolder(view) {
private val textView = view.findViewById<TextView>(R.id.text)
override fun bind(
suggestion: AwesomeBar.Suggestion,
selectionListener: () -> Unit
) {
textView.text = suggestion.title
textView.setOnClickListener {
suggestion.onSuggestionClicked?.invoke()
selectionListener.invoke()
}
}
}
// Create a custom SuggestionLayout for controlling view inflation
class CustomSuggestionLayout : SuggestionLayout {
override fun getLayoutResource(suggestion: AwesomeBar.Suggestion): Int {
return android.R.layout.simple_list_item_1
}
override fun createViewHolder(awesomeBar: BrowserAwesomeBar, view: View, layoutId: Int): SuggestionViewHolder {
return CustomViewHolder(view)
}
}
```
* Added ability to transform suggestions returned by provider (adding data, removing data, filtering suggestions, ...)
```kotlin
awesomeBar.transformer = object : SuggestionTransformer {
override fun transform(
provider: AwesomeBar.SuggestionProvider,
suggestions: List<AwesomeBar.Suggestion>
): List<AwesomeBar.Suggestion> {
return suggestions.map { suggestion ->
suggestion.copy(title = "Awesome!")
}
}
}
// Use the custom layout with a BrowserAwesomeBar instance
awesomeBar.layout = CustomSuggestionLayout()
```
* **lib-publicsuffixlist**
* The public suffix list shipping with this component is now updated automatically in the repository every day (if there are changes).
* Fixed an issue when comparing domain labels against the public suffix list ([#1777](https://github.com/mozilla-mobile/android-components/issues/1777))
* **feature-prompts**, **browser-engine-gecko***
* Added support for [Pop-up windows dialog](https://support.mozilla.org/en-US/kb/pop-blocker-settings-exceptions-troubleshooting#w_what-are-pop-ups).
* **browser-engine-system**
* Preventing JavaScript `confirm()` and `prompt()` until providing proper implementation #1816.
* **feature-search**, **feature-session**
* `SessionUseCases` and `SearchUseCases` now take an optional `onNoSession: String -> Session` lambda parameter. This function will be invoked when executing a use case that requires a (selected) `Session` and no such session is available. This makes using the use cases and feature components usable in browsers that may not always have sessions. The default implementation creates a new `Session` and adds it to the `SessionManager`.
* **support-rustlog**
* 🆕 New component: This component allows consumers of [megazorded](https://mozilla.github.io/application-services/docs/applications/consuming-megazord-libraries.html) Rust libraries produced by application-services to redirect their log output to the base component's log system as follows:
```kotlin
import mozilla.components.support.rustlog.RustLog
import mozilla.components.support.base.log.Log
// In onCreate, any time after MyMegazordClass.init()
RustLog.enable()
// Note: By default this is enabled at level DEBUG, which can be adjusted.
// (It is recommended you do this for performance if you adjust
// `Log.logLevel`).
RustLog.setMaxLevel(Log.Priority.INFO)
// You can also enable "trace logs", which may include PII
// (but can assist debugging) as follows. It is recommended
// you not do this in builds you distribute to users.
RustLog.setMaxLevel(Log.Priority.DEBUG, true)
```
* This is pointless to do when not using a megazord.
* Megazording is required due to each dynamically loaded Rust library having its own internal/private version of the Rust logging framework. When megazording, this is still true, but there's only a single dynamically loaded library, and so it's redirected properly. (This could probably be worked around, but it would take a great effort, and given that we expect most production use of these libraries will be using megazords, we accepted this limitation)
* This would be very annoying during initial development (and debugging the sample apps), so by default, we'll log (directly, e.g. not through the base component logger) to logcat when not megazorded.
* Note that you must call `MyMegazordClass.init()` *before* any uses of this class.
* Mozilla App Services library updated to 0.14.0. See [release notes](https://github.com/mozilla/application-services/releases/tag/v0.14.0) for details.
* Important: Users consuming megazords must also update the application-services gradle plugin to version 0.3.0.
* **feature-findinpage**
* 🆕 A new feature component for [finding text in a web page](https://support.mozilla.org/en-US/kb/search-contents-current-page-text-or-links). [Documentation](https://github.com/mozilla-mobile/android-components/blob/main/components/feature/findinpage/README.md).
* **service-firefox-accounts**
* Added `FxaAccountManager`, which encapsulates a lower level accounts API and provides an observable interface for consumers that wish to be notified of account and profile changes.
* Background-worker friendly.
```kotlin
// Long-lived instance, pinned on an application.
val accountManager = FxaAccountManager(context, Config.release(CLIENT_ID, REDIRECT_URL), arrayOf("profile"))
launch { accountManager.init() }
// Somewhere in a fragment that cares about account state...
accountManager.register(object : AccountObserver {
override fun onLoggedOut() {
...
}
override fun onAuthenticated(account: FirefoxAccountShaped) {
...
}
override fun onProfileUpdated(profile: Profile) {
...
}
override fun onError(error: FxaException) {
...
}
}
// Reacting to a "sign-in" user action:
launch {
val authUrl = try {
accountManager.beginAuthentication().await()
} catch (error: FxaException) {
// ... display error ui...
return@launch
}
openWebView(authUrl)
}
```
* **feature-accounts** 🆕
* Added a new `FirefoxAccountsAuthFeature`, which ties together the **FxaAccountManager** with a session manager via **feature-tabs**.
* **browser-toolbar**
* Fixing bug that allowed text behind the security icon being selectable. [Issue #448](https://github.com/mozilla-mobile/reference-browser/issues/448)
# 0.39.0
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.38.0...v0.39.0)
* [Milestone](https://github.com/mozilla-mobile/android-components/milestone/41?closed=1)
* [API reference](https://mozilla-mobile.github.io/android-components/api/0.39.0/index)
* [Dependencies](https://github.com/mozilla-mobile/android-components/blob/main/buildSrc/src/main/java/Dependencies.kt)
* [Gecko](https://github.com/mozilla-mobile/android-components/blob/main/buildSrc/src/main/java/Gecko.kt)
* [Configuration](https://github.com/mozilla-mobile/android-components/blob/main/buildSrc/src/main/java/Config.kt)
* **feature-awesomebar**
* Added `ClipboardSuggestionProvider` - An `AwesomeBar.SuggestionProvider` implementation that returns a suggestions for an URL in the clipboard (if there's any).
* **feature-prompts**, **browser-engine-gecko**
* Added support for [Window.prompt](https://developer.mozilla.org/en-US/docs/Web/API/Window/prompt).
* Fixing Issue [#1771](https://github.com/mozilla-mobile/android-components/issues/1771). Supporting single choice items with sub-menus group.
* **browser-engine-gecko-nightly**
* The GeckoView Nightly dependency is now updated to the latest version automatically in cases where no code changes are required.
* **browser-menu**
* Added [docs](https://github.com/mozilla-mobile/android-components/blob/main/components/browser/menu/README.md#browsermenu) for customizing `BrowserMenu`.
* Added `BrowserMenuDivider`. [For customization take a look at the docs.](https://github.com/mozilla-mobile/android-components/tree/main/components/browser/menu/README.md#BrowserMenuDivider)
* Added [BrowserMenuImageText](https://github.com/mozilla-mobile/android-components/blob/main/components/browser/menu/README.md#BrowserMenuImageText) for show an icon next to text in menus.
* Added support for showing a menu with DOWN and UP orientation (e.g. for supporting menus in bottom toolbars).
* **concept-engine**, **browser-engine-gecko-***
* Added support for enabling tracking protection for specific session type:
```kotlin
val engine = GeckoEngine(runtime, DefaultSettings(
trackingProtectionPolicy = TrackingProtectionPolicy.all().forPrivateSessionsOnly())
)
```
* **browser-toolbar**
* Added `BrowserToolbarBottomBehavior` - a [CoordinatorLayout.Behavior](https://developer.android.com/reference/android/support/design/widget/CoordinatorLayout.Behavior) implementation to be used when placing `BrowserToolbar` at the bottom of the screen. This behavior will:
* Show/Hide the `BrowserToolbar` automatically when scrolling vertically.
* On showing a [Snackbar] position it above the `BrowserToolbar`.
* Snap the `BrowserToolbar` to be hidden or visible when the user stops scrolling.
* **lib-publicsuffixlist**
* 🆕 A new component/library for reading and using the [public suffix list](https://publicsuffix.org/). Details can be found in our [docs](https://github.com/mozilla-mobile/android-components/blob/main/components/lib/publicsuffixlist/README.md).
# 0.38.0
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.37.0...v0.38.0),
[Milestone](https://github.com/mozilla-mobile/android-components/milestone/40?closed=1),
[API reference](https://mozilla-mobile.github.io/android-components/api/0.38.0/index)
* Compiled against:
* Android (SDK: 28, Support Libraries: 28.0.0)
* Kotlin (Stdlib: 1.3.10, Coroutines: 1.0.1)
* GeckoView (Nightly: **66.0.20190111093148** 🔺, Beta: 65.0.20181211223337, Release: 64.0.20181214004633)
* Mozilla App Services (FxA: **0.13.3** 🔺, Sync Logins: **0.13.3** 🔺, Places: **0.13.3** 🔺)
* [0.13.0 release notes](https://github.com/mozilla/application-services/releases/tag/v0.13.0)
* [0.13.1 release notes](https://github.com/mozilla/application-services/releases/tag/v0.13.1)
* [0.13.2 release notes](https://github.com/mozilla/application-services/releases/tag/v0.13.2)
* [0.13.3 release notes](https://github.com/mozilla/application-services/releases/tag/v0.13.3)
* Third Party Libs (Sentry: 1.7.14, Okhttp: 3.12.0)
* **support-utils**
* [Improve URL toolbar autocompletion matching](https://github.com/mozilla-mobile/android-components/commit/ff25ec3e6646736e2b4ba3ee1d9fdd9a8412ce8c).
* **browser-session**
* [Improving tab selection algorithm, when removing the selected tab.](https://github.com/mozilla-mobile/android-components/issues/1518)
* [Saving the state when the app goes to the background no longer blocks the UI thread.](https://github.com/mozilla-mobile/android-components/commit/ea811e089cd40c6d1fc9ec688fa5db3e7b023331)
* **browser-engine-system**
* Added support for JavaScript alerts on SystemEngineView.
* [Improving use of internal Webview](https://github.com/mozilla-mobile/android-components/commit/59240f7a71a9f63fc51c1ff65e604f6735196a0e).
* **feature-customtabs**
* Added a close button to a custom tab with back button handling.
* **feature-prompts**, **browser-engine-gecko**
* Added support for Authentication dialogs.
* Added support for [datetime-local](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local) and [time](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/time) pickers.
* Added support for [input type color fields](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/color).
* **browser-menu**
* `BrowserMenuItemToolbar` now allows overriding the `visible` lambda.
* **service-sync-logins**, **service-firefox-accounts**, **concept-storage**
* Updated underlying library from 0.12.1 to 0.13.3, see the [release notes for 0.13.0](https://github.com/mozilla/application-services/blob/master/CHANGELOG.md#0130-2019-01-09) for further details on the most substantial changes. ([#1690](https://github.com/mozilla-mobile/android-components/issues/1690))
* sync-logins: Added a new `wipeLocal` method, for clearing all local data.
* sync-logins: Removed `reset` because it served a nonexistent use case, callers almost certainly want `wipeLocal` or `wipe` instead.
* sync-logins: Added `ensureLocked` and `ensureUnlocked` for cases where checking `isLocked` is inconvenient or requires additional locking.
* sync-logins: Allow storage to be unlocked using a `ByteArray` instead of a `String`.
* firefox-accounts: Network errors will now be reported as instances of FxaException.Network, instead of `FxaException.Unspecified`.
* history (concept-storage): PII is no longer logged during syncing (or any other time).
# 0.37.0
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.36.0...v0.37.0),
[Milestone](https://github.com/mozilla-mobile/android-components/milestone/39?closed=1),
[API reference](https://mozilla-mobile.github.io/android-components/api/0.37.0/index)
* Compiled against:
* Android (SDK: 28, Support Libraries: 28.0.0)
* Kotlin (Stdlib: 1.3.10, Coroutines: 1.0.1)
* GeckoView (Nightly: 66.0.20181217093726, Beta: 65.0.20181211223337, Release: 64.0.20181214004633)
* Mozilla App Services (FxA: 0.12.1, Sync Logins: 0.12.1, Places: 0.12.1)
* Third Party Libs (Sentry: 1.7.14, Okhttp: 3.12.0)
* **feature-customtabs**
* Added a new feature `CustomTabsToolbarFeature` which will handle setting up the `BrowserToolbar` with the configurations available in that session:
```kotlin
CustomTabsToolbarFeature(
sessionManager,
browserToolbar,
sessionId
).also { lifecycle.addObserver(it) }
```
Note: this constructor API is still a work-in-progress and will change as more Custom Tabs support is added to it next release.
* Fixed a bug where a third-party app (like Gmail or Slack) could crash when calling warmup().
* **feature-session-bundling**
* 🆕 New component that saves the state of sessions (`SessionManager.Snapshot`) in grouped bundles (e.g. by time).
* **service-telemetry**
* Added new "pocket event" ping builder ([#1606](https://github.com/mozilla-mobile/android-components/issues/1606))
* Added ability to get ping builder by type from `Telemetry` instance.
* ⚠️ **This is a breaking change!** <br/>
HttpURLConnectionTelemetryClient was removed. *service-telemetry* is now using [*concept-fetch*](https://github.com/mozilla-mobile/android-components/tree/main/components/concept/fetch) which allows consumers to use a unified http client. There are two options available currently: [lib-fetch-httpurlconnection](https://github.com/mozilla-mobile/android-components/tree/main/components/lib/fetch-httpurlconnection) (Based on [HttpURLConnection](https://developer.android.com/reference/java/net/HttpURLConnection)) and [lib-fetch-okhttp](https://github.com/mozilla-mobile/android-components/tree/main/components/lib/fetch-okhttp) (Based on [OkHttp](https://github.com/square/okhttp)).
```Kotlin
// Using HttpURLConnection:
val client = new TelemetryClient(HttpURLConnectionClient())
// Using OkHttp:
val client = TelemetryClient(OkHttpClient())
val telemetry = Telemetry(configuration, storage, client, scheduler)
```
* **browser-search**
* Updated search plugins ([#1563](https://github.com/mozilla-mobile/android-components/issues/1563))
* **ui-autocomplete**
* Fixed a bug where pressing backspace could skip a character ([#1489](https://github.com/mozilla-mobile/android-components/issues/1489)).
* **feature-customtabs**
* Fixed a bug where a third-party app (like Gmail or Slack) could crash when calling warmup().
* **browser-session**
* Added ability to notify observers when desktop mode changes (`onDesktopModeChange`)
* **browser-menu**
* Added new `BrowserMenuSwitch` for using switch widgets inside the menu.
* **support-ktx**
* Added extension method `Bitmap.withRoundedCorners(cornerRadiusPx: Float)`
* **support-base**
* Introduced `LifecycleAwareFeature` for writing features that depend on a lifecycle.
# 0.36.1
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.36.0...v0.36.1)
* Compiled against:
* Android (SDK: 28, Support Libraries: 28.0.0)
* Kotlin (Stdlib: 1.3.10, Coroutines: 1.0.1)
* GeckoView (Nightly: 66.0.20181217093726, Beta: 65.0.20181211223337, Release: 64.0.20181214004633)
* Mozilla App Services (FxA: 0.12.1, Sync Logins: 0.12.1, Places: 0.12.1)
* Third Party Libs (Sentry: 1.7.14, Okhttp: 3.12.0)
* **feature-customtabs**
* Fixed a bug where a third-party app (like Gmail or Slack) could crash when calling warmup().
# 0.36.0
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.35.0...v0.36.0),
[Milestone](https://github.com/mozilla-mobile/android-components/milestone/38?closed=1),
[API reference](https://mozilla-mobile.github.io/android-components/api/0.36.0/index)
* Compiled against:
* Android (SDK: 28, Support Libraries: 28.0.0)
* Kotlin (Stdlib: 1.3.10, Coroutines: 1.0.1)
* GeckoView (Nightly: 66.0.20181217093726, Beta: 65.0.20181211223337, Release: 64.0.20181214004633)
* Mozilla App Services (FxA: 0.12.1, Sync Logins: 0.12.1, Places: 0.12.1)
* Third Party Libs (Sentry: 1.7.14, Okhttp: 3.12.0)
* **browser-session**
* Added a use case for exiting fullscreen mode.
```kotlin
val sessionUseCases = SessionUseCases(sessionManager)
if (isFullScreenMode) {
sessionUseCases.exitFullscreen.invoke()
}
```
* We also added a `FullScreenFeature` that manages fullscreen support.
```kotlin
val fullScreenFeature = FullScreenFeature(sessionManaager, sessionUseCases) { enabled ->
if (enabled) {
// Make custom views hide.
} else {
// Make custom views unhide.
}
}
override fun onBackPressed() : Boolean {
// Handling back presses when in fullscreen mode
return fullScreenFeature.onBackPressed()
}
```
* **feature-customtabs**
* Added support for opening speculative connections for a likely future navigation to a URL (`mayLaunchUrl`)
* **feature-prompts**, **engine-gecko-***, **engine-system**
* Added support for file picker requests.
There some requests that are not handled with dialogs, instead they are delegated to other apps
to perform the request, an example is a file picker request. As a result, now you have to override
`onActivityResult` on your `Activity` or `Fragment` and forward its calls to `promptFeature.onActivityResult`.
Additionally, there are requests that need some permission to be granted before they can be performed, like
file pickers that need access to read the selected files. Like `onActivityResult` you need to override
`onRequestPermissionsResult` and forward its calls to `promptFeature.onRequestPermissionsResult`.
* **browser-toolbar**
* The "urlBoxView" is now drawn behind the site security icon (in addition to the URL and the page actions)
# 0.35.1
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.35.0...v0.35.1)
* Compiled against:
* Android (SDK: 28, Support Libraries: 28.0.0)
* Kotlin (Stdlib: 1.3.10, Coroutines: 1.0.1)
* GeckoView (Nightly: 66.0.20181217093726, Beta: 65.0.20181211223337, Release: 64.0.20181214004633)
* Mozilla App Services (FxA: **0.12.1** 🔺, Sync Logins: **0.12.1** 🔺, Places: **0.12.1** 🔺)
* Third Party Libs (Sentry: 1.7.14, Okhttp: 3.12.0)
* Re-release of 0.34.1 with updated App Services dependencies (0.12.1).
# 0.35.0
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.34.0...v0.35.0),
[Milestone](https://github.com/mozilla-mobile/android-components/milestone/37?closed=1),
[API reference](https://mozilla-mobile.github.io/android-components/api/0.35.0/index)
* Compiled against:
* Android (SDK: 28, Support Libraries: 28.0.0)
* Kotlin (Stdlib: 1.3.10, Coroutines: 1.0.1)
* GeckoView (Nightly: **66.0.20181217093726** 🔺, Beta: **65.0.20181211223337** 🔺, Release: **64.0.20181214004633** 🔺)
* Mozilla App Services (FxA: 0.11.5, Sync Logins: 0.11.5, Places: 0.11.5)
* Third Party Libs (Sentry: 1.7.14, Okhttp: 3.12.0)
* **browser-errorpages**
* Localized strings for de, es, fr, it, ja, ko, zh-rCN, zh-rTW.
* **feature-customtabs**
* Added support for warming up the browser process asynchronously.
* ⚠️ **This is a breaking change**
* `CustomTabsService` has been renamed to `AbstractCustomTabsService` and is now an abstract class in order to allow apps to inject the `Engine` they are using. An app that wants to support custom tabs will need to create its own class and reference it in the manifest:
```kotlin
class CustomTabsService : AbstractCustomTabsService() {
override val engine: Engine by lazy { components.engine }
}
```
* **feature-prompts**
* Added support for alerts dialogs.
* Added support for date picker dialogs.
* **feature-tabs**
* Added support to remove all or specific types of tabs to the `TabsUseCases`.
```kotlin
// Remove all tabs
tabsUseCases.removeAllTabs.invoke()
// Remove all regular tabs
tabsUseCases.removeAllTabsOfType.invoke(private = false)
// Remove all private tabs
tabsUseCases.removeAllTabsOfType.invoke(private = true)
```
* **support-ktx**
New extension function `toDate` that converts a string to a Date object from a formatter input.
```kotlin
val date = "2019-11-28".toDate("yyyy-MM-dd")
```
* **concept-engine**, **engine-gecko-beta**, **engine-gecko-nightly**:
* Add setting to enable testing mode which is used in engine-gecko to set `FULL_ACCESSIBILITY_TREE` to `true`. This allows access to the full DOM tree for testing purposes.
```kotlin
// Turn testing mode on by default when the engine is created
val engine = GeckoEngine(runtime, DefaultSettings(testingModeEnabled=true))
// Or turn testing mode on at a later point
engine.settings.testingModeEnabled = true
```
* The existing `userAgentString` setting is now supported by `engine-gecko-beta` and `engine-gecko-nightly`.
* **feature-session**
* Added a `HistoryTrackingDelegate` implementation, which previously lived in **feature-storage**.
* **feature-storage**
* Removed! See **feature-session** instead.
* **sample-browser**
* Added in-memory browsing history as one of the AwesomeBar data providers.
* **feature-sync**
* Simplified error handling. Errors are wrapped in a SyncResult, exceptions are no longer thrown.
* `FirefoxSyncFeature`'s constructor now takes a map of `Syncable` instances. That is, the internal list of `Syncables` is no longer mutable.
* `sync` is now a `suspend` function. Callers are expected to manage scoping themselves.
* Ability to observe "sync is running" and "sync is idle" events vs `SyncStatusObserver` interface.
* Ability to query for current sync state (running or idle).
* See included `sample-sync-history` application for example usage of these observers.
# 0.34.2
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.34.1...v0.34.2)
* Compiled against:
* Android (SDK: 28, Support Libraries: 28.0.0)
* Kotlin (Stdlib: 1.3.10, Coroutines: 1.0.1)
* GeckoView (Nightly: 65.0.20181129095546, Beta: 64.0.20181022150107, Release: 63.0.20181018182531)
* Mozilla App Services (FxA: **0.11.5** 🔺, Sync Logins: **0.11.5** 🔺, Places: **0.11.5** 🔺)
* Third Party Libs (Sentry: 1.7.14, Okhttp: 3.12.0)
* Re-release of 0.34.1 with updated App Services dependencies (0.11.5).
# 0.34.1
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.34.0...v0.34.1)
* Compiled against:
* Android (SDK: 28, Support Libraries: 28.0.0)
* Kotlin (Stdlib: 1.3.10, Coroutines: 1.0.1)
* GeckoView (Nightly: **65.0.20181129095546** 🔺, Beta: 64.0.20181022150107, Release: 63.0.20181018182531)
* Mozilla App Services (FxA: 0.11.2, Sync Logins: 0.11.2, Places: 0.11.2)
* Third Party Libs (Sentry: 1.7.14, Okhttp: 3.12.0)
* **browser-engine-gecko-nightly**
* Updated GeckoView dependency.
# 0.34.0
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.33.0...v0.34.0),
[Milestone](https://github.com/mozilla-mobile/android-components/milestone/36?closed=1),
[API reference](https://mozilla-mobile.github.io/android-components/api/0.34.0/index)
* Compiled against:
* Android (SDK: 28, Support Libraries: 28.0.0)
* Kotlin (Stdlib: 1.3.10, Coroutines: 1.0.1)
* GeckoView (Nightly: 65.0.20181123100059, Beta: 64.0.20181022150107, Release: 63.0.20181018182531)
* Mozilla App Services (FxA: **0.11.2** 🔺, Sync Logins: **0.11.2** 🔺, Places: **0.11.2** 🔺)
* Third Party Libs (Sentry: 1.7.14, Okhttp: 3.12.0)
* **browser-engine-gecko-nightly**
* Added support for observing history events and providing visited URLs (`HistoryTrackingDelegate`).
* **browser-engine-system**
* Fixed a crash when calling `SystemEngineSession.saveState()` from a non-UI thread.
* **browser-awesomebar**
* Added ability for search suggestions to span multiple rows.
* **browser-toolbar**
* Fixed rendering issue when displaying site security icons.
* **feature-prompts**
* 🆕 New component: A component that will subscribe to the selected session and will handle all the common prompt dialogs from web content.
```kotlin
val promptFeature = PromptFeature(sessionManager,fragmentManager)
//It will start listing for new prompt requests for web content.
promptFeature.start()
//It will stop listing for future prompt requests for web content.
promptFeature.stop()
```
* **feature-session**, **browser-session**, **concept-engine**, **browser-engine-system**:
* Added functionality to observe window requests from the browser engine. These requests can be observed on the session directly using `onOpenWindowRequest` and `onCloseWindowRequest`, but we also provide a feature class, which will automatically open and close the corresponding window:
```Kotlin
windowFeature = WindowFeature(engine, sessionManager)
override fun onStart() {
windowFeature.start()
}
override fun onStop() {
windowFeature.stop()
}
```
In addition, to observe window requests the new engine setting `supportMultipleWindows` has to be set to true:
```Kotlin
val engine = SystemEngine(context,
DefaultSettings(
supportMultipleWindows = true
)
)
```
* **concept-storage**, **browser-storage-sync**, **services-logins-sync**:
* Added a new interface, `SyncableStore<AuthType>`, which allows a storage layer to be used with `feature-sync`.
* Added a `SyncableStore<SyncAuthInfo>` implementation for `browser-storage-sync`
* Added a `SyncableStore<SyncUnlockInfo>` implementation for `services-logins-sync`.
* **feature-sync**:
* 🆕 New component: A component which orchestrates synchronization of groups of similar `SyncableStore` objects using a `FirefoxAccount`.
* Here is an example of configuring and synchronizing a places-backed `HistoryStorage` (provided by `browser-storage-sync` component):
```Kotlin
val historyStorage = PlacesHistoryStorage(context)
val featureSync = FirefoxSyncFeature(Dispatchers.IO + job) { authInfo ->
SyncAuthInfo(
fxaAccessToken = authInfo.fxaAccessToken,
kid = authInfo.kid,
syncKey = authInfo.syncKey,
tokenserverURL = authInfo.tokenServerUrl
)
}.also {
it.addSyncable("placesHistory", historyStorage)
}
val syncResult = featureSync.sync().await()
assert(syncResults["placesHistory"]!!.status is SyncOk)
```
* **service-firefox-accounts**:
* ⚠️ **This is a breaking change**
* We've simplified the API to provide the FxA configuration:
```Kotlin
// Before
Config.custom(CONFIG_URL).await().use {
config -> FirefoxAccount(config, CLIENT_ID, REDIRECT_URL)
}
// Now
val config = Config(CONFIG_URL, CLIENT_ID, REDIRECT_URL)
FirefoxAccount(config)
```
A full working example can be found [here](https://github.com/mozilla-mobile/android-components/blob/main/samples/firefox-accounts/src/main/java/org/mozilla/samples/fxa/MainActivity.kt).
# 0.33.0
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.32.0...v0.33.0),
[Milestone](https://github.com/mozilla-mobile/android-components/milestone/35?closed=1),
[API reference](https://mozilla-mobile.github.io/android-components/api/0.33.0/index)
* Compiled against:
* Android (SDK: 28, Support Libraries: 28.0.0)
* Kotlin (Stdlib: **1.3.10** 🔺, Coroutines: 1.0.1)
* GeckoView (Nightly: **65.0.20181123100059** 🔺, Beta: 64.0.20181022150107, Release: 63.0.20181018182531)
* Mozilla App Services (FxA: 0.10.0, Sync Logins: 0.10.0, Places: 0.10.0)
* Third Party Libs (Sentry: 1.7.14, Okhttp: 3.12.0)
* **feature-contextmenu**
* 🆕 New component: A component for displaying context menus when *long-pressing* web content.
* **concept-toolbar**: 🆕 Added autocomplete support
* Toolbar concept got a new `setAutocompleteListener` method.
* Added `AutocompleteDelegate` concept which allows tying together autocomplete results with a UI presenter.
* **concept-storage** and all of its implementations
* ⚠️ **This is a breaking change**
* Renamed `getDomainSuggestion` to `getAutocompleteSuggestion`, which now returns a `HistoryAutocompleteResult`.
* **feature-toolbar**
* 🆕 Added new `ToolbarAutocompleteFeature`:
```Kotlin
toolbarAutocompleteFeature = ToolbarAutocompleteFeature(toolbar).apply {
this.addHistoryStorageProvider(components.historyStorage)
this.addDomainProvider(components.shippedDomainsProvider)
}
```
* **samples-browser**, **samples-toolbar**
* Converted these samples to use the new `ToolbarAutocompleteFeature`.
* **feature-session**
* Introducing `CoordinateScrollingFeature` a new feature to coordinate scrolling behavior between an `EngineView` and the view that you specify. For a full example take a look at its usages in [Sample Browser](https://github.com/mozilla-mobile/android-components/tree/main/samples/browser).
* **feature-tabs**
* Added a filter to `TabsFeature` to allow you to choose which sessions to show in the TabsTray. This is particularly useful if you want to filter out private tabs based on some UI interaction:
```kotlin
val tabsFeature = TabsFeature(
tabsTray,
sessionManager,
closeTabsTray = closeTabs()
)
tabsFeature.filterTabs {
it.private
}
```
* **engine-gecko,engine-gecko-beta and engine-gecko-nightly**
* Fixing bug [#1333](https://github.com/mozilla-mobile/android-components/issues/1333). This issue didn't allow to use a `GeckoEngineSession` after sending a crash report.
# 0.32.2
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.32.1...v0.32.2),
[API reference](https://mozilla-mobile.github.io/android-components/api/0.32.0/index)
* Compiled against:
* Android (SDK: **28** 🔺, Support Libraries: **28.0.0** 🔺)
* Kotlin (Stdlib: 1.3.0, Coroutines: 1.0.1)
* GeckoView (Nightly: **65.0.20181116100120** 🔺, Beta: 64.0.20181022150107, Release: 63.0.20181018182531)
* Mozilla App Services (FxA: **0.10.0** 🔺, Sync Logins: **0.10.0** 🔺, Places: **0.10.0** 🔺)
* **ui-autocomplete**
* Fixed problem handling backspaces as described in [Issue 1489](https://github.com/mozilla-mobile/android-components/issues/1489)
* **browser-search**
* Updated search codes (see [Issue 1563](https://github.com/mozilla-mobile/android-components/issues/1563) for details)
# 0.32.1
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.32.0...v0.32.1),
[API reference](https://mozilla-mobile.github.io/android-components/api/0.32.0/index)
* Compiled against:
* Android (SDK: **28** 🔺, Support Libraries: **28.0.0** 🔺)
* Kotlin (Stdlib: 1.3.0, Coroutines: 1.0.1)
* GeckoView (Nightly: **65.0.20181116100120** 🔺, Beta: 64.0.20181022150107, Release: 63.0.20181018182531)
* Mozilla App Services (FxA: **0.10.0** 🔺, Sync Logins: **0.10.0** 🔺, Places: **0.10.0** 🔺)
* **browser-session**
* Fixed concurrency problem and related crash described in [Issue 1624](https://github.com/mozilla-mobile/android-components/issues/1624)
# 0.32.0
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.31.0...v0.32.0),
[Milestone](https://github.com/mozilla-mobile/android-components/milestone/34?closed=1),
[API reference](https://mozilla-mobile.github.io/android-components/api/0.32.0/index)
* Compiled against:
* Android (SDK: **28** 🔺, Support Libraries: **28.0.0** 🔺)
* Kotlin (Stdlib: 1.3.0, Coroutines: 1.0.1)
* GeckoView (Nightly: **65.0.20181116100120** 🔺, Beta: 64.0.20181022150107, Release: 63.0.20181018182531)
* Mozilla App Services (FxA: **0.10.0** 🔺, Sync Logins: **0.10.0** 🔺, Places: **0.10.0** 🔺)
* ⚠️ **This is the first release compiled against Android SDK 28.**
* **browser-domains**
* Deprecated `DomainAutoCompleteProvider` in favour of `CustomDomainsProvider` and `ShippedDomainsProvider`.
* **lib-crash**
* The state of the "Send crash report" checkbox is now getting saved and restored once the dialog is shown again.
* The crash reporter can now sends reports if the prompt is closed by pressing the back button.
* **lib-fetch-httpurlconnection**
* 🆕 New component: `concept-fetch` implementation using [HttpURLConnection](https://developer.android.com/reference/java/net/HttpURLConnection.html).
* **lib-fetch-okhttp**
* 🆕 New component: `concept-fetch` implementation using [OkHttp](https://github.com/square/okhttp).
* **browser-session**:
* Replace `DefaultSessionStorage` with a new configurable implementation called `SessionStorage`:
```kotlin
SessionStorage().autoSave(sessionManager)
.periodicallyInForeground(interval = 30, unit = TimeUnit.SECONDS)
.whenGoingToBackground()
.whenSessionsChange()
```
# 0.31.0
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.30.0...v0.31.0),
[Milestone](https://github.com/mozilla-mobile/android-components/milestone/33?closed=1),
[API reference](https://mozilla-mobile.github.io/android-components/api/0.31.0/index)
* Compiled against:
* Android (SDK: 27, Support Libraries: 27.1.1)
* Kotlin (Stdlib: **1.3.0** 🔺, Coroutines: **1.0.1** 🔺)
* GeckoView (Nightly: **65.0.20181107100135** 🔺, Beta: 64.0.20181022150107, Release: 63.0.20181018182531)
* **concept-storage**, **browser-storage-memory**, **browser-storage-sync**
* Added a `getDomainSuggestion` method to `HistoryStorage` which is intended to power awesomebar-like functionality.
* Added basic implementations of `getDomainSuggestion` to existing storage components.
* **browser-session**, **concept-engine**, **browser-engine-system**, **browser-engine-gecko(-beta/nightly)**:
* ⚠️ **This is a breaking change**
* Added functionality to observe permission requests from the browser engine. We have now removed the workaround that automatically granted permission to play protected (DRM) media. Permission requests can be observed via the browser session:
```Kotlin
// Grant permission to all DRM content
permissionObserver = object : SelectionAwareSessionObserver(sessionManager) {
override fun onContentPermissionRequested(session: Session, permissionRequest: PermissionRequest): Boolean =
permissionRequest.grantIf { it is Permission.ContentProtectedMediaId }
}
override fun onStart() {
// Observe permission requests on selected sessions
permissionObserver.observeSelected()
}
override fun onStop() {
permissionObserver.stop()
}
```
* **concept-engine**, **engine-system**:
* ⚠️ **This is a breaking change**
* Web font blocking is now controlled by an engine setting only. `TrackingProtectionPolicy.WEBFONTS` was removed:
```Kotlin
// Disable web fonts by default
SystemEngine(runtime, DefaultSettings(webFontsEnabled = false))
```
* **feature-customtabs**
* 🆕 New component for providing custom tabs functionality. `CustomTabsService` was moved from `browser-session` to this new component.
* **browser-awesomebar**
* Various colors of the Awesome Bar can now be styled:
```XML
<mozilla.components.browser.awesomebar.BrowserAwesomeBar
..
mozac:awesomeBarTitleTextColor="#ffffff"
mozac:awesomeBarDescriptionTextColor="#dddddd"
mozac:awesomeBarChipTextColor="#ffffff"
mozac:awesomeBarChipBackgroundColor="#444444" />
```
* **browser-toolbar**, **feature-toolbar**
* Added support for displaying the site security indicator (lock/globe icon).
* **concept-fetch**
* 🆕 New component defining an abstract definition of an HTTP client for fetching resources. Later releases will come with components implementing this concept using HttpURLConnection, OkHttp and Necko/GeckoView. Eventually all HTTP client code in the components will be replaced with `concept-fetch` and consumers can decide what HTTP client implementation components should use.
* [**Reference Browser**](https://github.com/mozilla-mobile/reference-browser)
* Integrated crash reporting with [`lib-crash`](https://github.com/mozilla-mobile/android-components/tree/main/components/lib/crash).
* Added awesome bar with [`browser-awesomebar`](https://github.com/mozilla-mobile/android-components/tree/main/components/browser/awesomebar).
* Toolbar is hiding automatically now when scrolling web content.
* Added "Sync Now" button to preferences (without functionality in this release)
* Updated theme colors.
# 0.30.0
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.29.0...v0.30.0),
[Milestone](https://github.com/mozilla-mobile/android-components/milestone/32?closed=1),
[API reference](https://mozilla-mobile.github.io/android-components/api/0.30.0/index)
* Compiled against:
* Android (SDK: 27, Support Libraries: 27.1.1)
* Kotlin (Stdlib: 1.2.71, Coroutines: 0.30.2)
* GeckoView (Nightly: 65.0.20181023100123, Beta: 64.0.20181022150107, Release: 63.0.20181018182531)
* **concept-storage**
* ⚠️ **These are a breaking API changes**
* Added a `getSuggestions` method to `HistoryStorage`, which is intended to power search, autocompletion, etc.
* Added a `cleanup` method to `HistoryStorage`, which is intended to allow signaling to implementations to cleanup any allocated resources.
* `HistoryStorage` methods `recordVisit` and `recordObservation` are now `suspend`.
* `HistoryStorage` methods `getVisited()` and `getVisited(uris)` now return `Deferred`.
* 🆕 Added **browser-storage-memory** ✨
* Added an in-memory implementation of `concept-storage`.
* 🆕 Added **browser-storage-sync** ✨
* Added an implementation of `concept-storage` which is backed by the Rust Places library provided by [application-services](https://github.com/mozilla/application-services).
* **service-firefox-accounts**:
* ⚠️ **This is a breaking API change**
* The `FxaResult` type served as a custom promise-like type to support older versions of Java. We have now removed this type and switched to Kotlin's `Deferred` instead. We've also made sure all required types are `Closeable`:
```kotlin
// Before
Config.custom(CONFIG_URL).then { config: Config ->
account = FirefoxAccount(config, CLIENT_ID, REDIRECT_URL)
}
// Now
val account = async {
Config.custom(CONFIG_URL).await().use { config ->
FirefoxAccount(config, CLIENT_ID, REDIRECT_URL)
}
}
```
In case error handling is needed, the new API will also become easier to work with:
```kotlin
// Before
account.beginOAuthFlow(scopes, wantsKeys).then({ url ->
showLoginScreen(url)
}, { exception ->
handleException(exception)
})
// Now
async {
try {
account.beginOAuthFlow(scopes, wantsKeys).await()
} catch (e: FxaException) {
handleException(e)
}
}
```
* **browser-engine-system, browser-engine-gecko, browser-engine-gecko-beta and browser-engine-gecko-nightly**:
Adding support for using `SystemEngineView` and `GeckoEngineView` in a `CoordinatorLayout`.
This allows to create nice transitions like hiding the toolbar when scrolls.
* **browser-session**
* Fixed an issue where a custom tab `Session?` could get selected after removing the currently selected `Session`.
* **browser-toolbar**:
* Added TwoStateButton that will change drawables based on the `isEnabled` listener. This is particularly useful for
having a reload/cancel button.
```kotlin
var isLoading: Boolean // updated by some state change.
BrowserToolbar.TwoStateButton(
reloadDrawable,
"reload button",
cancelDrawable,
"cancel button",
{ isLoading }
) { /* On-click listener */ }
```
* ⚠️ **These are a breaking API changes:** BrowserToolbar APIs for Button and ToggleButton have also been updated to accept `Drawable` instead of resource IDs.
```kotlin
// Before
BrowserToolbar.Button(R.drawable.image, "image description") {
// perform an action on click.
}
// Now
val imageDrawable: Drawable = Drawable()
BrowserToolbar.Button(imageDrawable, "image description") {
// perform an action on click.
}
// Before
BrowserToolbar.ToggleButton(
R.drawable.image,
R.drawable.image_selected,
"image description",
"image selected description") {
// perform an action on click.
}
// Now
val imageDrawable: Drawable = Drawable()
val imageSelectedDrawable: Drawable = Drawable()
BrowserToolbar.ToggleButton(
imageDrawable,
imageSelectedDrawable,
"image description",
"image selected description") {
// perform an action on click.
}
```
* **concept-awesomebar**
* 🆕 New component: An abstract definition of an awesome bar component.
* **browser-awesomebar**
* 🆕 New component: A customizable [Awesome Bar](https://support.mozilla.org/en-US/kb/awesome-bar-search-firefox-bookmarks-history-tabs) implementation for browsers.A
* **feature-awesomebar**
* 🆕 New component: A component that connects a [concept-awesomebar](https://github.com/mozilla-mobile/android-components/components/concept/awesomebar/README.md) implementation to a [concept-toolbar](https://github.com/mozilla-mobile/android-components/components/concept/toolbar/README.md) implementation and provides implementations of various suggestion providers.
# 0.29.0
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.28.0...v0.29.0),
[Milestone](https://github.com/mozilla-mobile/android-components/milestone/31?closed=1),
[API reference](https://mozilla-mobile.github.io/android-components/api/0.29.0/index)
* Compiled against:
* Android (SDK: 27, Support Libraries: 27.1.1)
* Kotlin (Stdlib: **1.2.71** 🔺, Coroutines: **0.30.2** 🔺)
* GeckoView (Nightly: **65.0.20181023100123** 🔺, Beta: **64.0.20181022150107** 🔺, Release: **63.0.20181018182531** 🔺)
* **browser-toolbar**:
* Added new listener to get notified when the user is editing the URL:
```kotlin
toolbar.setOnEditListener(object : Toolbar.OnEditListener {
override fun onTextChanged(text: String) {
// Fired whenever the user changes the text in the address bar.
}
override fun onStartEditing() {
// Fired when the toolbar switches to edit mode.
}
override fun onStopEditing() {
// Fired when the toolbar switches back to display mode.
}
})
```
* Added new toolbar APIs:
```kotlin
val toolbar = BrowserToolbar(context)
toolbar.textColor: Int = getColor(R.color.photonRed50)
toolbar.hintColor: Int = getColor(R.color.photonGreen50)
toolbar.textSize: Float = 12f
toolbar.typeface: Typeface = Typeface.createFromFile("fonts/foo.tff")
```
These attributes are also available in XML (except for typeface):
```xml
<mozilla.components.browser.toolbar.BrowserToolbar
android:id="@+id/toolbar"
app:browserToolbarTextColor="#ff0000"
app:browserToolbarHintColor="#00ff00"
app:browserToolbarTextSize="12sp"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
```
* [API improvement](https://github.com/mozilla-mobile/android-components/issues/772) for more flexibility to create a `BrowserToolbar.Button`,
and `BrowserToolbar.ToggleButton`, now you can provide a custom padding:
```kotlin
val padding = Padding(start = 16, top = 16, end = 16, bottom = 16)
val button = BrowserToolbar.Button(mozac_ic_back, "Forward", padding = padding) {}
var toggle = BrowserToolbar.ToggleButton(mozac_ic_pin, mozac_ic_pin_filled, "Pin", "Unpin", padding = padding) {}
```
* **concept-toolbar**:
* [API improvement](https://github.com/mozilla-mobile/android-components/issues/772) for more flexibility to create a `Toolbar.ActionToggleButton`,
`Toolbar.ActionButton`, `Toolbar.ActionSpace` and `Toolbar.ActionImage`, now you can provide a custom padding:
```kotlin
val padding = Padding(start = 16, top = 16, end = 16, bottom = 16)
var toggle = Toolbar.ActionToggleButton(0, mozac_ic_pin_filled, "Pin", "Unpin", padding = padding) {}
val button = Toolbar.ActionButton(mozac_ic_back, "Forward", padding = padding) {}
val space = Toolbar.ActionSpace(pxToDp(128), padding = padding)
val image = Toolbar.ActionImage(brand, padding = padding)
```
* **support-base**:
* A new class add for representing an Android Padding.
```kotlin
val padding = Padding(16, 24, 32, 40)
val (start, top, end, bottom) = padding
```
* **support-ktx**:
* A new extension function that allows you to set `Padding` object to a `View`.
```kotlin
val padding = Padding(16, 24, 32, 40)
val view = View(context)
view.setPadding(padding)
```
* **concept-engine**, **browser-engine-system**, **browser-engine-gecko(-beta/nightly)**
* `RequestInterceptor` was enhanced to support loading an alternative URL.
:warning: **This is a breaking change for the `RequestInterceptor` method signature!**
```kotlin
// To provide alternative content the new InterceptionResponse.Content type needs to be used
requestInterceptor = object : RequestInterceptor {
override fun onLoadRequest(session: EngineSession, uri: String): InterceptionResponse? {
return when (uri) {
"sample:about" -> InterceptionResponse.Content("<h1>I am the sample browser</h1>")
else -> null
}
}
}
// To provide an alternative URL the new InterceptionResponse.Url type needs to be used
requestInterceptor = object : RequestInterceptor {
override fun onLoadRequest(session: EngineSession, uri: String): InterceptionResponse? {
return when (uri) {
"sample:about" -> InterceptionResponse.Url("sample:aboutNew")
else -> null
}
}
}
```
* **concept-storage**:
* Added a new concept for describing an interface for storing browser data. First iteration includes a description of `HistoryStorage`.
* **feature-storage**:
* Added a first iteration of `feature-storage`, which includes `HistoryTrackingFeature` that ties together `concept-storage` and `concept-engine` and allows engines to track history visits and page meta information. It does so by implementing `HistoryTrackingDelegate` defined by `concept-engine`.
Before adding a first session to the engine, initialize the history tracking feature:
```kotlin
val historyTrackingFeature = HistoryTrackingFeature(
components.engine,
components.historyStorage
)
```
Once the feature has been initialized, history will be tracked for all subsequently added sessions.
* **sample-browser**:
* Updated the sample browser to track browsing history using an in-memory history storage implementation (how much is actually tracked in practice depends on which engine is being used. As of this release, only `SystemEngine` provides a full set of necessary APIs).
* **lib-crash**
* Added option to display additional message in prompt and define the theme to be used:
```kotlin
CrashReporter(
promptConfiguration = CrashReporter.PromptConfiguration(
// ..
// An additional message that will be shown in the prompt
message = "We are very sorry!"
// Use a custom theme for the prompt (Extend Theme.Mozac.CrashReporter)
theme = android.R.style.Theme_Holo_Dialog
)
// ..
).install(applicationContext)
```
* Showing the crash prompt won't play the default activity animation anymore.
* Added a new sample app `samples-crash` to show and test crash reporter integration.
* **feature-tabs**:
* `TabsToolbarFeature` is now adding a `TabCounter` from the `ui-tabcounter` component to the toolbar.
* **lib-jexl**
* New component for evaluating Javascript Expression Language (JEXL) expressions. This implementation is based on [Mozjexl](https://github.com/mozilla/mozjexl) used at Mozilla, specifically as a part of SHIELD and Normandy. In a future version of Fretboard JEXL will allow more complex rules for experiments. For more see [documentation](https://github.com/mozilla-mobile/android-components/blob/main/components/lib/jexl/README.md).
* **service-telemetry**
* Added option to send list of experiments in event pings: `Telemetry.recordExperiments(Map<String, Boolean> experiments)`
* Fixed an issue where `DebugLogClient` didn't use the provided log tag.
* **service-fretboard**
* Fixed an issue where for some locales a `MissingResourceException` would occur.
* **browser-engine-system**
* Playback of protected media (DRM) is now granted automatically.
* **browser-engine-gecko**
* Updated components to follow merge day: (Nightly: 65.0, Beta: 64.0, Release: 63.0)
# 0.28.0
Release date: 2018-10-23
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.27.0...v0.28.0),
[Milestone](https://github.com/mozilla-mobile/android-components/milestone/30?closed=1),
[API reference](https://mozilla-mobile.github.io/android-components/api/0.28.0/index)
⚠️ **Note**: This and upcoming releases are **only** available from *maven.mozilla.org*.
* Compiled against:
* Android (SDK: 27, Support Libraries: 27.1.1)
* Kotlin (Stdlib: 1.2.61, Coroutines: 0.23.4)
* GeckoView
* Nightly: 64.0.20181004100221
* Beta: 63.0b3 (0269319281578bff4e01d77a21350bf91ba08620)
* Release: 62.0 (9cbae12a3fff404ed2c12070ad475424d0ae869f)
* **concept-engine**
* Added `HistoryTrackingDelegate` interface for integrating engine implementations with history storage backends. Intended to be used via engine settings.
* **browser-engine**
* `Download.fileName` cannot be `null` anymore. All engine implementations are guaranteed to return a proposed file name for Downloads now.
* **browser-engine-gecko-***, **browser-engine-system**
* Added support for `HistoryTrackingDelegate`, if it's specified in engine settings.
* **browser-engine-servo**
* Added a new experimental *Engine* implementation based on the [Servo Browser Engine](https://servo.org/).
* **browser-session** - basic session hierarchy:
* Sessions can have a parent `Session` now. A `Session` with a parent will be added *after* the parent `Session`. On removal of a selected `Session` the parent `Session` can be selected automatically if desired:
```kotlin
val parent = Session("https://www.mozilla.org")
val session = Session("https://www.mozilla.org/en-US/firefox/")
sessionManager.add(parent)
sessionManager.add(session, parent = parent)
sessionManager.remove(session, selectParentIfExists = true)
```
* **browser-session** - obtaining an restoring a SessionsSnapshot:
* It's now possible to request a SessionsSnapshot from the `SessionManager`, which encapsulates currently active sessions, their order and state, and which session is the selected one. Private and Custom Tab sessions are omitted from the snapshot. A new public `restore` method allows restoring a `SessionsSnapshot`.
```kotlin
val snapshot = sessionManager.createSnapshot()
// ... persist snapshot somewhere, perhaps using the DefaultSessionStorage
sessionManager.restore(snapshot)
```
* `restore` follows a different observer notification pattern from regular `add` flow. See method documentation for details. A new `onSessionsRestored` notification is now available.
* **browser-session** - new SessionStorage API, new DefaultSessionStorage data format:
* Coupled with the `SessionManager` changes, the SessionStorage API has been changed to operate over `SessionsSnapshot`. New API no longer operates over a SessionManager, and instead reads/writes snapshots which may used together with the SessionManager (see above). An explicit `clear` method is provided for wiping SessionStorage.
* `DefaultSessionStorage` now uses a new storage format internally, which allows maintaining session ordering and preserves session parent information.
* **browser-errorpages**
* Added translation annotations to our error page strings. Translated strings will follow in a future release.
* **service-glean**
* A new client-side telemetry SDK for collecting metrics and sending them to Mozilla's telemetry service. This component is going to eventually replace `service-telemetry`. The SDK is currently in development and the component is not ready to be used yet.
* **lib-dataprotect**
* The `Keystore` class and its `encryptBytes()` and `decryptBytes()` methods are now open to simplify mocking in unit tests.
* **ui-tabcounter**
* The `TabCounter` class is now open and can get extended.
* **feature-downloads**
* Now you're able to provide a dialog before a download starts and customize it to your wish. Take a look at the [updated docs](https://github.com/mozilla-mobile/android-components/blob/main/components/feature/downloads/README.md).
# 0.27.0
Release date: 2018-10-16
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.26.0...v0.27.0),
[Milestone](https://github.com/mozilla-mobile/android-components/milestone/27?closed=1),
[API reference](https://mozilla-mobile.github.io/android-components/api/0.27.0/index)
* Compiled against:
* Android (SDK: 27, Support Libraries: 27.1.1)
* Kotlin (Stdlib: 1.2.61, Coroutines: 0.23.4)
* GeckoView
* Nightly: **64.0.20181004100221** 🔺
* Beta: 63.0b3 (0269319281578bff4e01d77a21350bf91ba08620)
* Release: 62.0 (9cbae12a3fff404ed2c12070ad475424d0ae869f)
* **browser-engine-system**
* Fixed a bug where `SystemEngineSession#exitFullScreenMode` didn't invoke the internal callback to exit the fullscreen mode.
* A new field `defaultUserAgent` was added to `SystemEngine` for testing purposes. This is to circumvent calls to `WebSettings.getDefaultUserAgent` which fails with a `NullPointerException` in Robolectric. If the `SystemEngine` is used in Robolectric tests the following code will be needed:
```kotlin
@Before
fun setup() {
SystemEngine.defaultUserAgent = "test-ua-string"
}
```
* **browser-engine-gecko-nightly**:
* Enabled [Java 8 support](https://developer.android.com/studio/write/java8-support) to meet upstream [GeckoView requirements](https://mail.mozilla.org/pipermail/mobile-firefox-dev/2018-September/002411.html). Apps using this component need to enable Java 8 support as well:
```Groovy
android {
...
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
```
* **browser-search**
* Fixed an issue where a locale change at runtime would not update the search engines.
* **browser-session**:
* Added reusable functionality for observing sessions, which also support observering the currently selected session, even if it changes.
```kotlin
class MyFeaturePresenter(
private val sessionManager: SessionManager
) : SelectionAwareSessionObserver(sessionManager) {
fun start() {
// Always observe changes to the selected session even if the selection changes
super.observeSelected()
// To observe changes to a specific session the following method can be used:
// super.observeFixed(session)
}
override fun onUrlChanged(session: Session, url: String) {
// URL of selected session changed
}
override fun onProgress(session: Session, progress: Int) {
// Progress of selected session changed
}
// More observer functions...
}
```
* **browser-errorpages**
* Added more detailed documentation in the README.
* **feature-downloads**
* A new components for apps that want to process downloads, for more examples take a look at [here](https://github.com/mozilla-mobile/android-components/blob/main/components/feature/downloads/README.md).
* **lib-crash**
* A new generic crash reporter component that can report crashes to multiple services ([documentation](https://github.com/mozilla-mobile/android-components/blob/main/components/lib/crash/README.md)).
* **support-ktx**
* Added new helper method to run a block of code with a different StrictMode policy:
```kotlin
StrictMode.allowThreadDiskReads().resetAfter {
// In this block disk reads are not triggering a strict mode violation
}
```
* Added a new helper for checking if you have permission to do something or not:
```kotlin
var isGranted = context.isPermissionGranted(INTERNET)
if (isGranted) {
//You can proceed
} else {
//Request permission
}
```
* **support-test**
* Added a new helper for granting permissions in Robolectric tests:
```kotlin
val context = RuntimeEnvironment.application
var isGranted = context.isPermissionGranted(INTERNET)
assertFalse(isGranted) //False permission is not granted yet.
grantPermission(INTERNET) // Now you have permission.
isGranted = context.isPermissionGranted(INTERNET)
assertTrue(isGranted) // True :D
```
# 0.26.0
Release date: 2018-10-05
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.25.1...v0.26.0),
[Milestone](https://github.com/mozilla-mobile/android-components/milestone/26?closed=1),
[API reference](https://mozilla-mobile.github.io/android-components/api/0.26.0/index)
* Compiled against:
* Android (SDK: 27, Support Libraries: 27.1.1)
* Kotlin (Stdlib: 1.2.61, Coroutines: 0.23.4)
* GeckoView
* Nightly: 64.0.20180905100117
* Beta: 63.0b3 (0269319281578bff4e01d77a21350bf91ba08620)
* Release: 62.0 (9cbae12a3fff404ed2c12070ad475424d0ae869f)
* ⚠️ **Releases are now getting published on [maven.mozilla.org](http://maven.mozilla.org/?prefix=maven2/org/mozilla/components/)**.
* Additionally all artifacts published now use an artifact name that matches the gradle module name (e.g. `browser-toolbar` instead of just `toolbar`).
* All artifacts are published with the group id `org.mozilla.components` (`org.mozilla.photon` is not being used anymore).
* For a smooth transition all artifacts still get published on JCenter with the old group ids and artifact ids. In the near future releases will only be published on maven.mozilla.org. Old releases will remain on JCenter and not get removed.
* **browser-domains**
* Removed `microsoftonline.com` from the global and localized domain lists. No content is being served from that domain. Only subdomains like `login.microsoftonline.com` are used.
* **browser-errorpages**
* Added error page support for multiple error types.
```kotlin
override fun onErrorRequest(
session: EngineSession,
errorType: ErrorType, // This used to be an Int
uri: String?
): RequestInterceptor.ErrorResponse? {
// Create an error page.
val errorPage = ErrorPages.createErrorPage(context, errorType)
// Return it to the request interceptor to take care of default error cases.
return RequestInterceptor.ErrorResponse(errorPage)
}
```
* :warning: **This is a breaking change for the `RequestInterceptor#onErrorRequest` method signature!**
* **browser-engine-**
* Added a setting for enabling remote debugging.
* Creating an `Engine` requires a `Context` now.
```kotlin
val geckoEngine = GeckoEngine(context)
val systemEngine = SystemEngine(context)
```
* **browser-engine-system**
* The user agent string now defaults to WebView's default, if not provided, and to the user's default, if provided. It can also be read and changed:
```kotlin
// Using WebView's default
val engine = SystemEngine(context)
// Using customized WebView default
val engine = SystemEngine(context)
engine.settings.userAgentString = buildUserAgentString(engine.settings.userAgentString)
// Using custom default
val engine = SystemEngine(context, DefaultSettings(userAgentString = "foo"))
```
* The tracking protection policy can now be set, both as a default and at any time later.
```kotlin
// Set the default tracking protection policy
val engine = SystemEngine(context, DefaultSettings(
trackingProtectionPolicy = TrackingProtectionPolicy.all())
)
// Change the tracking protection policy
engine.settings.trackingProtectionPolicy = TrackingProtectionPolicy.select(
TrackingProtectionPolicy.AD,
TrackingProtectionPolicy.SOCIAL
)
```
* **browser-engine-gecko(-*)**
* Creating a `GeckoEngine` requires a `Context` now. Providing a `GeckoRuntime` is now optional.
* **browser-session**
* Fixed an issue that caused a Custom Tab `Session` to get selected if it is the first session getting added.
* `Observer` instances that get attached to a `LifecycleOwner` can now automatically pause and resume observing whenever the lifecycle pauses and resumes. This behavior is off by default and can be enabled by using the `autoPause` parameter when registering the `Observer`.
```kotlin
sessionManager.register(
observer = object : SessionManager.Observer {
// ...
},
owner = lifecycleOwner,
autoPause = true
)
```
* Added an optional callback to provide a default `Session` whenever `SessionManager` is empty:
```kotlin
val sessionManager = SessionManager(
engine,
defaultSession = { Session("https://www.mozilla.org") }
)
```
* **service-telemetry**
* Added `Telemetry.getClientId()` to let consumers read the client ID.
* `Telemetry.recordSessionEnd()` now takes an optional callback to be executed upon failure - instead of throwing `IllegalStateException`.
* **service-fretboard**
* Added `ValuesProvider.getClientId()` to let consumers specify the client ID to be used for bucketing the client. By default fretboard will generate and save an internal UUID used for bucketing. By specifying the client ID consumers can use the same ID for telemetry and bucketing.
* Update jobs scheduled with `WorkManagerSyncScheduler` will now automatically retry if the configuration couldn't get updated.
* The update interval of `WorkManagerSyncScheduler` can now be configured.
* Fixed an issue when reading a corrupt experiments file from disk.
* Added a workaround for HttpURLConnection throwing ArrayIndexOutOfBoundsException.
* **ui-autocomplete**
* Fixed an issue causing desyncs between the soft keyboard and `InlineAutocompleteEditText`.
* **samples-firefox-accounts**
* Showcasing new pairing flow which allows connecting new devices to existing accounts using a QR code.
# 0.25.1 (2018-09-27)
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.25...v0.25.1),
[Milestone](https://github.com/mozilla-mobile/android-components/milestone/28?closed=1),
[API reference](https://mozilla-mobile.github.io/android-components/api/0.25.1/index)
* Compiled against:
* Android
* SDK: 27
* Support Libraries: 27.1.1
* Kotlin
* Standard library: 1.2.61
* Coroutines: 0.23.4
* GeckoView
* Nightly: 64.0.20180905100117
* Beta: 63.0b3 (0269319281578bff4e01d77a21350bf91ba08620)
* Release: 62.0 (9cbae12a3fff404ed2c12070ad475424d0ae869f)
* **browser-engine-system**: Fixed a `NullPointerException` in `SystemEngineSession.captureThumbnail()`.
# 0.25 (2018-09-26)
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.24...v0.25),
[Milestone](https://github.com/mozilla-mobile/android-components/milestone/25?closed=1),
[API reference](https://mozilla-mobile.github.io/android-components/api/0.25/index)
* Compiled against:
* Android
* SDK: 27
* Support Libraries: 27.1.1
* Kotlin
* Standard library: 1.2.61
* Coroutines: 0.23.4
* GeckoView
* Nightly: 64.0.20180905100117
* Beta: 63.0b3 (0269319281578bff4e01d77a21350bf91ba08620)
* Release: 62.0 (9cbae12a3fff404ed2c12070ad475424d0ae869f)
* ⚠️ **This is the last release compiled against Android SDK 27. Upcoming releases of the components will require Android SDK 28**.
* **service-fretboard**:
* Fixed a bug in `FlatFileExperimentStorage` that caused updated experiment configurations not being saved to disk.
* Added [WorkManager](https://developer.android.com/reference/kotlin/androidx/work/WorkManager) implementation for updating experiment configurations in the background (See ``WorkManagerSyncScheduler``).
* `Experiment.id` is not accessible by component consumers anymore.
* **browser-engine-system**:
* URL changes are now reported earlier; when the URL of the main frame changes.
* Fixed an issue where fullscreen mode would only take up part of the screen.
* Fixed a crash that could happen when loading invalid URLs.
* `RequestInterceptor.onErrorRequest()` can return custom error page content to be displayed now (the original URL that caused the error will be preserved).
* **feature-intent**: New component providing intent processing functionality (Code moved from *feature-session*).
* **support-utils**: `DownloadUtils.guessFileName()` will replace extension in the URL with the MIME type file extension if needed (`http://example.com/file.aspx` + `image/jpeg` -> `file.jpg`).
# 0.24 (2018-09-21)
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.23...v0.24),
[Milestone](https://github.com/mozilla-mobile/android-components/milestone/24?closed=1),
[API reference](https://mozilla-mobile.github.io/android-components/api/0.24/index)
* Compiled against:
* Android
* SDK: 27
* Support Libraries: 27.1.1
* Kotlin
* Standard library: 1.2.61
* Coroutines: 0.23.4
* GeckoView
* Nightly: 64.0.20180905100117
* Beta: 63.0b3 (0269319281578bff4e01d77a21350bf91ba08620)
* Release: 62.0 (9cbae12a3fff404ed2c12070ad475424d0ae869f)
* **dataprotect**:
* Added a component using AndroidKeyStore to protect user data.
```kotlin
// Create a Keystore and generate a key
val keystore: Keystore = Keystore("samples-dataprotect")
keystore.generateKey()
// Encrypt data
val plainText = "plain text data".toByteArray(StandardCharsets.UTF_8)
val encrypted = keystore.encryptBytes(plain)
// Decrypt data
val samePlainText = keystore.decryptBytes(encrypted)
```
* **concept-engine**: Enhanced settings to cover most common WebView settings.
* **browser-engine-system**:
* `SystemEngineSession` now provides a way to capture a screenshot of the actual content of the web page just by calling `captureThumbnail`
* **browser-session**:
* `Session` exposes a new property called `thumbnail` and its internal observer also exposes a new listener `onThumbnailChanged`.
```Kotlin
session.register(object : Session.Observer {
fun onThumbnailChanged(session: Session, bitmap: Bitmap?) {
// Do Something
}
})
```
* `SessionManager` lets you notify it when the OS is under low memory condition by calling to its new function `onLowMemory`.
* **browser-tabstray**:
* Now on `BrowserTabsTray` every tab gets is own thumbnail :)
* **support-ktx**:
* Now you can easily query if the OS is under low memory conditions, just by using `isOSOnLowMemory()` extension function on `Context`.
```Kotlin
val shouldReduceMemoryUsage = context.isOSOnLowMemory()
if (shouldReduceMemoryUsage) {
//Deallocate some heavy objects
}
```
* `View.dp` is now`Resource.pxtoDp`.
```Kotlin
// Before
toolbar.dp(104)
// Now
toolbar.resources.pxToDp(104)
```
* **samples-browser**:
* Updated to show the new features related to tab thumbnails. Be aware that this feature is only available for `systemEngine` and you have to switch to the build variant `systemEngine*`.
# 0.23 (2018-09-13)
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.22...v0.23),
[Milestone](https://github.com/mozilla-mobile/android-components/milestone/23?closed=1),
[API reference](https://mozilla-mobile.github.io/android-components/api/0.23/index)
* Compiled against:
* Android
* SDK: 27
* Support Libraries: 27.1.1
* Kotlin
* Standard library: 1.2.61
* Coroutines: 0.23.4
* GeckoView
* Nightly: 64.0.20180905100117
* Beta: 63.0b3 (0269319281578bff4e01d77a21350bf91ba08620)
* Release: 62.0 (9cbae12a3fff404ed2c12070ad475424d0ae869f)
* Added initial documentation for the browser-session component: https://github.com/mozilla-mobile/android-components/blob/main/components/browser/session/README.md
* **sync-logins**: New component for integrating with Firefox Sync (for Logins). A sample app showcasing this new functionality can be found at: https://github.com/mozilla-mobile/android-components/tree/main/samples/sync-logins
* **browser-engine-**:
* Added support for fullscreen mode and the ability to exit it programmatically if needed.
```Kotlin
session.register(object : Session.Observer {
fun onFullScreenChange(enabled: Boolean) {
if (enabled) {
// ..
sessionManager.getEngineSession().exitFullScreenMode()
}
}
})
```
* **concept-engine**, **browser-engine-system**, **browser-engine-gecko(-beta/nightly)**:
* We've extended support for intercepting requests to also include intercepting of errors
```Kotlin
val interceptor = object : RequestInterceptor {
override fun onErrorRequest(
session: EngineSession,
errorCode: Int,
uri: String?
) {
engineSession.loadData("<html><body>Couldn't load $uri!</body></html>")
}
}
// GeckoEngine (beta/nightly) and SystemEngine support request interceptors.
GeckoEngine(runtime, DefaultSettings(requestInterceptor = interceptor))
```
* **browser-engine-system**:
* Added functionality to clear all browsing data
```Kotlin
sessionManager.getEngineSession().clearData()
```
* `onNavigationStateChange` is now called earlier (when the title of a web page is available) to allow for faster toolbar updates.
* **feature-session**: Added support for processing `ACTION_SEND` intents (`ACTION_VIEW` was already supported)
```Kotlin
// Triggering a search if the provided EXTRA_TEXT is not a URL
val searchHandler: TextSearchHandler = { searchTerm, session ->
searchUseCases.defaultSearch.invoke(searchTerm, session)
}
// Handles both ACTION_VIEW and ACTION_SEND intents
val intentProcessor = SessionIntentProcessor(
sessionUseCases, sessionManager, textSearchHandler = searchHandler
)
intentProcessor.process(intent)
```
* Replaced some miscellaneous uses of Java 8 `forEach` with Kotlin's for consistency and backward-compatibility.
* Various bug fixes (see [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.22...v0.23) for details).
# 0.22 (2018-09-07)
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.21...v0.22),
[Milestone](https://github.com/mozilla-mobile/android-components/milestone/22?closed=1),
[API reference](https://mozilla-mobile.github.io/android-components/api/0.22/index)
* Compiled against:
* Android
* SDK: 27
* Support Libraries: 27.1.1
* Kotlin
* Standard library: 1.2.61
* Coroutines: 0.23.4
* GeckoView
* Nightly: **64.0.20180905100117** 🔺
* Beta: **63.0b3** (0269319281578bff4e01d77a21350bf91ba08620) 🔺
* Release: **62.0** (9cbae12a3fff404ed2c12070ad475424d0ae869f) 🔺
* We now provide aggregated API docs. The docs for this release are hosted at: https://mozilla-mobile.github.io/android-components/api/0.22
* **browser-engine-**:
* EngineView now exposes lifecycle methods with default implementations. A `LifecycleObserver` implementation is provided which forwards events to EngineView instances.
```kotlin
lifecycle.addObserver(EngineView.LifecycleObserver(view))
```
* Added engine setting for blocking web fonts:
```kotlin
GeckoEngine(runtime, DefaultSettings(webFontsEnabled = false))
```
* `setDesktopMode()` was renamed to `toggleDesktopMode()`.
* **browser-engine-system**: The `X-Requested-With` header is now cleared (set to an empty String).
* **browser-session**: Desktop mode can be observed now:
```Kotlin
session.register(object : Session.Observer {
fun onDesktopModeChange(enabled: Boolean) {
// ..
}
})
```
* **service-fretboard**:
* `Fretboard` now has synchronous methods for adding and clearing overrides: `setOverrideNow()`, `clearOverrideNow`, `clearAllOverridesNow`.
* Access to `Experiment.id` is now deprecated and is scheduled to be removed in a future release (target: 0.24). The `id` is an implementation detail of the underlying storage service and was not meant to be exposed to apps.
* **ui-tabcounter**: Due to a packaging error previous releases of this component didn't contain any compiled code. This is the first usable release of the component.
# 0.21 (2018-08-31)
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.20...v0.21),
[Milestone](https://github.com/mozilla-mobile/android-components/milestone/21?closed=1),
[API reference](https://mozilla-mobile.github.io/android-components/api/0.21/index)
* Compiled against:
* Android support libraries 27.1.1
* Kotlin Standard library **1.2.61** 🔺
* Kotlin coroutines 0.23.4
* GeckoView
* Nightly: **63.0.20180830111743** 🔺
* Beta: **62.0b21** (7ce198bb7ce027d450af3f69a609896671adfab8) 🔺
* Release: 61.0 (785d242a5b01d5f1094882aa2144d8e5e2791e06)
* **concept-engine**, **engine-system**, **engine-gecko**: Added API to set default session configuration e.g. to enable tracking protection for all sessions by default.
```Kotlin
// DefaultSettings can be set on GeckoEngine and SystemEngine.
GeckoEngine(runtime, DefaultSettings(
trackingProtectionPolicy = TrackingProtectionPolicy.all(),
javascriptEnabled = false))
```
* **concept-engine**, **engine-system**, **engine-gecko-beta/nightly**:
* Added support for intercepting request and injecting custom content. This can be used for internal pages (e.g. *focus:about*, *firefox:home*) and error pages.
```Kotlin
// GeckoEngine (beta/nightly) and SystemEngine support request interceptors.
GeckoEngine(runtime, DefaultSettings(
requestInterceptor = object : RequestInterceptor {
override fun onLoadRequest(session: EngineSession, uri: String): RequestInterceptor.InterceptionResponse? {
return when (uri) {
"sample:about" -> RequestInterceptor.InterceptionResponse("<h1>I am the sample browser</h1>")
else -> null
}
}
}
)
```
* Added APIs to support "find in page".
```Kotlin
// Finds and highlights all occurrences of "hello"
engineSession.findAll("hello")
// Finds and highlights the next or previous match
engineSession.findNext(forward = true)
// Clears the highlighted results
engineSession.clearFindMatches()
// The current state of "Find in page" can be observed on a Session object:
session.register(object : Session.Observer {
fun onFindResult(session: Session, result: FindResult) {
// ...
}
})
```
* **browser-engine-gecko-nightly**: Added option to enable/disable desktop mode ("Request desktop site").
```Kotlin
engineSession.setDesktopMode(true, reload = true)
```
* **browser-engine-gecko(-nightly/beta)**: Added API for observing long presses on web content (links, audio, videos, images, phone numbers, geo locations, email addresses).
```Kotlin
session.register(object : Session.Observer {
fun onLongPress(session: Session, hitResult: HitResult): Boolean {
// HitResult is a sealed class representing the different types of content that can be long pressed.
// ...
// Returning true will "consume" the event. If no observer consumes the event then it will be
// set on the Session object to be consumed at a later time.
return true
}
})
```
* **lib-dataprotect**: New component to protect local user data using the [Android keystore system](https://developer.android.com/training/articles/keystore). This component doesn't contain any code in this release. In the next sprints the Lockbox team will move code from the [prototype implementation](https://github.com/linuxwolf/android-dataprotect) to the component.
* **support-testing**: New helper test function to assert that a code block throws an exception:
```Kotlin
expectException(IllegalStateException::class) {
// Do something that should throw IllegalStateException..
}
```
# 0.20 (2018-08-24)
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.19.1...v0.20),
[Milestone](https://github.com/mozilla-mobile/android-components/milestone/19?closed=1),
[API reference](https://mozilla-mobile.github.io/android-components/api/0.20/index)
* Compiled against:
* Android support libraries 27.1.1
* Kotlin Standard library 1.2.60
* Kotlin coroutines 0.23.4
* GeckoView
* Nightly: **63.0.20180820100132** 🔺
* Beta: 62.0b15 (7ce198bb7ce027d450af3f69a609896671adfab8)
* Release: 61.0 (785d242a5b01d5f1094882aa2144d8e5e2791e06)
* GeckoView Nightly dependencies are now pulled in from *maven.mozilla.org*.
* **engine-system**: Added tracking protection functionality.
* **concept-engine**, **browser-session**, **feature-session**: Added support for private browsing mode.
* **concept-engine**, **engine-gecko**, **engine-system**: Added support for modifying engine and engine session settings.
# 0.19.1 (2018-08-20)
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.19...v0.19.1),
[Milestone](https://github.com/mozilla-mobile/android-components/milestone/20?closed=1),
[API reference](https://mozilla-mobile.github.io/android-components/api/0.19.1/index)
* Compiled against:
* Android support libraries 27.1.1
* Kotlin Standard library 1.2.60
* Kotlin coroutines 0.23.4
* GeckoView
* Nightly: 63.0.20180810100129 (2018.08.10, d999fb858fb2c007c5be4af72bce419c63c69b8e)
* Beta: 62.0b15 (7ce198bb7ce027d450af3f69a609896671adfab8)
* Release: 61.0 (785d242a5b01d5f1094882aa2144d8e5e2791e06)
* **browser-toolbar**: Replaced `ui-progress` component with default [Android Progress Bar](https://developer.android.com/reference/android/widget/ProgressBar) to fix CPU usage problems.
* **ui-progress**: Reduced high CPU usage when idling and not animating.
# 0.19 (2018-08-17)
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.18...v0.19),
[Milestone](https://github.com/mozilla-mobile/android-components/milestone/18?closed=1),
[API reference](https://mozilla-mobile.github.io/android-components/api/0.19/index)
* Compiled against:
* Android support libraries 27.1.1
* Kotlin Standard library 1.2.60
* Kotlin coroutines 0.23.4
* GeckoView
* Nightly: 63.0.20180810100129 (2018.08.10, d999fb858fb2c007c5be4af72bce419c63c69b8e)
* Beta: 62.0b15 (7ce198bb7ce027d450af3f69a609896671adfab8)
* Release: 61.0 (785d242a5b01d5f1094882aa2144d8e5e2791e06)
* **concept-engine**, **engine-system**, **engine-gecko**: Added new API to load data and HTML directly (without loading a URL). Added the ability to stop loading a page.
* **ui-autocomplete**: Fixed a bug that caused soft keyboards and the InlineAutocompleteEditText component to desync.
* **service-firefox-accounts**: Added JNA-specific proguard rules so consumers of this library don't have to add them to their app (see https://github.com/java-native-access/jna/blob/main/www/FrequentlyAskedQuestions.md#jna-on-android for details). Underlying libfxa_client.so no longer depends on versioned .so names. All required dependencies are now statically linked which simplified our dependency setup as well.
# 0.18 (2018-08-10)
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.17...v0.18),
[Milestone](https://github.com/mozilla-mobile/android-components/milestone/16?closed=1),
[API reference](https://mozilla-mobile.github.io/android-components/api/0.18/index)
* Compiled against:
* Android support libraries 27.1.1
* Kotlin Standard library 1.2.60
* Kotlin coroutines 0.23.4
* GeckoView
* Nightly: **63.0.20180810100129** (2018.08.10, d999fb858fb2c007c5be4af72bce419c63c69b8e) 🔺
* Beta: **62.0b15** (7ce198bb7ce027d450af3f69a609896671adfab8) 🔺
* Release: 61.0 (785d242a5b01d5f1094882aa2144d8e5e2791e06)
* **engine-gecko-beta**: Since the [Load Progress Tracking API](https://bugzilla.mozilla.org/show_bug.cgi?id=1437988) was uplifted to GeckoView Beta _engine-gecko-beta_ now reports progress via `EngineSession.Observer.onProgress()`.
* **service-fretboard**: KintoExperimentSource can now validate the signature of the downloaded experiments configuration (`validateSignature` flag). This ensures that the configuration was signed by Mozilla and was not modified by a bad actor. For now the `validateSignature` flag is off by default until this has been tested in production. Various bugfixes and refactorings.
* **service-firefox-accounts**: JNA native libraries are no longer part of the AAR and instead referenced as a dependency. This avoids duplication when multiple libraries depend on JNA.
* **ui-tabcounter**: New UI component - A button that shows the current tab count and can animate state changes. Extracted from Firefox Rocket.
* API references for every release are now generated and hosted online: [https://mozilla-mobile.github.io/android-components/reference/](https://mozilla-mobile.github.io/android-components/reference/)
* Documentation and more is now hosted at: [https://mozilla-mobile.github.io/android-components/](https://mozilla-mobile.github.io/android-components/). More content coming soon.
* **tooling-lint**: New (internal-only) component containing custom lint rules.
# 0.17 (2018-08-03)
* Compiled against:
* Android support libraries 27.1.1
* Kotlin Standard library **1.2.60** 🔺
* Kotlin coroutines 0.23.4
* GeckoView
* Nightly: **63.0.20180801100114** (2018.08.01, af6a7edf0069549543f2fba6a8ee3ea251b20829) 🔺
* Beta: **62.0b13** (dd92dec96711e60a8c6a49ebe584fa23a453a292) 🔺
* Release: 61.0 (785d242a5b01d5f1094882aa2144d8e5e2791e06)
* **support-base**: New base component containing small building blocks for other components. Added a [simple logging API](https://github.com/mozilla-mobile/android-components/blob/main/components/support/base/README.md) that allows components to log messages/exceptions but lets the consuming app decide what gets logged and how.
* **support-utils**: Some classes have been moved to the new _support-base_ component.
* **service-fretboard**: ⚠️ Breaking change: `ExperimentDescriptor` instances now operate on the experiment name instead of the ID.
* **ui-icons**: Added new icons (used in _Firefox Focus_ UI refresh): `mozac_ic_arrowhead_down`, `mozac_ic_arrowhead_up`, `mozac_ic_check`, `mozac_ic_device_desktop`, `mozac_ic_mozilla`, `mozac_ic_open_in`, `mozac_ic_reorder`.
* **service-firefox-accounts**: Added [documentation](https://github.com/mozilla-mobile/android-components/blob/main/components/service/firefox-accounts/README.md).
* **service-fretboard**: Updated [documentation](https://github.com/mozilla-mobile/android-components/blob/main/components/service/fretboard/README.md).
* **browser-toolbar**: Fixed an issue where the toolbar content disappeared if a padding value was set on the toolbar.
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.16.1...v0.17), [Milestone](https://github.com/mozilla-mobile/android-components/milestone/15?closed=1)
# 0.16.1 (2018-07-26)
* Compiled against:
* Android support libraries 27.1.1
* Kotlin Standard library 1.2.51
* Kotlin coroutines 0.23.4
* GeckoView
* Nightly: 63.0.20180724100046 (2018.07.24, 1e5fa52a612e8985e12212d1950a732954e00e45)
* Beta: 62.0b9 (d7ab2f3df0840cdb8557659afd46f61afa310379)
* Release: 61.0 (785d242a5b01d5f1094882aa2144d8e5e2791e06)
* **service-telemetry**: Allow up to 200 extras in event pings.
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.16...v0.16.1), [Milestone](https://github.com/mozilla-mobile/android-components/milestone/17?closed=1)
# 0.16 (2018-07-25)
* Compiled against:
* Android support libraries 27.1.1
* Kotlin Standard library 1.2.51
* Kotlin coroutines 0.23.4
* GeckoView
* Nightly: 63.0.20180724100046 (2018.07.24, 1e5fa52a612e8985e12212d1950a732954e00e45)
* Beta: 62.0b9 (d7ab2f3df0840cdb8557659afd46f61afa310379)
* Release: 61.0 (785d242a5b01d5f1094882aa2144d8e5e2791e06)
* **service-fretboard**: Experiments can now be filtered by release channel. Added helper method to get list of active experiments.
* **service-telemetry**: Added option to report active experiments in the core ping.
* **service-firefox-accounts**, **sample-firefox-accounts**: libjnidispatch.so is no longer in the tree but automatically fetched from tagged GitHub releases at build-time. Upgraded to fxa-rust-client library 0.2.1. Renmaed armeabi directory to armeabi-v7a.
* **browser-session**, **concept-engine**: Exposed website title and tracking protection in session and made observable.
* **browser-toolbar**: Fixed bug that prevented the toolbar from being displayed at the bottom of the screen. Fixed animation problem when multiple buttons animated at the same time.
* Various bugfixes and refactorings (see commits below for details)
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.15...v0.16), [Milestone](https://github.com/mozilla-mobile/android-components/milestone/14?closed=1)
# 0.15 (2018-07-20)
* Compiled against:
* Android support libraries 27.1.1
* Kotlin Standard library 1.2.51
* Kotlin coroutines 0.23.4
* GeckoView
* Nightly: 63.0.20180704100138 (2018.07.04, 1c235a552c32ba6c97e6030c497c49f72c7d48a8)
* Beta: 62.0b5 (801112336847960bbb9a018695cf09ea437dc137)
* Release: 61.0 (785d242a5b01d5f1094882aa2144d8e5e2791e06)
* **service-firefox-accounts**, **sample-firefox-accounts**: Added authentication flow using WebView. Introduced functionality to persist and restore FxA state in shared preferences to keep users signed in between applications restarts. Increased test coverage for library.
* **service-fretboard**: New component for segmenting users in order to run A/B tests and rollout features gradually.
* **browser-session**: Refactored session observer to provide session object and changed values to simplify observer implementations. Add source (origin) information to Session.
* **browser-search**: Introduced new functionality to retrieve search suggestions.
* **engine-system**, **engine-gecko**, **browser-session**: Exposed downloads in engine components and made them consumable from browser session.
* **engine-gecko**: Added optimization to ignore initial loads of about:blank.
* Various bugfixes and refactorings (see commits below for details)
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.14...v0.15), [Milestone](https://github.com/mozilla-mobile/android-components/milestone/13?closed=1)
# 0.14 (2018-07-13)
* Compiled against:
* Android support libraries 27.1.1
* Kotlin Standard library 1.2.51
* Kotlin coroutines 0.23.4
* GeckoView
* Nightly: 63.0.20180704100138 (2018.07.04, 1c235a552c32ba6c97e6030c497c49f72c7d48a8)
* Beta: 62.0b5 (801112336847960bbb9a018695cf09ea437dc137)
* Release: 61.0 (785d242a5b01d5f1094882aa2144d8e5e2791e06)
* **support-test**: A new component with helpers for testing components.
* **browser-session**: New method `SessionManager.removeSessions()` for removing all sessions *except custom tab sessions*. `SessionManager.selectedSession` is now nullable. `SessionManager.selectedSessionOrThrow` can be used in apps that will always have at least one selected session and that do not want to deal with a nullable type.
* **feature-sessions**: `SessionIntentProcessor` can now be configured to open new tabs for incoming [Intents](https://developer.android.com/reference/android/content/Intent).
* **ui-icons**: Mirrored `mozac_ic_pin` and `mozac_ic_pin_filled` icons.
* **service-firefox-accounts**: Renamed the component from *service-fxa* for clarity. Introduced `FxaResult.whenComplete()` to be called when the `FxaResult` and the whole chain of `then` calls is completed with a value. Synchronized blocks invoking Rust calls.
* Various bugfixes and refactorings (see commits below for details)
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.13...v0.14), [Milestone](https://github.com/mozilla-mobile/android-components/milestone/12?closed=1)
# 0.13 (2018-07-06)
* Compiled against:
* Android support libraries 27.1.1
* Kotlin Standard library 1.2.51
* Kotlin coroutines 0.23.4
* GeckoView
* Nightly: 63.0.20180704100138 (2018.07.04, 1c235a552c32ba6c97e6030c497c49f72c7d48a8)
* Beta: 62.0b5
* Release: 61.0
* **service-fxa**, **samples-fxa**: Various improvements to FxA component API (made calls asynchronous and introduced error handling)
* **browser-toolbar**: Added functionality to observer focus changes (`setOnEditFocusChangeListener`)
* **concept-tabstray**, **browser-tabstray**, **features-tabs**: New components to provide browser tabs functionality
* **sample-browser**: Updated to support multiple tabs
* **API changes**:
* InlineAutocompleteEditText: `onAutocomplete` was renamed to `applyAutocompleteResult`
* Toolbar: `setOnUrlChangeListener` was renamed to `setOnUrlCommitListener`
* Various bugfixes and refactorings (see commits below for details)
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.12...v0.13)
# 0.12 (2018-06-29)
* Compiled against:
* Android support libraries 27.1.1
* Kotlin Standard library 1.2.50
* Kotlin coroutines 0.23.3
* GeckoView Nightly
* date: 2018.06.27
* version: 63.0.20180627100018
* revision: 1c235a552c32ba6c97e6030c497c49f72c7d48a8
* **service-fxa**, **samples-fxa**: Added new library/component for integrating with Firefox Accounts, and a sample app to demo its usage
* **samples-browser**: Moved all browser behaviour into standalone fragment
* Various bugfixes and refactorings (see commits below for details)
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.11...v0.12)
# 0.11 (2018-06-22)
* Compiled against:
* Android support libraries 27.1.1
* Kotlin Standard library 1.2.41
* Kotlin coroutines 0.22.5
* GeckoView Nightly
* date: 2018.06.21
* version: 62.0.20180621100051
* revision: e834d23a292972ab4250a8be00e6740c43e41db2
* **feature-session**, **browser-session**: Added functionality to process CustomTabsIntent.
* **engine-gecko**: Created separate engine-gecko variants/modules for nightly/beta/release channels.
* **browser-toolbar**: Added support for setting autocomplete filter.
* Various refactorings (see commits below for details)
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.10...v0.11)
# 0.10 (2018-06-14)
* Compiled against:
* Android support libraries 27.1.1
* Kotlin Standard library 1.2.41
* Kotlin coroutines 0.22.5
* GeckoView Nightly
* date: 2018.05.16
* version: 62.0.20180516100458
* revision: dedd25bfd2794eaba95225361f82c701e49c9339
* **browser-session**: Added Custom Tabs configuration to session. Added new functionality that allows attaching a lifecycle owner to session observers so that observer can automatically be unregistered when the associated lifecycle ends.
* **service-telemetry**: Updated createdTimestamp and createdDate fields for mobile-metrics ping
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.9...v0.10)
# 0.9 (2018-06-06)
* Compiled against:
* Android support libraries 27.1.1
* Kotlin Standard library 1.2.41
* Kotlin coroutines 0.22.5
* GeckoView Nightly
* date: 2018.05.16
* version: 62.0.20180516100458
* revision: dedd25bfd2794eaba95225361f82c701e49c9339
* **feature-session**, **engine-gecko**, **engine-system**: Added functionality and API to save/restore engine session state and made sure it's persisted by default (using `DefaultSessionStorage`)
* **concept-toolbar**: Use "AppCompat" versions of ImageButton and ImageView. Add `notifyListener` parameter to `setSelected` and `toggle` to specify whether or not listeners should be invoked.
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.8...v0.9)
# 0.8 (2018-05-30)
* Compiled against:
* Android support libraries 27.1.1
* Kotlin Standard library 1.2.41
* Kotlin coroutines 0.22.5
* GeckoView Nightly
* date: 2018.05.16
* version: 62.0.20180516100458
* revision: dedd25bfd2794eaba95225361f82c701e49c9339
* **browser-session**, **engine-gecko**, **engine-system**: Added SSL information and secure state to session, and made it observable.
* **browser-toolbar**: Introduced page, browser and navigation actions and allow for them to be dynamically shown, hidden and updated. Added ability to specify custom behaviour for clicks on URL in display mode. Added support for custom background actions. Enabled layout transitions by default.
* **service-telemetry**: Added new mobile-metrics ping type.
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.7...v0.8)
# 0.7 (2018-05-24)
* Compiled against:
* Android support libraries 27.1.1
* Kotlin Standard library 1.2.41
* Kotlin coroutines 0.22.5
* GeckoView Nightly
* date: 2018.05.16
* version: 62.0.20180516100458
* revision: dedd25bfd2794eaba95225361f82c701e49c9339
* **browser-toolbar**: Added support for dynamic actions. Made site security indicator optional. Added support for overriding default height and padding.
* **feature-session**: Added new use case implementation to support reloading URLs. Fixed bugs when restoring sessions from storage. Use `AtomicFile` for `DefaultSessionStorage`.
* **feature-search**: New component - Connects an (concept) engine implementation with the browser search module and provides search related use case implementations e.g. searching using the default provider.
* **support-ktx**: Added extension method to check if a `String` represents a URL.
* **samples-browser**: Added default search integration using the new feature-search component.
* **samples-toolbar**: New sample app - Shows how to customize the browser-toolbar component.
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.6...v0.7)
# 0.6 (2018-05-16)
* Compiled against:
* Android support libraries 27.1.1
* Kotlin Standard library 1.2.41
* Kotlin coroutines 0.22.5
* GeckoView Nightly
* date: 2018.05.16
* version: 62.0.20180516100458
* revision: dedd25bfd2794eaba95225361f82c701e49c9339
* **browser-menu**: New component - A generic menu with customizable items for browser toolbars.
* **concept-session-storage**: New component - Abstraction layer for hiding the actual session storage implementation.
* **feature-session**: Added `DefaultSessionStorage` which is used if no other implementation of `SessionStorage` (from the new concept module) is provided. Introduced a new `SessionProvider` type which simplifies the API for use cases and components and removed the `SessionMapping` type as it's no longer needed.
* **support-ktx**: Added extension methods to `View` for checking visibility (`View.isVisible`, `View.isInvisible` and `View.isGone`).
* **samples-browser**: Use new browser menu component and switch to Gecko as default engine.
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.5.1...v0.6)
# 0.5.1 (2018-05-03)
* Compiled against:
* Android support libraries 27.1.1
* Kotlin Standard library 1.2.41
* Kotlin coroutines 0.22.5
* GeckoView Nightly
* date: 2018.04.10
* version: 61.0.20180410100334
* revision: a8061a09cd7064a8783ca9e67979d77fb52e001e
* **browser-domains**: Simplified API of `DomainAutoCompleteProvider` which now uses a dedicated result type instead of a callback and typealias.
* **browser-toolbar**: Added various enhancements to support edit and display mode and to navigate back/forward.
* **feature-session**: Added `SessionIntentProcessor` which provides reuseable functionality to handle incoming intents.
* **sample-browser**: Sample application now handles the device back button and reacts to incoming (ACTION_VIEW) intents.
* **support-ktx**: Added extension methods to `View` for converting dp to pixels (`View.dp`), showing and hiding the keyboard (`View.showKeyboard` and `View.hideKeyboard`).
* **service-telemetry**: New component - A generic library for generating and sending telemetry pings from Android applications to Mozilla's telemetry service.
* **ui-icons**: New component - A collection of often used browser icons.
* **ui-progress**: New component - An animated progress bar following the Photon Design System.
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.4...v0.5)
# 0.5 (2018-05-02)
_Due to a packaging bug this release is not usable. Please use 0.5.1 instead._
# 0.4 (2018-04-19)
* Compiled against:
* Android support libraries 27.1.1
* Kotlin Standard library 1.2.31
* Kotlin coroutines 0.22.5
* **browser-search**: New module - Search plugins and companion code to load, parse and use them.
* **browser-domains**: Auto-completion of full URLs (instead of just domains) is now supported.
* **ui-colors** module (org.mozilla.photon:colors) now includes all photon colors.
* **ui-fonts**: New module - Convenience accessor for fonts used by Mozilla.
* Multiple (Java/Kotlin) package names have been changed to match the naming of the module. Module names usually follow the template "$group-$name" and package names now follow the same scheme: "mozilla.components.$group.$name". For example the code of the "browser-toolbar" module now lives in the "mozilla.components.browser.toolbar" package. The group and artifacts Ids in Maven/Gradle have not been changed at this time.
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.3...v0.4)
# 0.3 (2018-04-05)
* Compiled against:
* Android support libraries 27.1.1
* Kotlin Standard library 1.2.30
* Kotlin coroutines 0.19.3
* New component: **ui-autocomplete** - A set of components to provide autocomplete functionality. **InlineAutocompleteEditText** is a Kotlin version of the inline autocomplete widget we have been using in Firefox for Android and Focus/Klar for Android.
* New component: **browser-domains** - Localized and customizable domain lists for auto-completion in browsers.
* New components (Planning phase; Not for consumption yet): engine, engine-gecko, session, toolbar
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v0.2.2...v0.3)
# 0.2.2 (2018-03-27)
* Compiled against:
* Android support libraries 27.1.0
* Kotlin Standard library 1.2.30
* First release with synchronized version numbers.
|